![]() |
VR-Forces 4.0.4 Class Documentation
|
The visualizer attribute factory takes class name + string value pairs and creates a visualizer attribute. More...

Classes | |
| class | Creator |
| Template attribute creator, provided for convenience. More... | |
| class | CreatorInterface |
| Creator interface for visualizer attributes to register with this factory. More... | |
Public Member Functions | |
| virtual | ~DtVisualizerAttributeFactory () |
| Destructor. | |
| virtual DtVisualizerAttribute * | create (const std::string &className) |
| Create an attribute from its class name with default value. | |
| virtual DtVisualizerAttribute * | create (const std::string &className, const DtUnicode &value) |
| Create an attribute from its class name and the string representation of its value. | |
| virtual void | registerClass (CreatorInterface *creator) |
| Register a visualizer attribute type with the factory Transfers ownership of the creator object. | |
Static Public Member Functions | |
| static DtVisualizerAttributeFactory & | instance (DtDe &) |
| Get an instance of the factory. | |
| static void | registerInstance (DtDe &, DtVisualizerAttributeFactory *) |
| Register a new instance of the factory. | |
Protected Types | |
| typedef boost::unordered_map < std::string, CreatorInterface * > | CreatorMap |
Protected Member Functions | |
| DtVisualizerAttributeFactory (DtDe &) | |
Protected Attributes | |
| CreatorMap | myCreators |
| Creator < DtVisualizerAttributeString > | myDefaultCreator |
| DtDe & | myDe |
The visualizer attribute factory takes class name + string value pairs and creates a visualizer attribute.
typedef boost::unordered_map<std::string, CreatorInterface*> makVrv::DtVisualizerAttributeFactory::CreatorMap [protected] |
| virtual makVrv::DtVisualizerAttributeFactory::~DtVisualizerAttributeFactory | ( | ) | [virtual] |
Destructor.
| makVrv::DtVisualizerAttributeFactory::DtVisualizerAttributeFactory | ( | DtDe & | ) | [protected] |
| static DtVisualizerAttributeFactory& makVrv::DtVisualizerAttributeFactory::instance | ( | DtDe & | ) | [static] |
Get an instance of the factory.
| static void makVrv::DtVisualizerAttributeFactory::registerInstance | ( | DtDe & | , |
| DtVisualizerAttributeFactory * | |||
| ) | [static] |
Register a new instance of the factory.
This only needs to be called to replace the default factory.
| virtual DtVisualizerAttribute* makVrv::DtVisualizerAttributeFactory::create | ( | const std::string & | className | ) | [virtual] |
Create an attribute from its class name with default value.
| virtual DtVisualizerAttribute* makVrv::DtVisualizerAttributeFactory::create | ( | const std::string & | className, |
| const DtUnicode & | value | ||
| ) | [virtual] |
Create an attribute from its class name and the string representation of its value.
| virtual void makVrv::DtVisualizerAttributeFactory::registerClass | ( | CreatorInterface * | creator | ) | [virtual] |
Register a visualizer attribute type with the factory Transfers ownership of the creator object.
Creator<DtVisualizerAttributeString> makVrv::DtVisualizerAttributeFactory::myDefaultCreator [protected] |
DtDe& makVrv::DtVisualizerAttributeFactory::myDe [protected] |