
Public Types | |
| typedef std::vector< Node * > | Children |
Public Member Functions | |
| ANode (wxString name, SceneNode *sn, wxString defName=wxT("")) | |
| ~ANode () | |
| destructs ANode, if the Light Node wasn't used than delete it | |
| void | setParam (MATRIX m) |
| void | setParam (Node *node) |
| void | addToScene (wxString parentUid) |
Public Attributes | |
| MATRIX | mat |
| transformation matrix | |
| std::vector< Node * > | children |
| list of children | |
Definition at line 217 of file vrmlparser.h.
| typedef std::vector<Node*> VRUT::VRMLParser::ANode::Children |
Definition at line 222 of file vrmlparser.h.
| VRUT::VRMLParser::ANode::ANode | ( | wxString | name, | |
| SceneNode * | sn, | |||
| wxString | defName = wxT("") | |||
| ) | [inline] |
| VRUT::VRMLParser::ANode::~ANode | ( | ) | [inline] |
| void VRUT::VRMLParser::ANode::setParam | ( | MATRIX | m | ) | [inline] |
| void VRUT::VRMLParser::ANode::setParam | ( | Node * | node | ) | [inline] |
assign new children to the ANode, transformation node
| [in] | node | children to add to transformation node |
Definition at line 243 of file vrmlparser.h.
| void VRUT::VRMLParser::ANode::addToScene | ( | wxString | parentUid | ) | [inline, virtual] |
adds transformation node and all its children to the scene
Implements VRUT::VRMLParser::Node.
Definition at line 248 of file vrmlparser.h.
00248 { 00249 //look if it is already in the scene 00250 DefNamesListSN::iterator it = vrmlp->defNamesListSN.find(defName); 00251 if ( it != vrmlp->defNamesListSN.end()) { 00252 wxCommandEvent ev1 = Event::GET_EVT_SCENE_NODE_COPY(vrmlp->sceneID, it->second, parentUid); 00253 return; 00254 } 00255 00256 wxCommandEvent ev = Event::GET_EVT_SCENE_NODE_TRANSFORM(vrmlp->sceneID, nodeName, mat); 00257 vrmlp->module->PostToKernel(ev); 00258 for ( Children::iterator it = children.begin(); it != children.end(); it++) 00259 (*it)->addToScene(nodeName); 00260 }
| std::vector<Node*> VRUT::VRMLParser::ANode::children |
1.5.5