Ignore:
Timestamp:
10/10/07 19:59:43 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtools/MagicSnake.cc

    r2173 r8755  
    153153}
    154154
    155 // ------------------------------------------------------------------------
    156 //
    157 //  default constructor
    158 //
    159 MagicSnake::MagicSnake()
    160     : fTimer(this, 500, kTRUE), fGeomCam(NULL), fDone(NULL), fPaused(NULL), fW(0), fH(0)
    161 {
    162     SetNewCamera(new MGeomCamMagic);
    163 
     155void MagicSnake::Init()
     156{
    164157    //
    165158    // Make sure, that the object is destroyed when the canvas/pad is
     
    175168
    176169    fTimer.TurnOn();
     170}
     171
     172// ------------------------------------------------------------------------
     173//
     174//  default constructor
     175//
     176MagicSnake::MagicSnake()
     177    : fTimer(this, 500, kTRUE), fGeomCam(NULL), fDone(NULL), fPaused(NULL), fW(0), fH(0)
     178{
     179    SetNewCamera(new MGeomCamMagic);
     180    Init();
     181}
     182
     183// ------------------------------------------------------------------------
     184//
     185//  default constructor
     186//
     187MagicSnake::MagicSnake(const MGeomCam &geom)
     188    : fTimer(this, 500, kTRUE), fGeomCam(NULL), fDone(NULL), fPaused(NULL), fW(0), fH(0)
     189{
     190    SetNewCamera(static_cast<MGeomCam*>(geom.Clone()));
     191    Init();
    177192}
    178193
Note: See TracChangeset for help on using the changeset viewer.