VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkInteractorStyleDrawPolygon Class Reference

draw polygon during mouse move More...

#include <vtkInteractorStyleDrawPolygon.h>

Inheritance diagram for vtkInteractorStyleDrawPolygon:
Inheritance graph
[legend]
Collaboration diagram for vtkInteractorStyleDrawPolygon:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkInteractorStyle Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkInteractorStyleDrawPolygonNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
std::vector< vtkVector2iGetPolygonPoints ()
virtual void OnMouseMove ()
virtual void OnLeftButtonDown ()
virtual void OnLeftButtonUp ()
virtual void SetDrawPolygonPixels (bool)
virtual bool GetDrawPolygonPixels ()
virtual void DrawPolygonPixelsOn ()
virtual void DrawPolygonPixelsOff ()

Static Public Member Functions

static
vtkInteractorStyleDrawPolygon
New ()
static int IsTypeOf (const char *type)
static
vtkInteractorStyleDrawPolygon
SafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkInteractorStyleDrawPolygon ()
 ~vtkInteractorStyleDrawPolygon ()
virtual void DrawPolygon ()

Protected Attributes

int StartPosition [2]
int EndPosition [2]
int Moving
bool DrawPolygonPixels
vtkUnsignedCharArrayPixelArray

Detailed Description

draw polygon during mouse move

This interactor style allows the user to draw a polygon in the render window using the left mouse button while mouse is moving. When the mouse button is released, a SelectionChangedEvent will be fired.

Tests:
vtkInteractorStyleDrawPolygon (Tests)

Definition at line 37 of file vtkInteractorStyleDrawPolygon.h.


Member Typedef Documentation

Reimplemented from vtkInteractorStyle.

Definition at line 41 of file vtkInteractorStyleDrawPolygon.h.


Constructor & Destructor Documentation


Member Function Documentation

This class must be supplied with a vtkRenderWindowInteractor wrapper or parent. This class should not normally be instantiated by application programmers.

Reimplemented from vtkInteractorStyle.

static int vtkInteractorStyleDrawPolygon::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkInteractorStyle.

virtual int vtkInteractorStyleDrawPolygon::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkInteractorStyle.

Reimplemented from vtkInteractorStyle.

virtual vtkObjectBase* vtkInteractorStyleDrawPolygon::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkInteractorStyle.

Reimplemented from vtkInteractorStyle.

void vtkInteractorStyleDrawPolygon::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkInteractorStyle.

virtual void vtkInteractorStyleDrawPolygon::OnMouseMove ( ) [virtual]

Event bindings

Reimplemented from vtkInteractorStyle.

Event bindings

Reimplemented from vtkInteractorStyle.

Event bindings

Reimplemented from vtkInteractorStyle.

virtual void vtkInteractorStyleDrawPolygon::SetDrawPolygonPixels ( bool  ) [virtual]

Whether to draw polygon in screen pixels. Default is ON

Whether to draw polygon in screen pixels. Default is ON

Whether to draw polygon in screen pixels. Default is ON

Whether to draw polygon in screen pixels. Default is ON

Get the current polygon points in display units

virtual void vtkInteractorStyleDrawPolygon::DrawPolygon ( ) [protected, virtual]

Member Data Documentation

Definition at line 67 of file vtkInteractorStyleDrawPolygon.h.

Definition at line 68 of file vtkInteractorStyleDrawPolygon.h.

Definition at line 69 of file vtkInteractorStyleDrawPolygon.h.

Definition at line 71 of file vtkInteractorStyleDrawPolygon.h.

Definition at line 73 of file vtkInteractorStyleDrawPolygon.h.


The documentation for this class was generated from the following file: