In file graphics3D/PickingObject.h:

class PickingObject

class that implements a basic routine for picking one item from a given OpenGL display list

Inheritance:


Public

constructors
PickingObject ()
build a picking Object
destructor
virtual ~PickingObject ()
delete a PickingObject

Protected Fields

GLuint pickingBuffer [_pickingBufferSize]
the selection buffer used to pick items

Protected Methods

int doPicking (GLuint displayList, const Vec2 &pixel, Camera3D *cam, double areaSize)
returns the reference of a selected item after OpenGL picking

Documentation

class that implements a basic routine for picking one item from a given OpenGL display list
GLuint pickingBuffer[_pickingBufferSize]
the selection buffer used to pick items

int doPicking(GLuint displayList, const Vec2 &pixel, Camera3D *cam, double areaSize)
returns the reference of a selected item after OpenGL picking
Returns:
-1 if no item has been selected or returns the reference of the selected item
Parameters:
displayList - an OpenGL display list using the name stack
pixel - the position in screen coordinate where the mouse button was pressed
cam - the camera where the selection is performed
areaSize - the half size in pixels of the area around the pixel where any item is searched

constructors

PickingObject()
build a picking Object

destructor

virtual ~PickingObject()
delete a PickingObject


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de