#include <OSGGraphOpFactory.h>
Public Types | |
| typedef std::map< std::string, GraphOp * >::const_iterator | iterator |
Public Member Functions | |
| void | registerOp (GraphOp *prototype) |
| void | unRegisterOp (GraphOp *prototype) |
| void | unRegisterOp (const char *name) |
| GraphOp * | create (const char *name) |
| iterator | begin (void) |
| iterator | end () |
Static Public Member Functions | |
| static GraphOpFactory & | the () |
Private Types | |
| typedef std::pair< std::string, GraphOp * > | GraphOpPair |
Private Member Functions | |
| GraphOpFactory (void) | |
Private Attributes | |
| std::map< std::string, GraphOp * > | _typeMap |
Static Private Attributes | |
| static GraphOpFactory * | _the = NULL |
Definition at line 58 of file OSGGraphOpFactory.h.
|
|
Definition at line 72 of file OSGGraphOpFactory.h. |
|
|
Definition at line 79 of file OSGGraphOpFactory.h. |
|
|
Definition at line 126 of file OSGGraphOpFactory.cpp. References registerOp(). Referenced by the(). 00127 { 00128 registerOp(new GeoTypeGraphOp); 00129 registerOp(new MakeTransparentGraphOp); 00130 registerOp(new MaterialMergeGraphOp); 00131 registerOp(new MergeGraphOp); 00132 registerOp(new PruneGraphOp); 00133 registerOp(new SharePtrGraphOp); 00134 registerOp(new SplitGraphOp); 00135 registerOp(new StripeGraphOp); 00136 registerOp(new VerifyGeoGraphOp); 00137 registerOp(new VerifyGraphOp); 00138 }
|
|
|
Definition at line 81 of file OSGGraphOpFactory.cpp. References _typeMap, and osg::GraphOp::getName(). Referenced by GraphOpFactory().
|
|
|
Definition at line 86 of file OSGGraphOpFactory.cpp. References osg::GraphOp::getName(). 00087 { 00088 unRegisterOp(prototype->getName().c_str()); 00089 }
|
|
|
Definition at line 91 of file OSGGraphOpFactory.cpp. References _typeMap. 00092 { 00093 _typeMap.erase(name); 00094 }
|
|
|
Definition at line 96 of file OSGGraphOpFactory.cpp. References _typeMap, and osg::GraphOp::create(). Referenced by osg::GraphOpSeq::setGraphOps(). 00097 { 00098 GraphOp *proto = _typeMap[name]; 00099 if (proto != NULL) 00100 return proto->create(); 00101 else 00102 return NULL; 00103 }
|
|
|
Definition at line 105 of file OSGGraphOpFactory.cpp. References _the, and GraphOpFactory(). Referenced by osg::GraphOpSeq::setGraphOps(). 00106 { 00107 if(_the == NULL) 00108 _the=new GraphOpFactory(); 00109 return *_the; 00110 }
|
|
|
Definition at line 112 of file OSGGraphOpFactory.cpp. References _typeMap. 00113 { 00114 return _typeMap.begin();; 00115 }
|
|
|
Definition at line 117 of file OSGGraphOpFactory.cpp. References _typeMap. 00118 { 00119 return _typeMap.end();; 00120 }
|
|
|
Definition at line 59 of file OSGGraphOpFactory.cpp. Referenced by the(). |
|
|
Definition at line 85 of file OSGGraphOpFactory.h. Referenced by begin(), create(), end(), registerOp(), and unRegisterOp(). |
1.4.3