vtkBiDimensionalRepresentation2D Class Reference

#include <vtkBiDimensionalRepresentation2D.h>

Inheritance diagram for vtkBiDimensionalRepresentation2D:

Inheritance graph
[legend]
Collaboration diagram for vtkBiDimensionalRepresentation2D:

Collaboration graph
[legend]

List of all members.


Detailed Description

represent the vtkBiDimensionalWidget

The vtkBiDimensionalRepresentation2D is used to represent the bi-dimensional measure in a 2D (overlay) context. This representation consists of two perpendicular lines defined by four vtkHandleRepresentations. The four handles can be independently manipulated consistent with the orthogonal constraint on the lines. (Note: the four points are referred to as Point1, Point2, Point3 and Point4. Point1 and Point2 define the first line; and Point3 and Point4 define the second orthogonal line.)

To create this widget, you click to place the first two points. The third point is mirrored with the fourth point; when you place the third point (which is orthogonal to the lined defined by the first two points), the fourth point is dropped as well. After definition, the four points can be moved (in constrained fashion, preserving orthogonality). Further, the entire widget can be translated by grabbing the center point of the widget; each line can be moved along the other line; and the entire widget can be rotated around its center point.

See also:
vtkAngleWidget vtkHandleRepresentation vtkBiDimensionalRepresentation
Tests:
vtkBiDimensionalRepresentation2D (Tests)

Definition at line 59 of file vtkBiDimensionalRepresentation2D.h.

typedef
vtkBiDimensionalRepresentation 
Superclass
static int IsTypeOf (const char *type)
static
vtkBiDimensionalRepresentation2D
SafeDownCast (vtkObject *o)
virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)

Public Types

enum  {
  Outside = 0, NearP1, NearP2, NearP3,
  NearP4, OnL1Inner, OnL1Outer, OnL2Inner,
  OnL2Outer, OnCenter
}

Public Member Functions

char * GetLabelText ()
virtual vtkProperty2DGetLineProperty ()
virtual vtkProperty2DGetSelectedLineProperty ()
virtual vtkTextPropertyGetTextProperty ()
virtual void BuildRepresentation ()
virtual int ComputeInteractionState (int X, int Y, int modify=0)
virtual void StartWidgetDefinition (double e[2])
virtual void Point2WidgetInteraction (double e[2])
virtual void Point3WidgetInteraction (double e[2])
virtual void StartWidgetManipulation (double e[2])
virtual void WidgetInteraction (double e[2])
virtual void Highlight (int highlightOn)
virtual void ReleaseGraphicsResources (vtkWindow *w)
virtual int RenderOverlay (vtkViewport *viewport)
double * GetLabelPosition ()
void GetLabelPosition (double pos[3])
void GetWorldLabelPosition (double pos[3])

Static Public Member Functions

static
vtkBiDimensionalRepresentation2D
New ()

Protected Member Functions

 vtkBiDimensionalRepresentation2D ()
 ~vtkBiDimensionalRepresentation2D ()
void ProjectOrthogonalPoint (double x[4], double y[3], double x1[3], double x2[3], double x21[3], double dir, double xP[3])

Protected Attributes

int Modifier
vtkCellArrayLineCells
vtkPointsLinePoints
vtkPolyDataLinePolyData
vtkPolyDataMapper2DLineMapper
vtkActor2DLineActor
vtkProperty2DLineProperty
vtkProperty2DSelectedLineProperty
vtkTextPropertyTextProperty
vtkTextMapperTextMapper
vtkActor2DTextActor
double P1World [3]
double P2World [3]
double P3World [3]
double P4World [3]
double P21World [3]
double P43World [3]
double T21
double T43
double CenterWorld [3]
double StartEventPositionWorld [4]

Member Typedef Documentation

Standard VTK methods.

Reimplemented from vtkBiDimensionalRepresentation.

