vtkContourRepresentation Class Reference

#include <vtkContourRepresentation.h>

Inheritance diagram for vtkContourRepresentation:

Inheritance graph
[legend]
Collaboration diagram for vtkContourRepresentation:

Collaboration graph
[legend]

List of all members.


Detailed Description

represent the vtkContourWidget

The vtkContourRepresentation is a superclass for various types of representations for the vtkContourWidget.

Managing contour points:
The classes vtkContourRepresentationNode, vtkContourRepresentationInternals, vtkContourRepresentationPoint manage the data structure used to represent nodes and points on a contour. A contour may contain several nodes and several more points. Nodes are usually the result of user clicked points on the contour. Additional points are created between nodes to generate a smooth curve using some Interpolator. See the method SetLineInterpolator.
The data structure stores both the world and display positions for every point. (This may seem like a duplication.) The default behaviour of this class is to use the WorldPosition to do all the math. Typically a point is added at a given display position. Its corresponding world position is computed using the point placer and stored. Any query of the display position of a stored point is done via the Renderer, which computes the display position given a world position.
Managing contour points:
So why maintain the display position ? Consider drawing a contour on a volume widget. You might want the contour to be located at a certain world position in the volume or you might want to be overlayed over the window like an Actor2D. The default behaviour of this class is to provide the former behaviour.
Managing contour points:
To achieve the latter behaviour override the methods that return the display position (to return the set display position instead of computing it from the world positions) and the method BuildLines() to interpolate lines using their display positions intead of world positions.
See also:
vtkContourWidget

Definition at line 105 of file vtkContourRepresentation.h.

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

Public Types

enum  { Outside = 0, Nearby }
enum  { Inactive = 0, Translate, Shift, Scale }

Public Member Functions

virtual int SetActiveNodeToWorldPosition (double pos[3])
virtual int SetActiveNodeToWorldPosition (double pos[3], double orient[9])
virtual int GetActiveNodeWorldPosition (double pos[3])
virtual int GetActiveNodeWorldOrientation (double orient[9])
virtual int GetActiveNodeDisplayPosition (double pos[2])
virtual int GetNumberOfNodes ()
virtual int GetNthNodeDisplayPosition (int n, double pos[2])
virtual int GetNthNodeWorldPosition (int n, double pos[3])
virtual int GetNthNodeWorldOrientation (int n, double orient[9])
virtual int GetNthNodeSlope (int idx, double slope[3])
virtual int GetNumberOfIntermediatePoints (int n)
virtual int DeleteLastNode ()
virtual int DeleteActiveNode ()
virtual int DeleteNthNode (int n)
virtual void ClearAllNodes ()
virtual int AddNodeOnContour (int X, int Y)
void SetPointPlacer (vtkPointPlacer *)
virtual vtkPointPlacerGetPointPlacer ()
void GetNodePolyData (vtkPolyData *poly)
virtual int AddNodeAtWorldPosition (double x, double y, double z)
virtual int AddNodeAtWorldPosition (double worldPos[3])
virtual int AddNodeAtWorldPosition (double worldPos[3], double worldOrient[9])
virtual int AddNodeAtDisplayPosition (double displayPos[2])
virtual int AddNodeAtDisplayPosition (int displayPos[2])
virtual int AddNodeAtDisplayPosition (int X, int Y)
virtual int ActivateNode (double displayPos[2])
virtual int ActivateNode (int displayPos[2])
virtual int ActivateNode (int X, int Y)
virtual int SetActiveNodeToDisplayPosition (double pos[2])
virtual int SetActiveNodeToDisplayPosition (int pos[2])
virtual int SetActiveNodeToDisplayPosition (int X, int Y)
virtual int ToggleActiveNodeSelected ()
virtual int GetActiveNodeSelected ()
virtual int GetNthNodeSelected (int)
virtual int SetNthNodeSelected (int)
virtual int SetNthNodeDisplayPosition (int n, int X, int Y)
virtual int SetNthNodeDisplayPosition (int n, int pos[2])
virtual int SetNthNodeDisplayPosition (int n, double pos[2])
virtual int SetNthNodeWorldPosition (int n, double pos[3])
virtual int SetNthNodeWorldPosition (int n, double pos[3], double orient[9])
virtual int GetIntermediatePointWorldPosition (int n, int idx, double point[3])
virtual int AddIntermediatePointWorldPosition (int n, double point[3])
virtual void SetPixelTolerance (int)
virtual int GetPixelTolerance ()
virtual void SetWorldTolerance (double)
virtual double GetWorldTolerance ()
virtual int GetCurrentOperation ()
virtual void SetCurrentOperation (int)
void SetCurrentOperationToInactive ()
void SetCurrentOperationToTranslate ()
void SetCurrentOperationToShift ()
void SetCurrentOperationToScale ()
void SetLineInterpolator (vtkContourLineInterpolator *)
virtual
vtkContourLineInterpolator
GetLineInterpolator ()
virtual void BuildRepresentation ()=0
virtual int ComputeInteractionState (int X, int Y, int modified=0)=0
virtual void StartWidgetInteraction (double e[2])=0
virtual void WidgetInteraction (double e[2])=0
virtual void ReleaseGraphicsResources (vtkWindow *w)=0
virtual int RenderOverlay (vtkViewport *viewport)=0
virtual int RenderOpaqueGeometry (vtkViewport *viewport)=0
virtual int RenderTranslucentPolygonalGeometry (vtkViewport *viewport)=0
virtual int HasTranslucentPolygonalGeometry ()=0
void SetClosedLoop (int val)
virtual int GetClosedLoop ()
virtual void ClosedLoopOn ()
virtual void ClosedLoopOff ()
virtual void SetShowSelectedNodes (int)
virtual int GetShowSelectedNodes ()
virtual void ShowSelectedNodesOn ()
virtual void ShowSelectedNodesOff ()
virtual vtkPolyDataGetContourRepresentationAsPolyData ()=0

