VTK
|
2D widget for manipulating a XY plot More...
#include <vtkXYPlotWidget.h>
Inherits vtkInteractorObserver.
Public Types | |
typedef vtkInteractorObserver | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkXYPlotWidget * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetEnabled (int) |
virtual void | SetXYPlotActor (vtkXYPlotActor *) |
virtual vtkXYPlotActor * | GetXYPlotActor () |
Static Public Member Functions | |
static vtkXYPlotWidget * | New () |
static int | IsTypeOf (const char *type) |
static vtkXYPlotWidget * | SafeDownCast (vtkObjectBase *o) |
Protected Types | |
enum | WidgetState { Moving =0, AdjustingP1, AdjustingP2, AdjustingP3, AdjustingP4, AdjustingE1, AdjustingE2, AdjustingE3, AdjustingE4, Inside, Outside } |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkXYPlotWidget () | |
~vtkXYPlotWidget () | |
void | OnLeftButtonDown () |
void | OnLeftButtonUp () |
void | OnMouseMove () |
int | ComputeStateBasedOnPosition (int X, int Y, int *pos1, int *pos2) |
void | SetCursor (int State) |
Static Protected Member Functions | |
static void | ProcessEvents (vtkObject *object, unsigned long event, void *clientdata, void *calldata) |
Protected Attributes | |
vtkXYPlotActor * | XYPlotActor |
float | StartPosition [2] |
int | State |
2D widget for manipulating a XY plot
This class provides support for interactively manipulating the position, size, and orientation of a XY Plot. It listens to Left mouse events and mouse movement. It will change the cursor shape based on its location. If the cursor is over an edge of thea XY plot it will change the cursor shape to a resize edge shape. If the position of a XY plot is moved to be close to the center of one of the four edges of the viewport, then the XY plot will change its orientation to align with that edge. This orientation is sticky in that it will stay that orientation until the position is moved close to another edge.
Definition at line 42 of file vtkXYPlotWidget.h.
typedef vtkInteractorObserver vtkXYPlotWidget::Superclass |
Definition at line 46 of file vtkXYPlotWidget.h.
|
protected |
Enumerator | |
---|---|
Moving | |
AdjustingP1 | |
AdjustingP2 | |
AdjustingP3 | |
AdjustingP4 | |
AdjustingE1 | |
AdjustingE2 | |
AdjustingE3 | |
AdjustingE4 | |
Inside | |
Outside |
Definition at line 81 of file vtkXYPlotWidget.h.
|
protected |
|
protected |
|
static |
|
static |
|
virtual |
|
static |
|
protectedvirtual |
vtkXYPlotWidget* vtkXYPlotWidget::NewInstance | ( | ) | const |
void vtkXYPlotWidget::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
virtual |
Get the XY plot used by this Widget. One is created automatically.
|
virtual |
Get the XY plot used by this Widget. One is created automatically.
|
virtual |
Methods for turning the interactor observer on and off.
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 63 of file vtkXYPlotWidget.h.
|
protected |
Definition at line 77 of file vtkXYPlotWidget.h.
|
protected |
Definition at line 80 of file vtkXYPlotWidget.h.