Definition at line 67 of file vtkBiDimensionalRepresentation2D.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
Outside 
NearP1 
NearP2 
NearP3 
NearP4 
OnL1Inner 
OnL1Outer 
OnL2Inner 
OnL2Outer 
OnCenter 

Definition at line 85 of file vtkBiDimensionalRepresentation2D.h.


Constructor & Destructor Documentation

vtkBiDimensionalRepresentation2D::vtkBiDimensionalRepresentation2D (  )  [protected]

vtkBiDimensionalRepresentation2D::~vtkBiDimensionalRepresentation2D (  )  [protected]


Member Function Documentation

static vtkBiDimensionalRepresentation2D* vtkBiDimensionalRepresentation2D::New (  )  [static]

Instantiate the class.

Reimplemented from vtkObject.

virtual const char* vtkBiDimensionalRepresentation2D::GetClassName (  )  [virtual]

Standard VTK methods.

Reimplemented from vtkBiDimensionalRepresentation.

static int vtkBiDimensionalRepresentation2D::IsTypeOf ( const char *  type  )  [static]

Standard VTK methods.

Reimplemented from vtkBiDimensionalRepresentation.

virtual int vtkBiDimensionalRepresentation2D::IsA ( const char *  type  )  [virtual]

Standard VTK methods.

Reimplemented from vtkBiDimensionalRepresentation.

static vtkBiDimensionalRepresentation2D* vtkBiDimensionalRepresentation2D::SafeDownCast ( vtkObject o  )  [static]

Standard VTK methods.

Reimplemented from vtkBiDimensionalRepresentation.

void vtkBiDimensionalRepresentation2D::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Standard VTK methods.

Reimplemented from vtkBiDimensionalRepresentation.

virtual vtkProperty2D* vtkBiDimensionalRepresentation2D::GetLineProperty (  )  [virtual]

Retrieve the property used to control the appearance of the two orthogonal lines.

virtual vtkProperty2D* vtkBiDimensionalRepresentation2D::GetSelectedLineProperty (  )  [virtual]

Retrieve the property used to control the appearance of the two orthogonal lines.

virtual vtkTextProperty* vtkBiDimensionalRepresentation2D::GetTextProperty (  )  [virtual]

Retrieve the property used to control the appearance of the text labels.

virtual void vtkBiDimensionalRepresentation2D::BuildRepresentation (  )  [virtual]

These are methods that satisfy vtkWidgetRepresentation's API.

Implements vtkWidgetRepresentation.

virtual int vtkBiDimensionalRepresentation2D::ComputeInteractionState ( int  X,
int  Y,
int  modify = 0 
) [virtual]

These are methods that satisfy vtkWidgetRepresentation's API.

Reimplemented from vtkWidgetRepresentation.

virtual void vtkBiDimensionalRepresentation2D::StartWidgetDefinition ( double  e[2]  )  [virtual]

These are methods that satisfy vtkWidgetRepresentation's API.

Implements vtkBiDimensionalRepresentation.

virtual void vtkBiDimensionalRepresentation2D::Point2WidgetInteraction ( double  e[2]  )  [virtual]

These are methods that satisfy vtkWidgetRepresentation's API.

Implements vtkBiDimensionalRepresentation.

virtual void vtkBiDimensionalRepresentation2D::Point3WidgetInteraction ( double  e[2]  )  [virtual]

These are methods that satisfy vtkWidgetRepresentation's API.

Implements vtkBiDimensionalRepresentation.

virtual void vtkBiDimensionalRepresentation2D::StartWidgetManipulation ( double  e[2]  )  [virtual]

These are methods that satisfy vtkWidgetRepresentation's API.

Implements vtkBiDimensionalRepresentation.

virtual void vtkBiDimensionalRepresentation2D::WidgetInteraction ( double  e[2]  )  [virtual]

These are methods that satisfy vtkWidgetRepresentation's API.

Reimplemented from vtkWidgetRepresentation.

virtual void vtkBiDimensionalRepresentation2D::Highlight ( int  highlightOn  )  [virtual]