Protected Member Functions

 vtkContourRepresentation ()
 ~vtkContourRepresentation ()
void AddNodeAtPositionInternal (double worldPos[3], double worldOrient[9], int displayPos[2])
void AddNodeAtPositionInternal (double worldPos[3], double worldOrient[9], double displayPos[2])
void SetNthNodeWorldPositionInternal (int n, double worldPos[3], double worldOrient[9])
void UpdateLines (int index)
void UpdateLine (int idx1, int idx2)
virtual int FindClosestPointOnContour (int X, int Y, double worldPos[3], int *idx)
virtual void BuildLines ()=0
virtual int UpdateContour ()
void ComputeMidpoint (double p1[3], double p2[3], double mid[3])
virtual void Initialize (vtkPolyData *)
void GetRendererComputedDisplayPositionFromWorldPosition (double worldPos[3], double worldOrient[9], int displayPos[2])
void GetRendererComputedDisplayPositionFromWorldPosition (double worldPos[3], double worldOrient[9], double displayPos[2])

Protected Attributes

int PixelTolerance
double WorldTolerance
vtkPointPlacerPointPlacer
vtkContourLineInterpolatorLineInterpolator
int ActiveNode
int CurrentOperation
int ClosedLoop
int ShowSelectedNodes
vtkContourRepresentationInternalsInternal
vtkTimeStamp ContourBuildTime

Friends

class vtkContourWidget

Member Typedef Documentation


Member Enumeration Documentation

anonymous enum

Enumerator:
Outside 
Nearby 

Definition at line 280 of file vtkContourRepresentation.h.

anonymous enum

Enumerator:
Inactive 
Translate 
Shift 
Scale 

Definition at line 285 of file vtkContourRepresentation.h.


Constructor & Destructor Documentation

vtkContourRepresentation::vtkContourRepresentation (  )  [protected]

vtkContourRepresentation::~vtkContourRepresentation (  )  [protected]


Member Function Documentation

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

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

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

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

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

virtual int vtkContourRepresentation::AddNodeAtWorldPosition ( double  x,
double  y,
double  z 
) [virtual]

Add a node at a specific world position. Returns 0 if the node could not be added, 1 otherwise.

virtual int vtkContourRepresentation::AddNodeAtWorldPosition ( double  worldPos[3]  )  [virtual]

Add a node at a specific world position. Returns 0 if the node could not be added, 1 otherwise.

virtual int vtkContourRepresentation::AddNodeAtWorldPosition ( double  worldPos[3],
double  worldOrient[9] 
) [virtual]

Add a node at a specific world position. Returns 0 if the node could not be added, 1 otherwise.

virtual int vtkContourRepresentation::AddNodeAtDisplayPosition ( double  displayPos[2]  )  [virtual]

Add a node at a specific display position. This will be converted into a world position according to the current constraints of the point placer. Return 0 if a point could not be added, 1 otherwise.

virtual int vtkContourRepresentation::AddNodeAtDisplayPosition ( int  displayPos[2]  )  [virtual]

