#include <vtkXYPlotWidget.h>
Inheritance diagram for vtkXYPlotWidget:
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 51 of file vtkXYPlotWidget.h.
Public Types | |
typedef vtkInteractorObserver | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetEnabled (int) |
virtual void | SetXYPlotActor (vtkXYPlotActor *) |
virtual vtkXYPlotActor * | GetXYPlotActor () |
Static Public Member Functions | |
vtkXYPlotWidget * | New () |
int | IsTypeOf (const char *type) |
vtkXYPlotWidget * | SafeDownCast (vtkObject *o) |
Protected Types | |
enum | WidgetState { Moving = 0, AdjustingP1, AdjustingP2, AdjustingP3, AdjustingP4, AdjustingE1, AdjustingE2, AdjustingE3, AdjustingE4, Inside, Outside } |
Protected Member Functions | |
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 | |
void | ProcessEvents (vtkObject *object, unsigned long event, void *clientdata, void *calldata) |
Protected Attributes | |
vtkXYPlotActor * | XYPlotActor |
float | StartPosition [2] |
int | State |
|
Reimplemented from vtkInteractorObserver. Definition at line 55 of file vtkXYPlotWidget.h. |
|
Definition at line 90 of file vtkXYPlotWidget.h. |
|
|
|
|
|
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. Reimplemented from vtkObject. |
|
Reimplemented from vtkInteractorObserver. |
|
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 vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkInteractorObserver. |
|
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 vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkInteractorObserver. |
|
Reimplemented from vtkInteractorObserver. |
|
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 vtkInteractorObserver. |
|
Get the XY plot used by this Widget. One is created automatically. |
|
Get the XY plot used by this Widget. One is created automatically. |
|
Methods for turning the interactor observer on and off. Reimplemented from vtkInteractorObserver. |
|
Handles the char widget activation event. Also handles the delete event. Reimplemented from vtkInteractorObserver. |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 72 of file vtkXYPlotWidget.h. |
|
Definition at line 86 of file vtkXYPlotWidget.h. |
|
Definition at line 89 of file vtkXYPlotWidget.h. |