ParaView
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
vtkPVAxesWidget Class Reference

A widget to manipulate an axe. More...

#include <vtkPVAxesWidget.h>

Inherits vtkInteractorObserver.

Collaboration diagram for vtkPVAxesWidget:
Collaboration graph
[legend]

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)
 Enable the 3D widget. More...
 
void ExecuteEvent (vtkObject *o, unsigned long event, void *calldata)
 Callback to keep the camera for the axes actor up to date with the camera in the parent renderer. More...
 
void SetAxesActor (vtkPVAxesActor *actor)
 Set/get the axes actor to be displayed in this 3D widget. More...
 
virtual vtkPVAxesActorGetAxesActor ()
 Set/get the axes actor to be displayed in this 3D widget. More...
 
void SetParentRenderer (vtkRenderer *ren)
 Set the renderer this 3D widget will be contained in. More...
 
vtkRenderer * GetParentRenderer ()
 Set the renderer this 3D widget will be contained in. More...
 
virtual vtkRenderer * GetRenderer ()
 Get the renderer. More...
 
void SetInteractive (int state)
 Set/get whether to allow this 3D widget to be interactively moved/scaled. More...
 
virtual int GetInteractive ()
 Set/get whether to allow this 3D widget to be interactively moved/scaled. More...
 
virtual void InteractiveOn ()
 Set/get whether to allow this 3D widget to be interactively moved/scaled. More...
 
virtual void InteractiveOff ()
 Set/get whether to allow this 3D widget to be interactively moved/scaled. More...
 
void SetOutlineColor (double r, double g, double b)
 Set/get the color of the outline of this widget. More...
 
double * GetOutlineColor ()
 Set/get the color of the outline of this widget. More...
 
void SetAxisLabelColor (double r, double g, double b)
 Set/get the color of the axis labels of this widget. More...
 
double * GetAxisLabelColor ()
 Set/get the color of the axis labels of this widget. More...
 
void SetViewport (double minX, double minY, double maxX, double maxY)
 Set/get the viewport to position/size this 3D widget. More...
 
double * GetViewport ()
 Set/get the viewport to position/size this 3D widget. More...
 

Static Public Member Functions

static vtkPVAxesWidgetNew ()
 
static int IsTypeOf (const char *type)
 
static vtkPVAxesWidgetSafeDownCast (vtkObject *o)
 

Static Public Attributes

static const int RendererLayer = 1
 Layer number to use for the internal renderer created by vtkPVAxesWidget. More...
 

Protected Types

enum  AxesWidgetState {
  Outside = 0, Inside, TopLeft, TopRight,
  BottomLeft, BottomRight
}
 

Protected Member Functions

 vtkPVAxesWidget ()
 
 ~vtkPVAxesWidget ()
 
void UpdateCursorIcon ()
 
void SetMouseCursor (int cursorState)
 
void OnButtonPress ()
 
void OnMouseMove ()
 
void OnButtonRelease ()
 
void MoveWidget ()
 
void ResizeTopLeft ()
 
void ResizeTopRight ()
 
void ResizeBottomLeft ()
 
void ResizeBottomRight ()
 
void SquareRenderer ()
 

Static Protected Member Functions

static void ProcessEvents (vtkObject *object, unsigned long event, void *clientdata, void *calldata)
 

Protected Attributes

vtkRenderer * Renderer
 
vtkRenderer * ParentRenderer
 
vtkPVAxesActorAxesActor
 
vtkPolyData * Outline
 
vtkActor2D * OutlineActor
 
vtkPVAxesWidgetObserver * Observer
 
int StartTag
 
int MouseCursorState
 
int Moving
 
int StartPosition [2]
 
int Interactive
 
int State
 
unsigned long StartEventObserverId
 

Detailed Description

A widget to manipulate an axe.

This widget creates and manages its own vtkPVAxesActor.

Definition at line 36 of file vtkPVAxesWidget.h.

Member Typedef Documentation

◆ Superclass

