AnimaL | 
     Tutorial | 
	 Documentation | 
   
#include <engine.h>
Inheritance diagram for animal::Engine:

For example, an engine can be animal::KeyFrameEngine, animal::MassSpringEngine...
This engine can be moved Engine::move(), initialized Engine::init(), drawn Engine::draw() and thus has a bounding box Engine::getBoundingBox().
It can handle key and mouse events animal::Event.
Definition at line 24 of file engine.h.
Public Member Functions | |
| Engine () | |
| Constructor.   | |
| virtual void | init () | 
| Init the engine and call reset(). Is done only one time.   | |
| virtual void | reset () | 
| Initialize the animation.   | |
| virtual void | postReset () | 
| Initialize the animation.   | |
| virtual void | move (double) | 
| Move the engine.   | |
| virtual void | postMove (double) | 
| Move the engine (called after move).   | |
| virtual void | draw () | 
| Draw the engine.   | |
| virtual void | getBoundingBox (float &minX, float &minY, float &minZ, float &maxX, float &maxY, float &maxZ) | 
| Compute the bounding box of the engine when it can be drawn.   | |
| virtual void | keyPressEvent (KeyEvent *) | 
| Deal with key press event.   | |
| virtual void | mouseDoubleClickEvent (MouseEvent *) | 
| Deal with mouse double-click event.   | |
| virtual void | mouseMoveEvent (MouseEvent *) | 
| Deal with mouse move event.   | |
| virtual void | mousePressEvent (MouseEvent *) | 
| Deal with mouse press event.   | |
| virtual void | mouseReleaseEvent (MouseEvent *) | 
| Deal with mouse release event.   | |
| virtual ConstrainedItem * | pickPoint (float *, float *, float) | 
| Pick along a line.   | |
| void | drawBoundingBox () | 
| Draw the bounding box.   | |
Static Public Member Functions | |
| World * | world () | 
| Return the animal::Engine::theWorld which gives some external informations.   | |
| void | setWorld (World *w) | 
| Ser the animal::Engine::theWorld to get some external informations.   | |
Public Attributes | |
| bool | drawBBox | 
| True when the bounding box is drawn with animal::Engine::drawBoundingBox().   | |
| bool | drawEngine | 
| True when the engine is drawn with animal::Engine::draw().   | |
| bool | moveEngine | 
| True when the engine is moved with animal::Engine::move().   | |
| bool | resetEngine | 
| True when the engine is reset with animal::Engine::init().   | |
Static Private Attributes | |
| World * | theWorld = NULL | 
| The world to get some external informations for drawing.   | |
      
  | 
  
| 
 Constructor. 
 Definition at line 29 of file engine.h. References drawBBox, drawEngine, moveEngine, and resetEngine.  | 
  
      
  | 
  
      
  | 
  
| 
 Draw the bounding box. 
 Definition at line 80 of file engine.h. References drawBBox, and getBoundingBox().  | 
  
      
  | 
  ||||||||||||||||||||||||||||
| 
 Compute the bounding box of the engine when it can be drawn. 
 Reimplemented in animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >, animal::EngineGroup, X3DTK::X3D::FrameNode, and animal::MassSpringEngine< X3DTK::MFFloat, X3DTK::MFVec3f, X3DTK::MFFloat, X3DTK::MFInt32, X3DTK::MFVec3f, float >. Definition at line 48 of file engine.h. Referenced by drawBoundingBox().  | 
  
      
  | 
  
| 
 Init the engine and call reset(). Is done only one time. 
 Reimplemented in animal::octree::OctreeEngine, animal::EngineGroup, X3DTK::X3D::MorphingNode, X3DTK::X3D::FrameNode, X3DTK::X3D::MassSpringNode, X3DTK::X3D::AnimalEngineNode< AMassSpringEngine >, and X3DTK::X3D::AnimalEngineNode< AMorphingEngine >. Definition at line 32 of file engine.h. References reset(). Referenced by X3DTK::MainScene::addEngine(), X3DTK::X3D::MassSpringNode::init(), and X3DTK::X3D::FrameNode::init().  | 
  
      
  | 
  
| 
 Deal with key press event. 
  | 
  
      
  | 
  
| 
 Deal with mouse double-click event. 
 Reimplemented in X3DTK::X3D::AnimalEngineNode< AMassSpringEngine >, and X3DTK::X3D::AnimalEngineNode< AMorphingEngine >.  | 
  
      
  | 
  
| 
 Deal with mouse move event. 
 Reimplemented in X3DTK::X3D::AnimalEngineNode< AMassSpringEngine >, and X3DTK::X3D::AnimalEngineNode< AMorphingEngine >.  | 
  
      
  | 
  
      
  | 
  
| 
 Deal with mouse release event. 
 Reimplemented in X3DTK::X3D::AnimalEngineNode< AMassSpringEngine >, and X3DTK::X3D::AnimalEngineNode< AMorphingEngine >.  | 
  
      
  | 
  
      
  | 
  ||||||||||||||||
| 
 Pick along a line. Base implementation does nothing Reimplemented in animal::EngineGroup, X3DTK::X3D::AnimalEngineNode< AMassSpringEngine >, and X3DTK::X3D::AnimalEngineNode< AMorphingEngine >.  | 
  
      
  | 
  
| 
 Move the engine (called after move). 
 Definition at line 42 of file engine.h. Referenced by X3DTK::X3D::DeformableOctreeNode::postAnimate().  | 
  
      
  | 
  
| 
 Initialize the animation. 
 Reimplemented in X3DTK::X3D::AnimalEngineNode< AMassSpringEngine >, and X3DTK::X3D::AnimalEngineNode< AMorphingEngine >.  | 
  
      
  | 
  
      
  | 
  
| 
 Ser the animal::Engine::theWorld to get some external informations. 
 Definition at line 77 of file engine.h. References theWorld. Referenced by MainController::MainController().  | 
  
      
  | 
  
| 
 Return the animal::Engine::theWorld which gives some external informations. 
 Definition at line 74 of file engine.h. References theWorld.  | 
  
      
  | 
  
| 
 True when the bounding box is drawn with animal::Engine::drawBoundingBox(). 
 Definition at line 100 of file engine.h. Referenced by drawBoundingBox(), and Engine().  | 
  
      
  | 
  
| 
 True when the engine is drawn with animal::Engine::draw(). 
 Definition at line 102 of file engine.h. Referenced by Engine().  | 
  
      
  | 
  
| 
 True when the engine is moved with animal::Engine::move(). 
 Definition at line 104 of file engine.h. Referenced by Engine().  | 
  
      
  | 
  
| 
 True when the engine is reset with animal::Engine::init(). 
 Definition at line 106 of file engine.h. Referenced by Engine().  | 
  
      
  | 
  
| 
 The world to get some external informations for drawing. For exemple the camera position and orientaion. It is defined and set in the MainController with the X3DTK-Qt architecture. Definition at line 31 of file MainController.cpp. Referenced by setWorld(), and world().  | 
  
 
1.3.6