- Timestamp:
- Apr 13, 2005, 9:52:34 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/coord/null_parent.cc
r3669 r3809 40 40 \todo this constructor is not jet implemented - do it 41 41 */ 42 NullParent::NullParent () : PNode ( newVector(0,0,0), NULL)42 NullParent::NullParent () : PNode (Vector(0,0,0), NULL) 43 43 { 44 44 PRINTF(4)("NullParent::NullParent() - making new NullParent, there can only be one..\n"); … … 49 49 50 50 51 NullParent::NullParent ( Vector* absCoordinate) : PNode (newVector(0,0,0), NULL)51 NullParent::NullParent (const Vector& absCoordinate) : PNode (Vector(0,0,0), NULL) 52 52 { 53 53 singletonRef = this; 54 54 this->parent = this; 55 55 this->mode = PNODE_ALL; 56 *this->absCoordinate = *absCoordinate;56 *this->absCoordinate = absCoordinate; 57 57 this->setName("NullParent"); 58 58 } -
orxonox/trunk/src/lib/coord/null_parent.h
r3644 r3809 23 23 private: 24 24 NullParent (); 25 NullParent ( Vector*absCoordinate);25 NullParent (const Vector& absCoordinate); 26 26 static NullParent* singletonRef; 27 27 -
orxonox/trunk/src/lib/coord/p_node.cc
r3804 r3809 55 55 \param parent The parent-node of this node. 56 56 */ 57 PNode::PNode ( Vector*absCoordinate, PNode* parent )57 PNode::PNode (const Vector& absCoordinate, PNode* parent ) 58 58 { 59 59 this->init(parent); 60 60 61 *this->absCoordinate = *absCoordinate;61 *this->absCoordinate = absCoordinate; 62 62 63 63 __LIKELY_IF(parent != NULL) … … 191 191 has changed and won't update the children Nodes. 192 192 */ 193 /* 193 194 void PNode::setAbsCoor (Vector* absCoord) 194 195 { … … 196 197 *this->absCoordinate = *absCoord; 197 198 } 198 199 */ 199 200 200 201 … … 206 207 has changed and won't update the children Nodes. 207 208 */ 208 void PNode::setAbsCoor ( VectorabsCoord)209 void PNode::setAbsCoor (const Vector& absCoord) 209 210 { 210 211 this->bAbsCoorChanged = true; … … 269 270 270 271 */ 271 void PNode::shiftCoor ( Vectorshift)272 void PNode::shiftCoor (const Vector& shift) 272 273 { 273 274 -
orxonox/trunk/src/lib/coord/p_node.h
r3804 r3809 49 49 public: 50 50 PNode (); 51 PNode ( Vector*absCoordinate, PNode* pNode);51 PNode (const Vector& absCoordinate, PNode* pNode); 52 52 virtual ~PNode (); 53 53 … … 61 61 void setRelCoor (Vector relCoord); 62 62 inline Vector getAbsCoor () const { return *this->absCoordinate; } 63 void setAbsCoor (Vector* absCoord);64 void setAbsCoor ( VectorabsCoord);63 //void setAbsCoor (Vector* absCoord); 64 void setAbsCoor (const Vector& absCoord); 65 65 void shiftCoor (Vector* shift); 66 void shiftCoor ( Vectorshift);66 void shiftCoor (const Vector& shift); 67 67 //void shiftCoor (Vector shift); 68 68 -
orxonox/trunk/src/lib/graphics/light.cc
r3608 r3809 70 70 this->lightPosition[3] = 0.0; 71 71 72 this->setAbsCoor( &position);72 this->setAbsCoor(position); 73 73 74 74 glLightfv (lightsV[this->lightNumber], GL_POSITION, this->lightPosition); -
orxonox/trunk/src/story_entities/world.cc
r3808 r3809 771 771 PRINTF(2)("debug() - starting debug\n"); 772 772 PNode* p1 = NullParent::getInstance (); 773 PNode* p2 = new PNode ( newVector(2, 2, 2), p1);774 PNode* p3 = new PNode ( newVector(4, 4, 4), p1);775 PNode* p4 = new PNode ( newVector(6, 6, 6), p2);773 PNode* p2 = new PNode (Vector(2, 2, 2), p1); 774 PNode* p3 = new PNode (Vector(4, 4, 4), p1); 775 PNode* p4 = new PNode (Vector(6, 6, 6), p2); 776 776 777 777 p1->debug (); … … 780 780 p4->debug (); 781 781 782 p1->shiftCoor ( newVector(-1, -1, -1));782 p1->shiftCoor (Vector(-1, -1, -1)); 783 783 784 784 printf("World::debug() - shift\n"); … … 796 796 p4->debug (); 797 797 798 p2->shiftCoor ( newVector(-1, -1, -1));798 p2->shiftCoor (Vector(-1, -1, -1)); 799 799 p1->update (0); 800 800 … … 804 804 p4->debug (); 805 805 806 p2->setAbsCoor ( newVector(1,2,3));806 p2->setAbsCoor (Vector(1,2,3)); 807 807 808 808 … … 1008 1008 this->entities->add (entity); 1009 1009 1010 entity->setAbsCoor ( absCoor);1011 entity->setAbsDir ( absDir);1010 entity->setAbsCoor (*absCoor); 1011 entity->setAbsDir (*absDir); 1012 1012 1013 1013 entity->postSpawn (); … … 1031 1031 parentNode->addChild (entity); 1032 1032 1033 entity->setRelCoor ( relCoor);1034 entity->setRelDir ( relDir);1033 entity->setRelCoor (*relCoor); 1034 entity->setRelDir (*relDir); 1035 1035 entity->setMode(parentingMode); 1036 1036 -
orxonox/trunk/src/track_manager.cc
r3710 r3809 811 811 quat = quat * q; 812 812 813 this->bindSlave->setAbsCoor( &tmp);814 this->bindSlave->setAbsDir( &quat);813 this->bindSlave->setAbsCoor(tmp); 814 this->bindSlave->setAbsDir(quat); 815 815 } 816 816 }
Note: See TracChangeset
for help on using the changeset viewer.