Changeset 6498 in orxonox.OLD for trunk/src/lib/coord
- Timestamp:
- Jan 11, 2006, 9:58:22 PM (19 years ago)
- Location:
- trunk/src/lib/coord
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/coord/p_node.cc
r6424 r6498 1039 1039 SYNCHELP_READ_FKT( BaseObject::writeState ); 1040 1040 1041 PRINTF(0)("name = %s\n", this->getName());1042 1043 1041 char * parentName = NULL; 1044 1042 SYNCHELP_READ_STRINGM( parentName ); … … 1065 1063 SYNCHELP_READ_FLOAT( f3 ); 1066 1064 this->setRelCoor( f1, f2, f3 ); 1067 //this->setRelCoor( 10, 0, 0 );1068 1069 SYNCHELP_READ_FLOAT( f1 );1065 //this->setRelCoor( 5, 0, 0 ); 1066 1067 /*SYNCHELP_READ_FLOAT( f1 ); 1070 1068 SYNCHELP_READ_FLOAT( f2 ); 1071 SYNCHELP_READ_FLOAT( f3 ); 1069 SYNCHELP_READ_FLOAT( f3 );*/ 1072 1070 //this->setAbsCoor( f1, f2, f3 ); 1073 1071 … … 1078 1076 this->setRelDir( Quaternion( Vector(f2, f3, f4), f1 ) ); 1079 1077 1080 SYNCHELP_READ_FLOAT( f1 );1078 /*SYNCHELP_READ_FLOAT( f1 ); 1081 1079 SYNCHELP_READ_FLOAT( f2 ); 1082 1080 SYNCHELP_READ_FLOAT( f3 ); 1083 SYNCHELP_READ_FLOAT( f4 ); 1081 SYNCHELP_READ_FLOAT( f4 );*/ 1084 1082 //this->setAbsDir( Quaternion( Vector(f2, f3, f4), f1 ) ); 1085 1083 … … 1092 1090 { 1093 1091 SYNCHELP_READ_STRINGM( childName ); 1094 PRINTF(0)("childname = %s\n", childName);1092 //PRINTF(0)("childname = %s\n", childName); 1095 1093 addChild( childName ); 1096 1094 delete childName; … … 1113 1111 SYNCHELP_WRITE_FKT( BaseObject::readState ); 1114 1112 1115 PRINTF(0)("name = %s\n", this->getName());1116 1117 1113 if ( this->parent ) 1118 1114 { … … 1130 1126 SYNCHELP_WRITE_FLOAT( this->relCoordinate.z ); 1131 1127 1132 PRINTF(0)("%s, %f, %f, %f\n", getClassName(), relCoordinate.x, relCoordinate.y, relCoordinate.z);1133 1134 SYNCHELP_WRITE_FLOAT( this->absCoordinate.x );1128 //PRINTF(0)("%s, %f, %f, %f\n", getClassName(), relCoordinate.x, relCoordinate.y, relCoordinate.z); 1129 1130 /*SYNCHELP_WRITE_FLOAT( this->absCoordinate.x ); 1135 1131 SYNCHELP_WRITE_FLOAT( this->absCoordinate.y ); 1136 SYNCHELP_WRITE_FLOAT( this->absCoordinate.z ); 1137 1138 PRINTF(0)("%s, %f, %f, %f\n", getClassName(), absCoordinate.x, absCoordinate.y, absCoordinate.z);1132 SYNCHELP_WRITE_FLOAT( this->absCoordinate.z );*/ 1133 1134 //PRINTF(0)("%s, %f, %f, %f\n", getClassName(), absCoordinate.x, absCoordinate.y, absCoordinate.z); 1139 1135 1140 1136 SYNCHELP_WRITE_FLOAT( this->relDirection.w ); … … 1143 1139 SYNCHELP_WRITE_FLOAT( this->relDirection.v.z ); 1144 1140 1145 SYNCHELP_WRITE_FLOAT( this->absDirection.w );1141 /*SYNCHELP_WRITE_FLOAT( this->absDirection.w ); 1146 1142 SYNCHELP_WRITE_FLOAT( this->absDirection.v.x ); 1147 1143 SYNCHELP_WRITE_FLOAT( this->absDirection.v.y ); 1148 SYNCHELP_WRITE_FLOAT( this->absDirection.v.z ); 1144 SYNCHELP_WRITE_FLOAT( this->absDirection.v.z );*/ 1149 1145 1150 1146 int n = children.size(); … … 1153 1149 for (std::list<PNode*>::const_iterator it = children.begin(); it!=children.end(); it++) 1154 1150 { 1155 PRINTF(0)("childname = %s\n", (*it)->getName() );1156 1151 SYNCHELP_WRITE_STRING( (*it)->getName() ); 1157 1152 } 1153 1158 1154 return SYNCHELP_WRITE_N; 1159 1155 } -
trunk/src/lib/coord/p_node.h
r6424 r6498 21 21 #include "base_object.h" 22 22 #include "stdincl.h" 23 #include "synchronizeable.h" 23 24 24 25 #include "vector.h" … … 72 73 73 74 //! Patent Node is a Engine to calculate the position of an Object in respect to the position of its parent. 74 class PNode : virtual public BaseObject {75 class PNode : virtual public BaseObject, virtual public Synchronizeable { 75 76 public: 76 77 PNode (PNode* parent = PNode::getNullParent(), long nodeFlags = PNODE_PARENT_MODE_DEFAULT);
Note: See TracChangeset
for help on using the changeset viewer.