Changeset 7725 in orxonox.OLD for trunk/src/lib/coord
- Timestamp:
- May 19, 2006, 11:58:19 AM (19 years ago)
- Location:
- trunk/src/lib/coord
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/coord/p_node.cc
r7428 r7725 29 29 30 30 #include "synchronizeable.h" 31 32 using namespace std;33 34 31 35 32 /** … … 595 592 void PNode::removeNode() 596 593 { 597 list<PNode*>::iterator child = this->children.begin();598 list<PNode*>::iterator reparenter;594 std::list<PNode*>::iterator child = this->children.begin(); 595 std::list<PNode*>::iterator reparenter; 599 596 while (child != this->children.end()) 600 597 { … … 857 854 if(!this->children.empty() && (this->bActive || this->parentMode & PNODE_UPDATE_CHILDREN_IF_INACTIVE )) 858 855 { 859 list<PNode*>::iterator child;856 std::list<PNode*>::iterator child; 860 857 for (child = this->children.begin(); child != this->children.end(); child ++) 861 858 { … … 888 885 { 889 886 nodes++; 890 list<PNode*>::const_iterator child;887 std::list<PNode*>::const_iterator child; 891 888 for (child = this->children.begin(); child != this->children.end(); child ++) 892 889 (*child)->countChildNodes(nodes); … … 928 925 if (depth >= 2 || depth == 0) 929 926 { 930 list<PNode*>::const_iterator child;927 std::list<PNode*>::const_iterator child; 931 928 for (child = this->children.begin(); child != this->children.end(); child ++) 932 929 { … … 1006 1003 /* rotate the current color in HSV space around 20 degree */ 1007 1004 Vector childColor = Color::HSVtoRGB(Color::RGBtoHSV(color)+Vector(20,0,.0)); 1008 list<PNode*>::const_iterator child;1005 std::list<PNode*>::const_iterator child; 1009 1006 for (child = this->children.begin(); child != this->children.end(); child ++) 1010 1007 { … … 1176 1173 // int n = children.size(); 1177 1174 // //check if camera is in children 1178 // for (std:: list<PNode*>::const_iterator it = children.begin(); it!=children.end(); it++)1175 // for (std::std::list<PNode*>::const_iterator it = children.begin(); it!=children.end(); it++) 1179 1176 // { 1180 1177 // if ( (*it)->isA(CL_CAMERA) ) -
trunk/src/lib/coord/p_node.h
r7221 r7725 178 178 // DEBUG // 179 179 void countChildNodes(int& nodes) const; 180 void debugNodeSC (unsigned int depth = 1, unsigned int level = 0) { this->debugNode(depth, level); };181 180 void debugNode (unsigned int depth = 1, unsigned int level = 0) const; 182 181 void debugDraw(unsigned int depth = 1, float size = 1.0, const Vector& color = Vector(1, 0, 0), unsigned int level = 0) const;
Note: See TracChangeset
for help on using the changeset viewer.