Add a node at a specific display position. This will be converted into a world position according to the current constraints of the point placer. Return 0 if a point could not be added, 1 otherwise.

virtual int vtkContourRepresentation::AddNodeAtDisplayPosition ( int  X,
int  Y 
) [virtual]

Add a node at a specific display position. This will be converted into a world position according to the current constraints of the point placer. Return 0 if a point could not be added, 1 otherwise.

virtual int vtkContourRepresentation::ActivateNode ( double  displayPos[2]  )  [virtual]

Given a display position, activate a node. The closest node within tolerance will be activated. If a node is activated, 1 will be returned, otherwise 0 will be returned.

virtual int vtkContourRepresentation::ActivateNode ( int  displayPos[2]  )  [virtual]

Given a display position, activate a node. The closest node within tolerance will be activated. If a node is activated, 1 will be returned, otherwise 0 will be returned.

virtual int vtkContourRepresentation::ActivateNode ( int  X,
int  Y 
) [virtual]

Given a display position, activate a node. The closest node within tolerance will be activated. If a node is activated, 1 will be returned, otherwise 0 will be returned.

virtual int vtkContourRepresentation::SetActiveNodeToWorldPosition ( double  pos[3]  )  [virtual]

virtual int vtkContourRepresentation::SetActiveNodeToWorldPosition ( double  pos[3],
double  orient[9] 
) [virtual]

virtual int vtkContourRepresentation::SetActiveNodeToDisplayPosition ( double  pos[2]  )  [virtual]

Move the active node based on a specified display position. The display position will be converted into a world position. If the new position is not valid or there is no active node, a 0 will be returned. Otherwise, on success a 1 will be returned.

virtual int vtkContourRepresentation::SetActiveNodeToDisplayPosition ( int  pos[2]  )  [virtual]

Move the active node based on a specified display position. The display position will be converted into a world position. If the new position is not valid or there is no active node, a 0 will be returned. Otherwise, on success a 1 will be returned.

virtual int vtkContourRepresentation::SetActiveNodeToDisplayPosition ( int  X,
int  Y 
) [virtual]

Move the active node based on a specified display position. The display position will be converted into a world position. If the new position is not valid or there is no active node, a 0 will be returned. Otherwise, on success a 1 will be returned.

virtual int vtkContourRepresentation::ToggleActiveNodeSelected (  )  [virtual]

Set/Get whether the active or nth node is selected.

virtual int vtkContourRepresentation::GetActiveNodeSelected (  )  [virtual]

Set/Get whether the active or nth node is selected.

virtual int vtkContourRepresentation::GetNthNodeSelected ( int   )  [virtual]

Set/Get whether the active or nth node is selected.

virtual int vtkContourRepresentation::SetNthNodeSelected ( int   )  [virtual]

Set/Get whether the active or nth node is selected.

virtual int vtkContourRepresentation::GetActiveNodeWorldPosition ( double  pos[3]  )  [virtual]

Get the world position of the active node. Will return 0 if there is no active node, or 1 otherwise.

virtual int vtkContourRepresentation::GetActiveNodeWorldOrientation ( double  orient[9]  )  [virtual]

Get the world orientation of the active node. Will return 0 if there is no active node, or 1 otherwise.

virtual int vtkContourRepresentation::GetActiveNodeDisplayPosition ( double  pos[2]  )  [virtual]

Get the display position of the active node. Will return 0 if there is no active node, or 1 otherwise.

virtual int vtkContourRepresentation::GetNumberOfNodes (  )  [virtual]

Get the number of nodes.

virtual int vtkContourRepresentation::GetNthNodeDisplayPosition ( int  n,
double  pos[2] 
) [virtual]

Get the nth node's display position. Will return 1 on success, or 0 if there are not at least (n+1) nodes (0 based counting).

Reimplemented in vtkFocalPlaneContourRepresentation.

virtual int vtkContourRepresentation::GetNthNodeWorldPosition ( int  n,
double  pos[3] 
) [virtual]

Get the nth node's world position. Will return 1 on success, or 0 if there are not at least (n+1) nodes (0 based counting).

Reimplemented in vtkFocalPlaneContourRepresentation.

virtual int vtkContourRepresentation::GetNthNodeWorldOrientation ( int  n,
double  orient[9] 
) [virtual]

Get the nth node's world orientation. Will return 1 on success, or 0 if there are not at least (n+1) nodes (0 based counting).

virtual int vtkContourRepresentation::SetNthNodeDisplayPosition ( int  n,
int  X,
int  Y 
) [virtual]

