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

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)
 
vtkXYPlotWidgetNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void SetEnabled (int)
 
virtual void SetXYPlotActor (vtkXYPlotActor *)
 
virtual vtkXYPlotActor * GetXYPlotActor ()
 

Static Public Member Functions

static vtkXYPlotWidgetNew ()
 
static int IsTypeOf (const char *type)
 
static vtkXYPlotWidgetSafeDownCast (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
 

Detailed Description

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.

See Also
vtkInteractorObserver
Events:
vtkCommand::EndInteractionEvent vtkCommand::StartInteractionEvent vtkCommand::EnableEvent vtkCommand::InteractionEvent vtkCommand::DisableEvent

Definition at line 42 of file vtkXYPlotWidget.h.

Member Typedef Documentation

typedef vtkInteractorObserver vtkXYPlotWidget::Superclass

Definition at line 46 of file vtkXYPlotWidget.h.

Member Enumeration Documentation

Enumerator
Moving 
AdjustingP1 
AdjustingP2 
AdjustingP3 
AdjustingP4 
AdjustingE1 
AdjustingE2 
AdjustingE3 
AdjustingE4 
Inside 
Outside 

Definition at line 81 of file vtkXYPlotWidget.h.

Constructor & Destructor Documentation

vtkXYPlotWidget::vtkXYPlotWidget ( )
protected
vtkXYPlotWidget::~vtkXYPlotWidget ( )
protected

Member Function Documentation

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

Get the XY plot used by this Widget. One is created automatically.

virtual vtkXYPlotActor* vtkXYPlotWidget::GetXYPlotActor ( )
virtual

Get the XY plot used by this Widget. One is created automatically.

virtual void vtkXYPlotWidget::SetEnabled ( int  )
virtual

Methods for turning the interactor observer on and off.

static void vtkXYPlotWidget::ProcessEvents ( vtkObject *  object,
unsigned long  event,
void *  clientdata,
void *  calldata 
)
staticprotected
void vtkXYPlotWidget::OnLeftButtonDown ( )
protected
void vtkXYPlotWidget::OnLeftButtonUp ( )
protected
void vtkXYPlotWidget::OnMouseMove ( )
protected
int vtkXYPlotWidget::ComputeStateBasedOnPosition ( int  X,
int  Y,
int *  pos1,
int *  pos2 
)
protected
void vtkXYPlotWidget::SetCursor ( int  State)
protected

Member Data Documentation

vtkXYPlotActor* vtkXYPlotWidget::XYPlotActor
protected

Definition at line 63 of file vtkXYPlotWidget.h.

float vtkXYPlotWidget::StartPosition[2]
protected

Definition at line 77 of file vtkXYPlotWidget.h.

int vtkXYPlotWidget::State
protected

Definition at line 80 of file vtkXYPlotWidget.h.


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