typedef vtkInteractorObserver vtkPVAxesWidget::Superclass

Definition at line 40 of file vtkPVAxesWidget.h.

Member Enumeration Documentation

◆ AxesWidgetState

Enumerator
Outside 
Inside 
TopLeft 
TopRight 
BottomLeft 
BottomRight 

Definition at line 144 of file vtkPVAxesWidget.h.

Constructor & Destructor Documentation

◆ vtkPVAxesWidget()

vtkPVAxesWidget::vtkPVAxesWidget ( )
protected

◆ ~vtkPVAxesWidget()

vtkPVAxesWidget::~vtkPVAxesWidget ( )
protected

Member Function Documentation

◆ New()

static vtkPVAxesWidget* vtkPVAxesWidget::New ( )
static

◆ GetClassName()

virtual const char* vtkPVAxesWidget::GetClassName ( )
virtual

◆ IsTypeOf()

static int vtkPVAxesWidget::IsTypeOf ( const char *  type)
static

◆ IsA()

virtual int vtkPVAxesWidget::IsA ( const char *  type)
virtual

◆ SafeDownCast()

static vtkPVAxesWidget* vtkPVAxesWidget::SafeDownCast ( vtkObject *  o)
static

◆ PrintSelf()

void vtkPVAxesWidget::PrintSelf ( ostream &  os,
vtkIndent  indent 
)

◆ SetAxesActor()

void vtkPVAxesWidget::SetAxesActor ( vtkPVAxesActor actor)

Set/get the axes actor to be displayed in this 3D widget.

◆ GetAxesActor()

virtual vtkPVAxesActor* vtkPVAxesWidget::GetAxesActor ( )
virtual

Set/get the axes actor to be displayed in this 3D widget.

◆ SetEnabled()

virtual void vtkPVAxesWidget::SetEnabled ( int  )
virtual

Enable the 3D widget.

◆ SetParentRenderer()

void vtkPVAxesWidget::SetParentRenderer ( vtkRenderer *  ren)

Set the renderer this 3D widget will be contained in.

◆ GetParentRenderer()

vtkRenderer* vtkPVAxesWidget::GetParentRenderer ( )

Set the renderer this 3D widget will be contained in.

◆ GetRenderer()

virtual vtkRenderer* vtkPVAxesWidget::GetRenderer ( )
virtual

Get the renderer.

◆ ExecuteEvent()

void vtkPVAxesWidget::ExecuteEvent ( vtkObject *  o,
unsigned long  event,
void *  calldata 
)

Callback to keep the camera for the axes actor up to date with the camera in the parent renderer.

◆ SetInteractive()

void vtkPVAxesWidget::SetInteractive ( int  state)

Set/get whether to allow this 3D widget to be interactively moved/scaled.

◆ GetInteractive()

virtual int vtkPVAxesWidget::GetInteractive ( )
virtual

Set/get whether to allow this 3D widget to be interactively moved/scaled.

◆ InteractiveOn()

virtual void vtkPVAxesWidget::InteractiveOn ( )
virtual

Set/get whether to allow this 3D widget to be interactively moved/scaled.

◆ InteractiveOff()

virtual void vtkPVAxesWidget::InteractiveOff ( )
virtual

Set/get whether to allow this 3D widget to be interactively moved/scaled.

◆ SetOutlineColor()

void vtkPVAxesWidget::SetOutlineColor ( double  r,
double  g,
double  b 
)

Set/get the color of the outline of this widget.

The outline is visible when (in interactive mode) the cursor is over this 3D widget.

◆ GetOutlineColor()

double* vtkPVAxesWidget::GetOutlineColor ( )

Set/get the color of the outline of this widget.

The outline is visible when (in interactive mode) the cursor is over this 3D widget.

◆ SetAxisLabelColor()

void vtkPVAxesWidget::SetAxisLabelColor ( double  r,
double  g,
double  b 
)

Set/get the color of the axis labels of this widget.

◆ GetAxisLabelColor()

double* vtkPVAxesWidget::GetAxisLabelColor ( )

