VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkInteractorStyleDrawPolygon Class Reference

draw polygon during mouse move More...

#include <vtkInteractorStyleDrawPolygon.h>

Inherits vtkInteractorStyle.

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 vtkObjectBase * NewInstanceInternal () const
 
 vtkInteractorStyleDrawPolygon ()
 
 ~vtkInteractorStyleDrawPolygon ()
 
virtual void DrawPolygon ()
 

Protected Attributes

int StartPosition [2]
 
int EndPosition [2]
 
int Moving
 
bool DrawPolygonPixels
 
vtkUnsignedCharArray * PixelArray
 

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

typedef vtkInteractorStyle vtkInteractorStyleDrawPolygon::Superclass

Definition at line 41 of file vtkInteractorStyleDrawPolygon.h.

Constructor & Destructor Documentation

vtkInteractorStyleDrawPolygon::vtkInteractorStyleDrawPolygon ( )
protected
vtkInteractorStyleDrawPolygon::~vtkInteractorStyleDrawPolygon ( )
protected

Member Function Documentation

static vtkInteractorStyleDrawPolygon* vtkInteractorStyleDrawPolygon::New ( )
static
static int vtkInteractorStyleDrawPolygon::IsTypeOf ( const char *  type)
static
virtual int vtkInteractorStyleDrawPolygon::IsA ( const char *  type)
virtual
static vtkInteractorStyleDrawPolygon* vtkInteractorStyleDrawPolygon::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkInteractorStyleDrawPolygon::NewInstanceInternal ( ) const
protectedvirtual
vtkInteractorStyleDrawPolygon* vtkInteractorStyleDrawPolygon::NewInstance ( ) const
void vtkInteractorStyleDrawPolygon::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual void vtkInteractorStyleDrawPolygon::OnMouseMove ( )
virtual

Event bindings

virtual void vtkInteractorStyleDrawPolygon::OnLeftButtonDown ( )
virtual

Event bindings

virtual void vtkInteractorStyleDrawPolygon::OnLeftButtonUp ( )
virtual

Event bindings

virtual void vtkInteractorStyleDrawPolygon::SetDrawPolygonPixels ( bool  )
virtual

Whether to draw polygon in screen pixels. Default is ON

virtual bool vtkInteractorStyleDrawPolygon::GetDrawPolygonPixels ( )
virtual

Whether to draw polygon in screen pixels. Default is ON

virtual void vtkInteractorStyleDrawPolygon::DrawPolygonPixelsOn ( )
virtual

Whether to draw polygon in screen pixels. Default is ON

virtual void vtkInteractorStyleDrawPolygon::DrawPolygonPixelsOff ( )
virtual

Whether to draw polygon in screen pixels. Default is ON

std::vector<vtkVector2i> vtkInteractorStyleDrawPolygon::GetPolygonPoints ( )

Get the current polygon points in display units

virtual void vtkInteractorStyleDrawPolygon::DrawPolygon ( )
protectedvirtual

Member Data Documentation

int vtkInteractorStyleDrawPolygon::StartPosition[2]
protected

Definition at line 67 of file vtkInteractorStyleDrawPolygon.h.

int vtkInteractorStyleDrawPolygon::EndPosition[2]
protected

Definition at line 68 of file vtkInteractorStyleDrawPolygon.h.

int vtkInteractorStyleDrawPolygon::Moving
protected

Definition at line 69 of file vtkInteractorStyleDrawPolygon.h.

bool vtkInteractorStyleDrawPolygon::DrawPolygonPixels
protected

Definition at line 71 of file vtkInteractorStyleDrawPolygon.h.

vtkUnsignedCharArray* vtkInteractorStyleDrawPolygon::PixelArray
protected

Definition at line 73 of file vtkInteractorStyleDrawPolygon.h.


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