CIvfCoordinateInputHandler Class Reference

#include <ivfwidget/IvfCoordinateInputHandler.h>

Inheritance diagram for CIvfCoordinateInputHandler:

CIvfHandlerBase CIvfMouseMoveEvent CIvfMouseDownEvent CIvfMouseUpEvent CIvfBase CIvfRefCountBase CIvfRTTIBase CIvfShapePlacementHandler List of all members.

Public Member Functions

 CIvfCoordinateInputHandler (CIvfWidgetBase *widget, CIvfCamera *camera)
virtual ~CIvfCoordinateInputHandler ()
 IvfClassInfo ("CIvfCoordinateInputHandler", CIvfHandlerBase)
void setLockXZNoEvent (bool flag)
void setPlanePosition (double x, double y, double z)
void setPlanePosition (CIvfVec3d &vec)
void addMouseDown3dEvent (CIvfMouseDown3dEvent *event)
void addMouseMove3dEvent (CIvfMouseMove3dEvent *event)
void addMouseUp3dEvent (CIvfMouseUp3dEvent *event)
void removeMouseDown3dEvent (CIvfMouseDown3dEvent *event)
void removeMouseMove3dEvent (CIvfMouseMove3dEvent *event)
void removeMouseUp3dEvent (CIvfMouseUp3dEvent *event)
void setLockXZ (bool flag)
bool getLockXZ ()
CIvfCameragetCamera ()
CIvfWidgetBasegetWidget ()
virtual void onMouseDown (int x, int y)
virtual void onMouseMove (int x, int y)
virtual void onMouseUp (int x, int y)

Detailed Description

3D Coordinate input handler

This class implements 3d coordinate input handler. The class is used together with CIvfWidgetBase derived classes, such as CIvfFltkBase, CIvfWin32Window, CIvfMfcBase etc. The class needs a reference to the base widget and a CIvfCamera derived class. The class installs 3 handlers for mouse movement in the widget class.

Definition at line 98 of file IvfCoordinateInputHandler.h.


Constructor & Destructor Documentation

CIvfCoordinateInputHandler::CIvfCoordinateInputHandler CIvfWidgetBase widget,
CIvfCamera camera
 

Class constructor

widget Reference to a CIvfWidgetBase class. In most cases this parameter can be set to this.

Parameters:
camera CIvfCamera derived class for calulcating the intersection with the coordinate plane.

virtual CIvfCoordinateInputHandler::~CIvfCoordinateInputHandler  )  [virtual]
 

Class destructor


Member Function Documentation

void CIvfCoordinateInputHandler::addMouseDown3dEvent CIvfMouseDown3dEvent event  ) 
 

Add mouse down event

void CIvfCoordinateInputHandler::addMouseMove3dEvent CIvfMouseMove3dEvent event  ) 
 

Add mouse move event

void CIvfCoordinateInputHandler::addMouseUp3dEvent CIvfMouseUp3dEvent event  ) 
 

Add mouse up event

CIvfCamera* CIvfCoordinateInputHandler::getCamera  ) 
 

Return reference to current camera

bool CIvfCoordinateInputHandler::getLockXZ  ) 
 

Return cursor XZ lock state

CIvfWidgetBase* CIvfCoordinateInputHandler::getWidget  ) 
 

Return reference to widget

virtual void CIvfCoordinateInputHandler::onMouseDown int  x,
int  y
[virtual]
 

onMouseUp method

The onMouse method is called when the mouse button is released.

Reimplemented from CIvfMouseDownEvent.

virtual void CIvfCoordinateInputHandler::onMouseMove int  x,
int  y
[virtual]
 

onMouseMove method

The onMouseMove method is called whenever the mouse is moved in the window.

Reimplemented from CIvfMouseMoveEvent.

virtual void CIvfCoordinateInputHandler::onMouseUp int  x,
int  y
[virtual]
 

onMouseMove method

The onMouseMove method is called whenever the mouse is moved in the window.

Reimplemented from CIvfMouseUpEvent.

void CIvfCoordinateInputHandler::removeMouseDown3dEvent CIvfMouseDown3dEvent event  ) 
 

Remove mouse down event

void CIvfCoordinateInputHandler::removeMouseMove3dEvent CIvfMouseMove3dEvent event  ) 
 

Remove mouse move event

void CIvfCoordinateInputHandler::removeMouseUp3dEvent CIvfMouseUp3dEvent event  ) 
 

Remove mouse up event

void CIvfCoordinateInputHandler::setLockXZ bool  flag  ) 
 

Lock/unlock cursor in XZ plane

void CIvfCoordinateInputHandler::setLockXZNoEvent bool  flag  ) 
 

Locks cursor in XY direction (without producing an event)

void CIvfCoordinateInputHandler::setPlanePosition CIvfVec3d vec  ) 
 

Set position of the coordinate input plane.

void CIvfCoordinateInputHandler::setPlanePosition double  x,
double  y,
double  z
 

Set position of the coordinate input plane.


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