CIvfSelectComposite Class Reference

#include <ivf/IvfSelectComposite.h>

Inheritance diagram for CIvfSelectComposite:

CIvfComposite CIvfShape CIvfObject CIvfBase CIvfRefCountBase CIvfRTTIBase CIvfOldScene CIvfSelectOrtho List of all members.

Public Member Functions

 CIvfSelectComposite ()
virtual ~CIvfSelectComposite ()
 IvfClassInfo ("CIvfSelectComposite", CIvfComposite)
void setCamera (CIvfView *camera)
CIvfViewgetCamera ()
CIvfShapegetSelectedShape ()
void setRenderCamera (bool flag)
void setUseCustomTransform (bool flag)
GLint pick (int x, int y)
void addChild (CIvfShape *shape)
CIvfShaperemoveChild (int index)
CIvfShaperemoveShape (CIvfShape *removeShape)
void deleteChild (int index)
void renameChildren ()

Protected Member Functions

void processHits (GLint hits, GLuint buffer[])
virtual void endTransform ()
virtual void beginTransform ()
virtual void createGeometry ()
virtual void initializeSelect (int x, int y, int w, int h)
virtual void customView ()

Detailed Description

SelectComposite class

This class is used to handle selection in Ivf++.

Author:
Jonas Lindemann

Definition at line 50 of file IvfSelectComposite.h.


Constructor & Destructor Documentation

CIvfSelectComposite::CIvfSelectComposite  ) 
 

Constructor

virtual CIvfSelectComposite::~CIvfSelectComposite  )  [virtual]
 

Destructor


Member Function Documentation

void CIvfSelectComposite::addChild CIvfShape shape  )  [virtual]
 

Add child to scene

Reimplemented from CIvfComposite.

virtual void CIvfSelectComposite::beginTransform  )  [protected, virtual]
 

Start transform

Implements a OpenGL transform. This routine should call a glPushMatrix() and then call OpenGL routines transforming the object. The method is the first routine to be called in the render() method.

Reimplemented from CIvfShape.

Reimplemented in CIvfOldScene.

virtual void CIvfSelectComposite::createGeometry  )  [protected, virtual]
 

Forces an object recalculation.

Reimplemented from CIvfComposite.

Reimplemented in CIvfOldScene.

void CIvfSelectComposite::deleteChild int  index  )  [virtual]
 

Deletes a specific shape from the scene

Reimplemented from CIvfComposite.

virtual void CIvfSelectComposite::endTransform  )  [protected, virtual]
 

End transform

This is the last method called in the render() method. if a glPushMatrix() is called in the beginTransform() a glPopMatrix() should be called in this routine.

Reimplemented from CIvfShape.

Reimplemented in CIvfOldScene.

CIvfView* CIvfSelectComposite::getCamera  ) 
 

Returns the current camera object

Reimplemented in CIvfOldScene.

CIvfShape* CIvfSelectComposite::getSelectedShape  ) 
 

Returns selected shape (NULL if none)

GLint CIvfSelectComposite::pick int  x,
int  y
 

Initiate pick operation

The pick operation selects any shapes at the position of the mouse cursor.

Parameters:
x mouse x position
y mouse y position
Returns:
0 if no shapes where selected >0 if shapes where selected.

CIvfShape* CIvfSelectComposite::removeChild int  index  )  [virtual]
 

Removes a specific child from the scene

Reimplemented from CIvfComposite.

CIvfShape* CIvfSelectComposite::removeShape CIvfShape removeShape  )  [virtual]
 

Removes a specific shape from the scene

Reimplemented from CIvfComposite.

void CIvfSelectComposite::setCamera CIvfView camera  ) 
 

Set current camera object

The camera is used to calculate the intersection of a ray starting at the viewing plane and ending at the XY-plane of the coordinate system object. If the camera object is not referenced it will be deleted.


The documentation for this class was generated from the following file:
Generated on Fri Sep 1 15:36:57 2006 for Interactive Visualisation Framework - Ivf++ by  doxygen 1.4.6-NO