CIvfCoordinateInputHandler Class Reference
#include <ivfwidget/IvfCoordinateInputHandler.h>
Inheritance diagram for CIvfCoordinateInputHandler:
List of all members.
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
|
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] |
|
Member Function Documentation
CIvfCamera* CIvfCoordinateInputHandler::getCamera |
( |
|
) |
|
|
|
Return reference to current camera |
bool CIvfCoordinateInputHandler::getLockXZ |
( |
|
) |
|
|
|
Return cursor XZ lock state |
|
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::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
1.4.6-NO