Set the nth node's display position. Display position will be converted into world position according to the constraints of the point placer. Will return 1 on success, or 0 if there are not at least (n+1) nodes (0 based counting) or the world position is not valid.

virtual int vtkContourRepresentation::SetNthNodeDisplayPosition ( int  n,
int  pos[2] 
) [virtual]

Set the nth node's display position. Display position will be converted into world position according to the constraints of the point placer. Will return 1 on success, or 0 if there are not at least (n+1) nodes (0 based counting) or the world position is not valid.

virtual int vtkContourRepresentation::SetNthNodeDisplayPosition ( int  n,
double  pos[2] 
) [virtual]

Set the nth node's display position. Display position will be converted into world position according to the constraints of the point placer. Will return 1 on success, or 0 if there are not at least (n+1) nodes (0 based counting) or the world position is not valid.

virtual int vtkContourRepresentation::SetNthNodeWorldPosition ( int  n,
double  pos[3] 
) [virtual]

Set the nth node's world position. Will return 1 on success, or 0 if there are not at least (n+1) nodes (0 based counting) or the world position is not valid according to the point placer.

virtual int vtkContourRepresentation::SetNthNodeWorldPosition ( int  n,
double  pos[3],
double  orient[9] 
) [virtual]

Set the nth node's world position. Will return 1 on success, or 0 if there are not at least (n+1) nodes (0 based counting) or the world position is not valid according to the point placer.

virtual int vtkContourRepresentation::GetNthNodeSlope ( int  idx,
double  slope[3] 
) [virtual]

Get the nth node's slope. Will return 1 on success, or 0 if there are not at least (n+1) nodes (0 based counting).

virtual int vtkContourRepresentation::GetNumberOfIntermediatePoints ( int  n  )  [virtual]

virtual int vtkContourRepresentation::GetIntermediatePointWorldPosition ( int  n,
int  idx,
double  point[3] 
) [virtual]

Get the world position of the intermediate point at index idx between nodes n and (n+1) (or n and 0 if n is the last node and the loop is closed). Returns 1 on success or 0 if n or idx are out of range.

Reimplemented in vtkFocalPlaneContourRepresentation.

virtual int vtkContourRepresentation::AddIntermediatePointWorldPosition ( int  n,
double  point[3] 
) [virtual]

Add an intermediate point between node n and n+1 (or n and 0 if n is the last node and the loop is closed). Returns 1 on success or 0 if n is out of range.

virtual int vtkContourRepresentation::DeleteLastNode (  )  [virtual]

Delete the last node. Returns 1 on success or 0 if there were not any nodes.

virtual int vtkContourRepresentation::DeleteActiveNode (  )  [virtual]

Delete the active node. Returns 1 on success or 0 if the active node did not indicate a valid node.

virtual int vtkContourRepresentation::DeleteNthNode ( int  n  )  [virtual]

Delete the nth node. Return 1 on success or 0 if n is out of range.

virtual void vtkContourRepresentation::ClearAllNodes (  )  [virtual]

Delete all nodes.

virtual int vtkContourRepresentation::AddNodeOnContour ( int  X,
int  Y 
) [virtual]

Given a specific X, Y pixel location, add a new node on the contour at this location.

virtual void vtkContourRepresentation::SetPixelTolerance ( int   )  [virtual]

The tolerance to use when calculations are performed in display coordinates

virtual int vtkContourRepresentation::GetPixelTolerance (  )  [virtual]

The tolerance to use when calculations are performed in display coordinates

virtual void vtkContourRepresentation::SetWorldTolerance ( double   )  [virtual]

The tolerance to use when calculations are performed in world coordinates

virtual double vtkContourRepresentation::GetWorldTolerance (  )  [virtual]

The tolerance to use when calculations are performed in world coordinates

virtual int vtkContourRepresentation::GetCurrentOperation (  )  [virtual]

Set / get the current operation. The widget is either inactive, or it is being translated.

virtual void vtkContourRepresentation::SetCurrentOperation ( int   )  [virtual]

Set / get the current operation. The widget is either inactive, or it is being translated.

void vtkContourRepresentation::SetCurrentOperationToInactive (  )  [inline]

Set / get the current operation. The widget is either inactive, or it is being translated.

Definition at line 300 of file vtkContourRepresentation.h.

void vtkContourRepresentation::SetCurrentOperationToTranslate (  )  [inline]

Set / get the current operation. The widget is either inactive, or it is being translated.