Set/get the color of the axis labels of this widget.

◆ SetViewport()

void vtkPVAxesWidget::SetViewport ( double  minX,
double  minY,
double  maxX,
double  maxY 
)

Set/get the viewport to position/size this 3D widget.

◆ GetViewport()

double* vtkPVAxesWidget::GetViewport ( )

Set/get the viewport to position/size this 3D widget.

◆ ProcessEvents()

static void vtkPVAxesWidget::ProcessEvents ( vtkObject *  object,
unsigned long  event,
void *  clientdata,
void *  calldata 
)
staticprotected

◆ UpdateCursorIcon()

void vtkPVAxesWidget::UpdateCursorIcon ( )
protected

◆ SetMouseCursor()

void vtkPVAxesWidget::SetMouseCursor ( int  cursorState)
protected

◆ OnButtonPress()

void vtkPVAxesWidget::OnButtonPress ( )
protected

◆ OnMouseMove()

void vtkPVAxesWidget::OnMouseMove ( )
protected

◆ OnButtonRelease()

void vtkPVAxesWidget::OnButtonRelease ( )
protected

◆ MoveWidget()

void vtkPVAxesWidget::MoveWidget ( )
protected

◆ ResizeTopLeft()

void vtkPVAxesWidget::ResizeTopLeft ( )
protected

◆ ResizeTopRight()

void vtkPVAxesWidget::ResizeTopRight ( )
protected

◆ ResizeBottomLeft()

void vtkPVAxesWidget::ResizeBottomLeft ( )
protected

◆ ResizeBottomRight()

void vtkPVAxesWidget::ResizeBottomRight ( )
protected

◆ SquareRenderer()

void vtkPVAxesWidget::SquareRenderer ( )
protected

Member Data Documentation

◆ RendererLayer

const int vtkPVAxesWidget::RendererLayer = 1
static

Layer number to use for the internal renderer created by vtkPVAxesWidget.

Definition at line 46 of file vtkPVAxesWidget.h.

◆ Renderer

vtkRenderer* vtkPVAxesWidget::Renderer
protected

Definition at line 120 of file vtkPVAxesWidget.h.

◆ ParentRenderer

vtkRenderer* vtkPVAxesWidget::ParentRenderer
protected

Definition at line 121 of file vtkPVAxesWidget.h.

◆ AxesActor

vtkPVAxesActor* vtkPVAxesWidget::AxesActor
protected

Definition at line 123 of file vtkPVAxesWidget.h.

◆ Outline

vtkPolyData* vtkPVAxesWidget::Outline
protected

Definition at line 124 of file vtkPVAxesWidget.h.

◆ OutlineActor

vtkActor2D* vtkPVAxesWidget::OutlineActor
protected

Definition at line 125 of file vtkPVAxesWidget.h.

◆ Observer

vtkPVAxesWidgetObserver* vtkPVAxesWidget::Observer
protected

Definition at line 130 of file vtkPVAxesWidget.h.

◆ StartTag

int vtkPVAxesWidget::StartTag
protected

Definition at line 131 of file vtkPVAxesWidget.h.

◆ MouseCursorState

int vtkPVAxesWidget::MouseCursorState
protected

Definition at line 133 of file vtkPVAxesWidget.h.

◆ Moving

int vtkPVAxesWidget::Moving
protected

Definition at line 134 of file vtkPVAxesWidget.h.

◆ StartPosition

int vtkPVAxesWidget::StartPosition[2]
protected

Definition at line 135 of file vtkPVAxesWidget.h.

◆ Interactive

int vtkPVAxesWidget::Interactive
protected

Definition at line 137 of file vtkPVAxesWidget.h.

◆ State

int vtkPVAxesWidget::State
protected

Definition at line 142 of file vtkPVAxesWidget.h.

◆ StartEventObserverId

unsigned long vtkPVAxesWidget::StartEventObserverId
protected

Definition at line 166 of file vtkPVAxesWidget.h.


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