Changeset 8755 for trunk/MagicSoft/Mars/mtools/MagicSnake.cc
- Timestamp:
- 10/10/07 19:59:43 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtools/MagicSnake.cc
r2173 r8755 153 153 } 154 154 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 155 void MagicSnake::Init() 156 { 164 157 // 165 158 // Make sure, that the object is destroyed when the canvas/pad is … … 175 168 176 169 fTimer.TurnOn(); 170 } 171 172 // ------------------------------------------------------------------------ 173 // 174 // default constructor 175 // 176 MagicSnake::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 // 187 MagicSnake::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(); 177 192 } 178 193
Note:
See TracChangeset
for help on using the changeset viewer.