Documentation


X3DTK::GL::MyRendererStateVariables Class Reference

#include <myGLRendererStateVariables.h>

Inheritance diagram for X3DTK::GL::MyRendererStateVariables:

StateVariables List of all members.

Detailed Description

StateVariables for the GLRenderer module.

Definition at line 20 of file myGLRendererStateVariables.h.

Public Member Functions

 MyRendererStateVariables ()
 Constructor.

virtual ~MyRendererStateVariables ()
 Destructor.

void initSelect (double x, double y)
 Initializes the selection. x and y are the screen coordinates.

void finishSelect ()
 Finishes the selection.

void storeShape (X3DShapeNode *S)
 Stores the shape. Returns the integer identifier of the shape.

int getCurrentId () const
 Gets the current id.

void setSelectionMode (bool value)
 Sets the selection mode.

X3DShapeNode * getShape () const
 Returns the selected shape.

bool getSelectionMode () const
 Gets the selection mode.


Public Attributes

X3D::X3DBoundedObject * boundedObject
 The bounded object to draw its bounding box.


Private Attributes

std::vector< X3DShapeNode * > _shapeVector
bool _selectionMode
X3DShapeNode * _shape
GLuint _hits [32768]


Constructor & Destructor Documentation

X3DTK::GL::MyRendererStateVariables::MyRendererStateVariables  ) 
 

Constructor.

Definition at line 13 of file myGLRendererStateVariables.cpp.

X3DTK::GL::MyRendererStateVariables::~MyRendererStateVariables  )  [virtual]
 

Destructor.

Definition at line 18 of file myGLRendererStateVariables.cpp.


Member Function Documentation

void X3DTK::GL::MyRendererStateVariables::finishSelect  ) 
 

Finishes the selection.

Definition at line 29 of file myGLRendererStateVariables.cpp.

References _hits, _shape, and _shapeVector.

int X3DTK::GL::MyRendererStateVariables::getCurrentId  )  const [inline]
 

Gets the current id.

Definition at line 40 of file myGLRendererStateVariables.h.

References _shapeVector.

Referenced by X3DTK::GL::MyRendererShapeVisitor::enterX3DShapeNode().

bool X3DTK::GL::MyRendererStateVariables::getSelectionMode  )  const [inline]
 

Gets the selection mode.

Definition at line 47 of file myGLRendererStateVariables.h.

References _selectionMode.

Referenced by X3DTK::GL::MyRendererShapeVisitor::enterX3DShapeNode().

X3DShapeNode* X3DTK::GL::MyRendererStateVariables::getShape  )  const [inline]
 

Returns the selected shape.

Definition at line 45 of file myGLRendererStateVariables.h.

References _shape.

void X3DTK::GL::MyRendererStateVariables::initSelect double  x,
double  y
 

Initializes the selection. x and y are the screen coordinates.

Definition at line 21 of file myGLRendererStateVariables.cpp.

References _hits.

void X3DTK::GL::MyRendererStateVariables::setSelectionMode bool  value  ) 
 

Sets the selection mode.

Definition at line 79 of file myGLRendererStateVariables.cpp.

References _selectionMode.

void X3DTK::GL::MyRendererStateVariables::storeShape X3DShapeNode *  S  ) 
 

Stores the shape. Returns the integer identifier of the shape.

Definition at line 74 of file myGLRendererStateVariables.cpp.

References _shapeVector.

Referenced by X3DTK::GL::MyRendererShapeVisitor::enterX3DShapeNode().


Member Data Documentation

GLuint X3DTK::GL::MyRendererStateVariables::_hits[32768] [private]
 

Definition at line 59 of file myGLRendererStateVariables.h.

Referenced by finishSelect(), and initSelect().

bool X3DTK::GL::MyRendererStateVariables::_selectionMode [private]
 

Definition at line 57 of file myGLRendererStateVariables.h.

Referenced by getSelectionMode(), and setSelectionMode().

X3DShapeNode* X3DTK::GL::MyRendererStateVariables::_shape [private]
 

Definition at line 58 of file myGLRendererStateVariables.h.

Referenced by finishSelect(), and getShape().

std::vector<X3DShapeNode *> X3DTK::GL::MyRendererStateVariables::_shapeVector [private]
 

Definition at line 56 of file myGLRendererStateVariables.h.

Referenced by finishSelect(), getCurrentId(), and storeShape().

X3D::X3DBoundedObject* X3DTK::GL::MyRendererStateVariables::boundedObject
 

The bounded object to draw its bounding box.

Definition at line 51 of file myGLRendererStateVariables.h.

Referenced by X3DTK::GL::MyRendererGroupingVisitor::enterTransform(), X3DTK::GL::MyRendererCoreVisitor::enterX3DNode(), and X3DTK::GL::MyRendererShapeVisitor::enterX3DShapeNode().


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