Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3556 in orxonox.OLD for orxonox/trunk/src/track_node.cc


Ignore:
Timestamp:
Mar 15, 2005, 2:34:44 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: trackNode not static anymore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/track_node.cc

    r3545 r3556  
    2525using namespace std;
    2626
    27 TrackNode* TrackNode::singletonRef = 0;
    28 
    29 TrackNode* TrackNode::getInstance ()
    30 {
    31   if (!singletonRef)
    32     singletonRef = new TrackNode ();
    33   return singletonRef;
    34 }
    35 
    3627/**
    3728   \brief standard constructor
     
    4334  this->setClassName("TrackNode");
    4435  this->setName("TrackNode"); /* absolete but still used... */
    45   singletonRef = this;
    4636
    4737  NullParent::getInstance()->addChild(this);
    4838  this->trackManager = TrackManager::getInstance();
    49   this->mode = ALL;
     39  this->setMode(ALL);
    5040}
    5141
     
    5545  this->parent = NullParent::getInstance();
    5646  this->trackManager = TrackManager::getInstance();
    57   this->mode = ALL;
     47  this->setMode(ALL);
    5848  this->absCoordinate = *absCoordinate;
    5949}
     
    6757TrackNode::~TrackNode ()
    6858{
    69   singletonRef = NULL;
     59
    7060}
Note: See TracChangeset for help on using the changeset viewer.