CIvfOldScene Class Reference

#include <ivf/IvfOldScene.h>

Inheritance diagram for CIvfOldScene:

CIvfSelectComposite CIvfComposite CIvfShape CIvfObject CIvfBase CIvfRefCountBase CIvfRTTIBase List of all members.

Public Member Functions

 CIvfOldScene ()
virtual ~CIvfOldScene ()
 IvfClassInfo ("CIvfOldScene", CIvfSelectComposite)
void setCamera (CIvfCamera *camera)
CIvfCameragetCamera ()
CIvfViewgetView ()
void setView (CIvfView *view)
void setWorldSystem (CIvfCoordinateSystem *world)
CIvfCoordinateSystemgetWorldSystem ()
void setCursor (CIvfCursor *cursor)
CIvfCursorgetCursor ()
void setLightMode (int mode)
int getLightMode ()
void setTempShape (CIvfShape *shape)
CIvfShapegetTempShape ()
void setTempRenderStyle (int style)
int getTempRenderStyle ()
void updateCursor (int x, int y)
void setNodeSize (double size)
void setObjectSize (double size)
void lockCursor ()
void unlockCursor ()
int isCursorLocked ()
void setSnapToGrid (bool flag)
bool getSnapToGrid ()
void setWorkspace (double size)
void setTransparentShape (CIvfShape *shape)
void setShowCursor (bool flag)
bool getShowCursor ()
void setShowGrid (bool flag)
bool getShowGrid ()

Protected Member Functions

void endTransform ()
void beginTransform ()
void createGeometry ()

Detailed Description

Scene class

This class is used to manage a scene in Ivf++. The class handles low-level cursor movement, light management, and selection.

Author:
Jonas Lindemann

Definition at line 58 of file IvfOldScene.h.


Constructor & Destructor Documentation

CIvfOldScene::CIvfOldScene  ) 
 

Constructor

virtual CIvfOldScene::~CIvfOldScene  )  [virtual]
 

Destructor


Member Function Documentation

void CIvfOldScene::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 CIvfSelectComposite.

void CIvfOldScene::createGeometry  )  [protected, virtual]
 

Forces an object recalculation.

Reimplemented from CIvfSelectComposite.

void CIvfOldScene::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 CIvfSelectComposite.

CIvfCamera* CIvfOldScene::getCamera  ) 
 

Returns the current camera object

Reimplemented from CIvfSelectComposite.

bool CIvfOldScene::getShowCursor  ) 
 

Return cursor state

bool CIvfOldScene::getShowGrid  ) 
 

Return grid state

bool CIvfOldScene::getSnapToGrid  ) 
 

Return grid snap state

int CIvfOldScene::getTempRenderStyle  ) 
 

Return temporary render style

CIvfShape* CIvfOldScene::getTempShape  ) 
 

Return temporary shape

CIvfCoordinateSystem* CIvfOldScene::getWorldSystem  ) 
 

Return coordinate system object

int CIvfOldScene::isCursorLocked  ) 
 

Returns true if cursor is locked otherwise false

void CIvfOldScene::lockCursor  ) 
 

Locks 3D cursor in XY-direction

When this method is called the 3D cursor can only be moved in the Z-direction of the current coordinate system.

void CIvfOldScene::setCursor CIvfCursor cursor  ) 
 

Set cursor object

The cursor is a 3D representation of a mouse cursor. If the cursor is not referenced it will be deleted.

void CIvfOldScene::setNodeSize double  size  ) 
 

Not supported

void CIvfOldScene::setObjectSize double  size  ) 
 

Not supported

void CIvfOldScene::setShowCursor bool  flag  ) 
 

Enable/disable cursor

void CIvfOldScene::setShowGrid bool  flag  ) 
 

Enable/disable grid

void CIvfOldScene::setSnapToGrid bool  flag  ) 
 

Enable/disable grid snap

void CIvfOldScene::setTempRenderStyle int  style  ) 
 

Set temporary drawing style

The temporary object can be drawn in to ways:

Parameters:
IVF_TEMP_SOLID solid shape
IVF_TEMP_WIRE wire frame representation

void CIvfOldScene::setTempShape CIvfShape shape  ) 
 

Set temporary shape

The temporary shape is not included in the scene graph and can be used to draw outlines of objects that is to be placed in the scene.

void CIvfOldScene::setTransparentShape CIvfShape shape  ) 
 

Set transparent shape

The transparent shape is rendered last in the rendering stage of the scene and is not contained in the scene graph.

void CIvfOldScene::setWorkspace double  size  ) 
 

Set the workspace size

Sets the size of the workspace and scales corresponding interaction objects.

void CIvfOldScene::setWorldSystem CIvfCoordinateSystem world  ) 
 

Set current coordinate system object

The coordinate system object is used to calculate the position of the 3D cursor. If the coordiate system object is not referenced by any other objects it will be deleted by IvfScene.

void CIvfOldScene::unlockCursor  ) 
 

Unlocks the 3D cursor

void CIvfOldScene::updateCursor int  x,
int  y
 

Update 3D cursor

Projects a ray from the viewing plane to the current coordinate system XY-plane and moves the 3D cursor to this position.

Parameters:
x mouse x position
y mouse y position


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