Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

vtkInteractorStyleCAD Class Reference

provides event-driven interface to the rendering window. More...

#include <vtkInteractorStyleCAD.h>

Inheritance diagram for vtkInteractorStyleCAD

Inheritance graph

[legend]
List of all members.

Public Methods

virtual const char* GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream& os, vtkIndent indent)
void StartUserInteraction ()
void EndUserInteraction ()
void SetUserInteractionMethod (void (*f)(void *), void *arg)
void SetUserInteractionMethodArgDelete (void (*f)(void *))
virtual int* GetLastPos ()
virtual void GetLastPos ( int &, int &)
virtual void GetLastPos ( int [2])
virtual int* GetOldPos ()
virtual void GetOldPos ( int &, int &)
virtual void GetOldPos ( int [2])
virtual int GetShiftKey ()
virtual int GetCtrlKey ()
virtual int GetChar ()
virtual char* GetKeySym ()
void OnMouseMove (int ctrl, int shift, int x, int y)
void OnRightButtonDown (int ctrl, int shift, int x, int y)
void OnRightButtonUp (int ctrl, int shift, int x, int y)
void OnMiddleButtonDown (int ctrl, int shift, int x, int y)
void OnMiddleButtonUp (int ctrl, int shift, int x, int y)
void OnLeftButtonDown (int ctrl, int shift, int x, int y)
void OnLeftButtonUp (int ctrl, int shift, int x, int y)
void OnKeyPress (int ctrl, int shift, char keycode, char *keysym, int repeatcount)
void OnKeyRelease (int ctrl, int shift, char keycode, char *keysym, int repeatcount)
void OnChar (int ctrl, int shift, char keycode, int repeatcount)
void HighlightGeometry (vtkActor *a, vtkDataSet *ds, int minId, int maxId)
void HighlightGeometry (vtkActor *a, vtkDataSet *ds, int *ids)
virtual void SetCellHighlight ( int )
virtual int GetCellHighlight ()
virtual void CellHighlightOn ()
virtual void CellHighlightOff ()
virtual vtkCellPickerGetCellPicker ()
virtual vtkGeometryFilterGetHighlightGeomFilter ()

Static Public Methods

vtkInteractorStyleCAD* New ()
int IsTypeOf (const char *type)
vtkInteractorStyleCAD* SafeDownCast (vtkObject *o)

Protected Methods

 vtkInteractorStyleCAD ()
 ~vtkInteractorStyleCAD ()
 vtkInteractorStyleCAD (const vtkInteractorStyleCAD&)
void operator= (const vtkInteractorStyleCAD&)
void OnTimer ()
void RotateCamera (int x, int y)
void SpinCamera (int x, int y)
void PanCamera (int x, int y)
void DollyCamera (int x, int y)

Protected Attributes

void (* UserInteractionMethod )(void *)
void (* UserInteractionMethodArgDelete )(void *)
void* UserInteractionMethodArg
vtkCellPickerCellPicker
vtkGeometryFilterHighlightGeomFilter
vtkPolyDataMapperCellMapper
vtkActorCellActor
vtkActorCurrentActor
vtkActorActorPicked
int OldPos [2]
int Char
char* KeySym
float SpinFrameWidth
float OldX
float OldY
float RadianToDegree
float NewPickPoint [4]
float OldPickPoint [4]
float MotionVector [3]
float MotionFactor
int Preprocess
int CellHighlight
double ViewFocus [3]
double ViewPoint [3]

Detailed Description

provides event-driven interface to the rendering window.

vtkInteractorStyleCAD implements the "trackball" style of interaction. That is, holding down the motion keys and then moving the mouse causes motion in proportion to the amount of motion.

The event bindings for this class include the following:

See also:
vtkInteractorStyle vtkInteractorStyleUser


Member Function Documentation

vtkCellPicker * GetCellPicker ( ) [virtual]
 

Get this objects cell picker.

int GetChar ( ) [virtual]
 

Get the character for a Char event.

vtkGeometryFilter * GetHighlightGeomFilter ( ) [virtual]
 

Get this objects geometry filter (used for highlighting).

char * GetKeySym ( ) [virtual]
 

Get the KeySym (in the same format as Tk KeySyms) for a KeyPress or KeyRelease method.

int * GetLastPos ( ) [virtual]
 

Get the most recent mouse position during mouse motion. In your user interaction method, you must use this to track the mouse movement. Do not use GetEventPosition(), which records the last position where a mouse button was pressed.

int * GetOldPos ( ) [virtual]
 

Get the previous mouse position during mouse motion, or after a key press. This can be used to calculate the relative displacement of the mouse.

int GetShiftKey ( ) [virtual]
 

Test whether modifiers were held down when mouse button or key was pressed

void HighlightGeometry ( vtkActor * a,
vtkDataSet * ds,
int minId,
int maxId )
 

Highlight dataset cells with ids between minId and maxId (inclusive). Highlighting is done by changing color of the cells (color is controled by PickColor ivar). If cells have scalars, scalar values are used for coloring.

vtkInteractorStyleCAD * New ( ) [static]
 

Instantiate object with cell highlighting on.

Reimplemented from vtkInteractorStyle.

void SetCellHighlight ( int ) [virtual]
 

Enable/Disable highlighting of picked cell.

void SetUserInteractionMethod ( void(* f)(void *),
void * arg )
 

Set a method that will be called every time the mouse is moved while UserInteraction mode is on. You can use GetLastPos() to determine the position of the cursor in display coordinates, and GetOldPos() to determine the previous position.

void StartUserInteraction ( )
 

Start/Stop user interaction mode. While the UserInteraction mode is set, the UserInteraction method will be called every time the mouse moves. You must not call these methods before you have Initialized the vtkRenderWindowInteractor.


The documentation for this class was generated from the following file:
Generated at Tue Sep 26 18:34:00 2000 for Grid Edit by doxygen1.2.0 written by Dimitri van Heesch, © 1997-2000