Definition at line 302 of file vtkContourRepresentation.h.

void vtkContourRepresentation::SetCurrentOperationToShift (  )  [inline]

Set / get the current operation. The widget is either inactive, or it is being translated.

Definition at line 304 of file vtkContourRepresentation.h.

void vtkContourRepresentation::SetCurrentOperationToScale (  )  [inline]

Set / get the current operation. The widget is either inactive, or it is being translated.

Definition at line 306 of file vtkContourRepresentation.h.

void vtkContourRepresentation::SetPointPlacer ( vtkPointPlacer  ) 

virtual vtkPointPlacer* vtkContourRepresentation::GetPointPlacer (  )  [virtual]

void vtkContourRepresentation::SetLineInterpolator ( vtkContourLineInterpolator  ) 

Set / Get the Line Interpolator. The line interpolator is responsible for generating the line segments connecting nodes.

virtual vtkContourLineInterpolator* vtkContourRepresentation::GetLineInterpolator (  )  [virtual]

Set / Get the Line Interpolator. The line interpolator is responsible for generating the line segments connecting nodes.

virtual void vtkContourRepresentation::BuildRepresentation (  )  [pure virtual]

These are methods that satisfy vtkWidgetRepresentation's API.

Implements vtkWidgetRepresentation.

Implemented in vtkOrientedGlyphContourRepresentation, and vtkOrientedGlyphFocalPlaneContourRepresentation.

virtual int vtkContourRepresentation::ComputeInteractionState ( int  X,
int  Y,
int  modified = 0 
) [pure virtual]

These are methods that satisfy vtkWidgetRepresentation's API.

Reimplemented from vtkWidgetRepresentation.

Implemented in vtkOrientedGlyphContourRepresentation, and vtkOrientedGlyphFocalPlaneContourRepresentation.

virtual void vtkContourRepresentation::StartWidgetInteraction ( double  e[2]  )  [pure virtual]

These are methods that satisfy vtkWidgetRepresentation's API.

Reimplemented from vtkWidgetRepresentation.

Implemented in vtkOrientedGlyphContourRepresentation, and vtkOrientedGlyphFocalPlaneContourRepresentation.

virtual void vtkContourRepresentation::WidgetInteraction ( double  e[2]  )  [pure virtual]

These are methods that satisfy vtkWidgetRepresentation's API.

Reimplemented from vtkWidgetRepresentation.

Implemented in vtkOrientedGlyphContourRepresentation, and vtkOrientedGlyphFocalPlaneContourRepresentation.

virtual void vtkContourRepresentation::ReleaseGraphicsResources ( vtkWindow w  )  [pure virtual]

Methods required by vtkProp superclass.

Reimplemented from vtkWidgetRepresentation.

Implemented in vtkOrientedGlyphContourRepresentation, and vtkOrientedGlyphFocalPlaneContourRepresentation.

virtual int vtkContourRepresentation::RenderOverlay ( vtkViewport viewport  )  [pure virtual]

Methods required by vtkProp superclass.

Reimplemented from vtkProp.

Implemented in vtkOrientedGlyphContourRepresentation, and vtkOrientedGlyphFocalPlaneContourRepresentation.

virtual int vtkContourRepresentation::RenderOpaqueGeometry ( vtkViewport viewport  )  [pure virtual]

Methods required by vtkProp superclass.

Reimplemented from vtkProp.

Implemented in vtkOrientedGlyphContourRepresentation, and vtkOrientedGlyphFocalPlaneContourRepresentation.

virtual int vtkContourRepresentation::RenderTranslucentPolygonalGeometry ( vtkViewport viewport  )  [pure virtual]

Methods required by vtkProp superclass.

Reimplemented from vtkProp.

Implemented in vtkOrientedGlyphContourRepresentation, and vtkOrientedGlyphFocalPlaneContourRepresentation.

virtual int vtkContourRepresentation::HasTranslucentPolygonalGeometry (  )  [pure virtual]

Methods required by vtkProp superclass.

Reimplemented from vtkWidgetRepresentation.

Implemented in vtkOrientedGlyphContourRepresentation, and vtkOrientedGlyphFocalPlaneContourRepresentation.

void vtkContourRepresentation::SetClosedLoop ( int  val  ) 

Set / Get the ClosedLoop value. This ivar indicates whether the contour forms a closed loop.

virtual int vtkContourRepresentation::GetClosedLoop (  )  [virtual]

Set / Get the ClosedLoop value. This ivar indicates whether the contour forms a closed loop.

