Documentation


X3DTK::X3D::X4DNode Class Reference

#include <X4DNode.h>

Inheritance diagram for X3DTK::X3D::X4DNode:

X3DGroupingNode X3DBoundedObject X3DTK::X3D::DeformableOctreeShapeNode X3DTK::X3D::EngineNode X3DTK::X3D::AnimalEngineNode< AnimalEngine > X3DTK::X3D::AnimalEngineNode< AMassSpringEngine > X3DTK::X3D::AnimalEngineNode< AMorphingEngine > X3DTK::X3D::DeformableOctreeNode X3DTK::X3D::EngineGroupNode X3DTK::X3D::FrameNode X3DTK::X3D::MassSpringNode X3DTK::X3D::MorphingNode X3DTK::X3D::DeformableOctreeParticleSystemNode List of all members.

Detailed Description

Abstract base class for all nodes added to the animated scene.

This class is only used to process your new classes automatically. If your new class does not derive from this class, then you have to modify GLBuilderEngineNodeVisitor.

Author:
François Faure

Definition at line 27 of file X4DNode.h.

Public Member Functions

virtual void init ()
 Called once the graph is created.

virtual void postInit ()
 Called once the graph is created.

virtual void draw ()
 Draw the derived object in OpenGL.

 X4DNode ()
virtual ~X4DNode ()
virtual void toggleDraw (bool b)

Public Attributes

bool m_draw
 the node is drawn iff m_draw


Constructor & Destructor Documentation

X3DTK::X3D::X4DNode::X4DNode  ) 
 

Definition at line 18 of file X4DNode.cpp.

X3DTK::X3D::X4DNode::~X4DNode  )  [virtual]
 

Definition at line 24 of file X4DNode.cpp.


Member Function Documentation

virtual void X3DTK::X3D::X4DNode::draw  )  [inline, virtual]
 

Draw the derived object in OpenGL.

This base implementation does nothing.

Reimplemented in X3DTK::X3D::AnimalEngineNode< AnimalEngine >, X3DTK::X3D::EngineNode, X3DTK::X3D::DeformableOctreeNode, X3DTK::X3D::DeformableOctreeParticleSystemNode, X3DTK::X3D::EngineGroupNode, X3DTK::X3D::FrameNode, X3DTK::X3D::AnimalEngineNode< AMassSpringEngine >, and X3DTK::X3D::AnimalEngineNode< AMorphingEngine >.

Definition at line 41 of file X4DNode.h.

Referenced by X3DTK::GL::GLEngineNode::draw(), and X3DTK::GL::GLEngineLeafNode::draw().

virtual void X3DTK::X3D::X4DNode::init  )  [inline, virtual]
 

Called once the graph is created.

If you overload this method, it is a good idea to explicitly initialize the parent class before the derived class. Base implementation does nothing.

Reimplemented in X3DTK::X3D::AnimalEngineNode< AnimalEngine >, X3DTK::X3D::EngineNode, X3DTK::X3D::EngineGroupNode, X3DTK::X3D::MorphingNode, X3DTK::X3D::FrameNode, X3DTK::X3D::MassSpringNode, X3DTK::X3D::AnimalEngineNode< AMassSpringEngine >, and X3DTK::X3D::AnimalEngineNode< AMorphingEngine >.

Definition at line 32 of file X4DNode.h.

Referenced by X3DTK::X3D::EngineLoaderVisitor::enterNode().

virtual void X3DTK::X3D::X4DNode::postInit  )  [inline, virtual]
 

Called once the graph is created.

If you overload this method, it is a good idea to explicitly initialize the parent class before the derived class. Base implementation does nothing.

Reimplemented in X3DTK::X3D::EngineNode, X3DTK::X3D::DeformableOctreeNode, X3DTK::X3D::DeformableOctreeParticleSystemNode, and X3DTK::X3D::DeformableOctreeShapeNode.

Definition at line 37 of file X4DNode.h.

Referenced by X3DTK::X3D::EngineLoaderVisitor::leaveNode().

virtual void X3DTK::X3D::X4DNode::toggleDraw bool  b  )  [inline, virtual]
 

Definition at line 49 of file X4DNode.h.

References m_draw.


Member Data Documentation

bool X3DTK::X3D::X4DNode::m_draw
 

the node is drawn iff m_draw

Definition at line 51 of file X4DNode.h.

Referenced by X3DTK::Qt::createEngineNodeQWidget(), X3DTK::Qt::createX4DNodeQWidget(), X3DTK::GL::GLEngineNode::draw(), X3DTK::GL::GLEngineLeafNode::draw(), and toggleDraw().


The documentation for this class was generated from the following files:
Generated on Thu Dec 23 13:52:35 2004 by doxygen 1.3.6