VTK
|
draw polygon during mouse move More...
#include <vtkInteractorStyleDrawPolygon.h>
Public Types | |
typedef vtkInteractorStyle | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkInteractorStyleDrawPolygon * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
std::vector< vtkVector2i > | GetPolygonPoints () |
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 |
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.
Definition at line 37 of file vtkInteractorStyleDrawPolygon.h.
Reimplemented from vtkInteractorStyle.
Definition at line 41 of file vtkInteractorStyleDrawPolygon.h.
vtkInteractorStyleDrawPolygon::vtkInteractorStyleDrawPolygon | ( | ) | [protected] |
vtkInteractorStyleDrawPolygon::~vtkInteractorStyleDrawPolygon | ( | ) | [protected] |
static vtkInteractorStyleDrawPolygon* vtkInteractorStyleDrawPolygon::New | ( | ) | [static] |
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.
static vtkInteractorStyleDrawPolygon* vtkInteractorStyleDrawPolygon::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
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.
virtual void vtkInteractorStyleDrawPolygon::OnLeftButtonDown | ( | ) | [virtual] |
Event bindings
Reimplemented from vtkInteractorStyle.
virtual void vtkInteractorStyleDrawPolygon::OnLeftButtonUp | ( | ) | [virtual] |
Event bindings
Reimplemented from vtkInteractorStyle.
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 | ( | ) | [protected, virtual] |
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.
Definition at line 73 of file vtkInteractorStyleDrawPolygon.h.