virtual void vtkContourRepresentation::ClosedLoopOn (  )  [virtual]

Set / Get the ClosedLoop value. This ivar indicates whether the contour forms a closed loop.

virtual void vtkContourRepresentation::ClosedLoopOff (  )  [virtual]

Set / Get the ClosedLoop value. This ivar indicates whether the contour forms a closed loop.

virtual void vtkContourRepresentation::SetShowSelectedNodes ( int   )  [virtual]

A flag to indicate whether to show the Selected nodes Default is to set it to false.

Reimplemented in vtkOrientedGlyphContourRepresentation.

virtual int vtkContourRepresentation::GetShowSelectedNodes (  )  [virtual]

A flag to indicate whether to show the Selected nodes Default is to set it to false.

virtual void vtkContourRepresentation::ShowSelectedNodesOn (  )  [virtual]

A flag to indicate whether to show the Selected nodes Default is to set it to false.

virtual void vtkContourRepresentation::ShowSelectedNodesOff (  )  [virtual]

A flag to indicate whether to show the Selected nodes Default is to set it to false.

virtual vtkPolyData* vtkContourRepresentation::GetContourRepresentationAsPolyData (  )  [pure virtual]

Get the points in this contour as a vtkPolyData. BTX

Implemented in vtkOrientedGlyphContourRepresentation, and vtkOrientedGlyphFocalPlaneContourRepresentation.

void vtkContourRepresentation::GetNodePolyData ( vtkPolyData poly  ) 

Get the nodes and not the intermediate points in this contour as a vtkPolyData.

void vtkContourRepresentation::AddNodeAtPositionInternal ( double  worldPos[3],
double  worldOrient[9],
int  displayPos[2] 
) [protected]

void vtkContourRepresentation::AddNodeAtPositionInternal ( double  worldPos[3],
double  worldOrient[9],
double  displayPos[2] 
) [protected]

void vtkContourRepresentation::SetNthNodeWorldPositionInternal ( int  n,
double  worldPos[3],
double  worldOrient[9] 
) [protected]

void vtkContourRepresentation::GetRendererComputedDisplayPositionFromWorldPosition ( double  worldPos[3],
double  worldOrient[9],
int  displayPos[2] 
) [protected]

Given a world position and orientation, this computes the display position using the renderer of this class.

void vtkContourRepresentation::GetRendererComputedDisplayPositionFromWorldPosition ( double  worldPos[3],
double  worldOrient[9],
double  displayPos[2] 
) [protected]

Given a world position and orientation, this computes the display position using the renderer of this class.

void vtkContourRepresentation::UpdateLines ( int  index  )  [protected]

void vtkContourRepresentation::UpdateLine ( int  idx1,
int  idx2 
) [protected]

virtual int vtkContourRepresentation::FindClosestPointOnContour ( int  X,
int  Y,
double  worldPos[3],
int *  idx 
) [protected, virtual]

virtual void vtkContourRepresentation::BuildLines (  )  [protected, pure virtual]

virtual int vtkContourRepresentation::UpdateContour (  )  [protected, virtual]

void vtkContourRepresentation::ComputeMidpoint ( double  p1[3],
double  p2[3],
double  mid[3] 
) [inline, protected]

Definition at line 423 of file vtkContourRepresentation.h.

virtual void vtkContourRepresentation::Initialize ( vtkPolyData  )  [protected, virtual]

Build a contour representation from externally supplied PolyData. This is very useful when you use an external program to compute a set of contour nodes, let's say based on image features. Subsequently, you want to build and display a contour that runs through those points. This method is protected and accessible only from vtkContourWidget::Initialize( vtkPolyData * )


Friends And Related Function Documentation

friend class vtkContourWidget [friend]

Definition at line 108 of file vtkContourRepresentation.h.


Member Data Documentation

Definition at line 374 of file vtkContourRepresentation.h.

Definition at line 375 of file vtkContourRepresentation.h.

Definition at line 377 of file vtkContourRepresentation.h.

Definition at line 378 of file vtkContourRepresentation.h.

Definition at line 380 of file vtkContourRepresentation.h.

Definition at line 382 of file vtkContourRepresentation.h.

Definition at line 383 of file vtkContourRepresentation.h.

Definition at line 386 of file vtkContourRepresentation.h.

Definition at line 388 of file vtkContourRepresentation.h.

Definition at line 421 of file vtkContourRepresentation.h.


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

Generated on Mon Sep 27 18:20:50 2010 for VTK by  doxygen 1.5.6