Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5654 in orxonox.OLD for trunk/src/util/track


Ignore:
Timestamp:
Nov 20, 2005, 9:12:50 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: cycle-loading of LoadParam works…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/track/track_manager.cc

    r5644 r5654  
    398398  double x, y, z, d;
    399399
    400   LOAD_PARAM_START_CYCLE(root, element)
    401 
    402       LoadParam<TrackManager>(element, "WorkOn", this, &TrackManager::workOnS, true)
     400  LOAD_PARAM_START_CYCLE(root, element);
     401  {
     402
     403    LoadParam_CYCLE(element, "WorkOn", this, TrackManager, workOnS)
    403404        .describe("Selects a TrackElement (by name) to work on");
    404405
    405       LoadParam<TrackManager>(element, "Point", this, &TrackManager::addPoint, true)
     406    LoadParam_CYCLE(element, "Point", this, TrackManager, addPoint)
    406407        .describe("Adds a new Point to the currently selected TrackElement");
    407408
    408       LoadParam<TrackManager>(element, "Duration", this, &TrackManager::setDuration, true)
     409    LoadParam_CYCLE(element, "Duration", this, TrackManager, setDuration)
    409410        .describe("Sets the Duration of the currently selected TrackElement");
    410411
    411       LoadParam<TrackManager>(element, "HotPoint", this, &TrackManager::addHotPoint, true)
     412    LoadParam_CYCLE(element, "HotPoint", this, TrackManager, addHotPoint)
    412413        .describe("Sets a new Point that acts as a hot point. meaning, the curve will flow through this Point");
    413414
    414       LoadParam<TrackManager>(element, "SavePoint", this, &TrackManager::setSavePointS, true)
     415    LoadParam_CYCLE(element, "SavePoint", this, TrackManager, setSavePointS)
    415416        .describe("Sets the current selected Point to a Savepoint, meaning that the curve will be ended and a new one starts, and that one starts again from this point on");
    416417
    417       LoadParam<TrackManager>(element, "Fork", this, &TrackManager::forkS, true)
     418    LoadParam_CYCLE(element, "Fork", this, TrackManager, forkS)
    418419        .describe("Forks the Path into multiple forked Path names seperated by ','");
    419420
    420       LoadParam<TrackManager>(element, "Join", this, &TrackManager::joinS, true)
     421    LoadParam_CYCLE(element, "Join", this, TrackManager, joinS)
    421422        .describe("Joins multiple joining Path names seperated by ','");
    422423
    423424      /*
    424         if( !strcmp( element->Value(), "Fork"))
    425         {
    426         container = element->FirstChild();
    427         if( container->ToText())
     425    if( !strcmp( element->Value(), "Fork"))
     426    {
     427    container = element->FirstChild();
     428    if( container->ToText())
    428429        {
    429430        assert( container->Value() != NULL);
     
    445446        }
    446447      */
    447       LOAD_PARAM_END_CYCLE(element);
     448  }
     449  LOAD_PARAM_END_CYCLE(element);
    448450}
    449451
Note: See TracChangeset for help on using the changeset viewer.