Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6498 in orxonox.OLD for trunk/src/lib/coord


Ignore:
Timestamp:
Jan 11, 2006, 9:58:22 PM (19 years ago)
Author:
patrick
Message:

trunk: merged the network branche into the trunk

Location:
trunk/src/lib/coord
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/coord/p_node.cc

    r6424 r6498  
    10391039  SYNCHELP_READ_FKT( BaseObject::writeState );
    10401040
    1041   PRINTF(0)("name = %s\n", this->getName());
    1042 
    10431041  char * parentName = NULL;
    10441042  SYNCHELP_READ_STRINGM( parentName );
     
    10651063  SYNCHELP_READ_FLOAT( f3 );
    10661064  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 );
    10701068  SYNCHELP_READ_FLOAT( f2 );
    1071   SYNCHELP_READ_FLOAT( f3 );
     1069  SYNCHELP_READ_FLOAT( f3 );*/
    10721070  //this->setAbsCoor( f1, f2, f3 );
    10731071
     
    10781076  this->setRelDir( Quaternion( Vector(f2, f3, f4), f1 ) );
    10791077
    1080   SYNCHELP_READ_FLOAT( f1 );
     1078  /*SYNCHELP_READ_FLOAT( f1 );
    10811079  SYNCHELP_READ_FLOAT( f2 );
    10821080  SYNCHELP_READ_FLOAT( f3 );
    1083   SYNCHELP_READ_FLOAT( f4 );
     1081  SYNCHELP_READ_FLOAT( f4 );*/
    10841082  //this->setAbsDir( Quaternion( Vector(f2, f3, f4), f1 ) );
    10851083
     
    10921090  {
    10931091    SYNCHELP_READ_STRINGM( childName );
    1094     PRINTF(0)("childname = %s\n", childName);
     1092    //PRINTF(0)("childname = %s\n", childName);
    10951093    addChild( childName );
    10961094    delete childName;
     
    11131111  SYNCHELP_WRITE_FKT( BaseObject::readState );
    11141112
    1115   PRINTF(0)("name = %s\n", this->getName());
    1116 
    11171113  if ( this->parent )
    11181114  {
     
    11301126  SYNCHELP_WRITE_FLOAT( this->relCoordinate.z );
    11311127
    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 );
    11351131  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);
    11391135
    11401136  SYNCHELP_WRITE_FLOAT( this->relDirection.w );
     
    11431139  SYNCHELP_WRITE_FLOAT( this->relDirection.v.z );
    11441140
    1145   SYNCHELP_WRITE_FLOAT( this->absDirection.w );
     1141  /*SYNCHELP_WRITE_FLOAT( this->absDirection.w );
    11461142  SYNCHELP_WRITE_FLOAT( this->absDirection.v.x );
    11471143  SYNCHELP_WRITE_FLOAT( this->absDirection.v.y );
    1148   SYNCHELP_WRITE_FLOAT( this->absDirection.v.z );
     1144  SYNCHELP_WRITE_FLOAT( this->absDirection.v.z );*/
    11491145
    11501146  int n = children.size();
     
    11531149  for (std::list<PNode*>::const_iterator it = children.begin(); it!=children.end(); it++)
    11541150  {
    1155     PRINTF(0)("childname = %s\n", (*it)->getName() );
    11561151    SYNCHELP_WRITE_STRING( (*it)->getName() );
    11571152  }
     1153
    11581154  return SYNCHELP_WRITE_N;
    11591155}
  • trunk/src/lib/coord/p_node.h

    r6424 r6498  
    2121#include "base_object.h"
    2222#include "stdincl.h"
     23#include "synchronizeable.h"
    2324
    2425#include "vector.h"
     
    7273
    7374//! 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 {
     75class PNode : virtual public BaseObject, virtual public Synchronizeable {
    7576 public:
    7677  PNode (PNode* parent = PNode::getNullParent(), long nodeFlags = PNODE_PARENT_MODE_DEFAULT);
Note: See TracChangeset for help on using the changeset viewer.