These are methods that satisfy vtkWidgetRepresentation's API.

virtual void vtkBiDimensionalRepresentation2D::ReleaseGraphicsResources ( vtkWindow w  )  [virtual]

Methods required by vtkProp superclass.

Reimplemented from vtkWidgetRepresentation.

virtual int vtkBiDimensionalRepresentation2D::RenderOverlay ( vtkViewport viewport  )  [virtual]

Methods required by vtkProp superclass.

Reimplemented from vtkProp.

char* vtkBiDimensionalRepresentation2D::GetLabelText (  )  [virtual]

Get the text shown in the widget's label.

Implements vtkBiDimensionalRepresentation.

double* vtkBiDimensionalRepresentation2D::GetLabelPosition (  )  [virtual]

Get the position of the widget's label in display coordinates.

Implements vtkBiDimensionalRepresentation.

void vtkBiDimensionalRepresentation2D::GetLabelPosition ( double  pos[3]  )  [virtual]

Get the position of the widget's label in display coordinates.

Implements vtkBiDimensionalRepresentation.

void vtkBiDimensionalRepresentation2D::GetWorldLabelPosition ( double  pos[3]  )  [virtual]

Get the position of the widget's label in display coordinates.

Implements vtkBiDimensionalRepresentation.

void vtkBiDimensionalRepresentation2D::ProjectOrthogonalPoint ( double  x[4],
double  y[3],
double  x1[3],
double  x2[3],
double  x21[3],
double  dir,
double  xP[3] 
) [protected]


Member Data Documentation

Reimplemented from vtkBiDimensionalRepresentation.

Definition at line 121 of file vtkBiDimensionalRepresentation2D.h.

Definition at line 124 of file vtkBiDimensionalRepresentation2D.h.

Definition at line 125 of file vtkBiDimensionalRepresentation2D.h.

Definition at line 126 of file vtkBiDimensionalRepresentation2D.h.

Definition at line 127 of file vtkBiDimensionalRepresentation2D.h.

Definition at line 128 of file vtkBiDimensionalRepresentation2D.h.

Definition at line 129 of file vtkBiDimensionalRepresentation2D.h.

Definition at line 130 of file vtkBiDimensionalRepresentation2D.h.

Definition at line 133 of file vtkBiDimensionalRepresentation2D.h.

Definition at line 134 of file vtkBiDimensionalRepresentation2D.h.

Definition at line 135 of file vtkBiDimensionalRepresentation2D.h.

Reimplemented from vtkBiDimensionalRepresentation.

Definition at line 138 of file vtkBiDimensionalRepresentation2D.h.

Reimplemented from vtkBiDimensionalRepresentation.

Definition at line 139 of file vtkBiDimensionalRepresentation2D.h.

Reimplemented from vtkBiDimensionalRepresentation.

Definition at line 140 of file vtkBiDimensionalRepresentation2D.h.

Reimplemented from vtkBiDimensionalRepresentation.

Definition at line 141 of file vtkBiDimensionalRepresentation2D.h.

Reimplemented from vtkBiDimensionalRepresentation.

Definition at line 142 of file vtkBiDimensionalRepresentation2D.h.

Reimplemented from vtkBiDimensionalRepresentation.

Definition at line 143 of file vtkBiDimensionalRepresentation2D.h.

Reimplemented from vtkBiDimensionalRepresentation.

Definition at line 144 of file vtkBiDimensionalRepresentation2D.h.

Reimplemented from vtkBiDimensionalRepresentation.

Definition at line 145 of file vtkBiDimensionalRepresentation2D.h.

Reimplemented from vtkBiDimensionalRepresentation.

Definition at line 146 of file vtkBiDimensionalRepresentation2D.h.

Reimplemented from vtkBiDimensionalRepresentation.

Definition at line 147 of file vtkBiDimensionalRepresentation2D.h.


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

Generated on Wed Aug 24 11:29:24 2011 for VTK by  doxygen 1.5.6