OpendTect  6.6
bouncycontroller.h
Go to the documentation of this file.
1 #pragma once
2 /*+
3  * (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
4  * AUTHOR : Karthika
5  * DATE : Sep 2009
6  * ID : $Id$
7 -*/
8 
9 #include "bouncymod.h"
10 #include "position.h"
11 #include "timer.h"
12 
13 namespace Bouncy
14 {
15 
17 {
18 public:
19 
21  virtual ~BouncyController();
22 
23  void init(const Coord3& pos, const Coord& minpos,
24  const Coord& maxpos,
25  float zStart, float zStop,
26  bool simulategame=false);
27  void stop();
28  void pause(bool);
29 
30  void setPos(const Coord3&);
31  Coord3 getPos() const;
32 
34 
35 protected:
36 
38  void runCB(CallBacker*);
39 
45  float zStart_;
46  float zStop_;
47  int numlives_;
49  bool simulate_;
51 
52 };
53 
54 };
55 
56 
Coord3
A cartesian coordinate in 3D space.
Definition: coord.h:72
Bouncy::BouncyController::init
void init(const Coord3 &pos, const Coord &minpos, const Coord &maxpos, float zStart, float zStop, bool simulategame=false)
Bouncy::BouncyController::setPos
void setPos(const Coord3 &)
Bouncy::BouncyController::newposdelta_
Coord3 newposdelta_
Definition: bouncycontroller.h:41
Bouncy::BouncyController::pause
void pause(bool)
Bouncy::BouncyController::zStop_
float zStop_
Definition: bouncycontroller.h:46
Bouncy::BouncyController::nummovesrem_
int nummovesrem_
Definition: bouncycontroller.h:50
Bouncy::BouncyController
Definition: bouncycontroller.h:17
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
Bouncy::BouncyController::simulate_
bool simulate_
Definition: bouncycontroller.h:49
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
Bouncy::BouncyController::getPos
Coord3 getPos() const
Bouncy
Definition: bouncycontroller.h:14
Timer
Timer class.
Definition: timer.h:25
Bouncy::BouncyController::BouncyController
BouncyController()
Coord
A cartesian coordinate in 2D space.
Definition: coord.h:25
timer.h
Bouncy::BouncyController::runCB
void runCB(CallBacker *)
Bouncy::BouncyController::maxpos_
Coord maxpos_
Definition: bouncycontroller.h:44
Bouncy::BouncyController::newPosAvailable
Notifier< BouncyController > newPosAvailable
Definition: bouncycontroller.h:33
Bouncy::BouncyController::targetpos_
Coord3 targetpos_
Definition: bouncycontroller.h:42
Bouncy::BouncyController::simulateCB
void simulateCB(CallBacker *)
Notifier
Class to help setup a callback handling.
Definition: notify.h:126
Bouncy::BouncyController::currpos_
Coord3 currpos_
Definition: bouncycontroller.h:40
Bouncy::BouncyController::updatetimer_
Timer updatetimer_
Definition: bouncycontroller.h:48
position.h
Bouncy::BouncyController::~BouncyController
virtual ~BouncyController()
Bouncy::BouncyController::minpos_
Coord minpos_
Definition: bouncycontroller.h:43
Bouncy::BouncyController::zStart_
float zStart_
Definition: bouncycontroller.h:45
Bouncy::BouncyController::stop
void stop()
Bouncy::BouncyController::numlives_
int numlives_
Definition: bouncycontroller.h:47

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2021