VTK
|
represent the vtkContourWidget More...
#include <vtkContourRepresentation.h>
represent the vtkContourWidget
The vtkContourRepresentation is a superclass for various types of representations for the vtkContourWidget.
SetLineInterpolator
. BuildLines()
to interpolate lines using their display positions intead of world positions.Definition at line 118 of file vtkContourRepresentation.h.
Standard VTK methods.
Reimplemented from vtkWidgetRepresentation.
Reimplemented in vtkOrientedGlyphFocalPlaneContourRepresentation, vtkOrientedGlyphContourRepresentation, and vtkFocalPlaneContourRepresentation.
Definition at line 126 of file vtkContourRepresentation.h.
anonymous enum |
Definition at line 308 of file vtkContourRepresentation.h.
anonymous enum |
Definition at line 313 of file vtkContourRepresentation.h.
vtkContourRepresentation::vtkContourRepresentation | ( | ) | [protected] |
vtkContourRepresentation::~vtkContourRepresentation | ( | ) | [protected] |
virtual const char* vtkContourRepresentation::GetClassName | ( | ) | [virtual] |
Standard VTK methods.
Reimplemented from vtkWidgetRepresentation.
Reimplemented in vtkOrientedGlyphFocalPlaneContourRepresentation, vtkOrientedGlyphContourRepresentation, and vtkFocalPlaneContourRepresentation.
static int vtkContourRepresentation::IsTypeOf | ( | const char * | type | ) | [static] |
Standard VTK methods.
Reimplemented from vtkWidgetRepresentation.
Reimplemented in vtkOrientedGlyphFocalPlaneContourRepresentation, vtkOrientedGlyphContourRepresentation, and vtkFocalPlaneContourRepresentation.
virtual int vtkContourRepresentation::IsA | ( | const char * | type | ) | [virtual] |
Standard VTK methods.
Reimplemented from vtkWidgetRepresentation.
Reimplemented in vtkOrientedGlyphFocalPlaneContourRepresentation, vtkOrientedGlyphContourRepresentation, and vtkFocalPlaneContourRepresentation.
static vtkContourRepresentation* vtkContourRepresentation::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Standard VTK methods.
Reimplemented from vtkWidgetRepresentation.
Reimplemented in vtkOrientedGlyphFocalPlaneContourRepresentation, vtkOrientedGlyphContourRepresentation, and vtkFocalPlaneContourRepresentation.
void vtkContourRepresentation::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Standard VTK methods.
Reimplemented from vtkWidgetRepresentation.
Reimplemented in vtkOrientedGlyphFocalPlaneContourRepresentation, vtkOrientedGlyphContourRepresentation, and vtkFocalPlaneContourRepresentation.
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.
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.
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.
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.
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.
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.
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.
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], |
double | orient[9] | ||
) | [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.
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.
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.
Set/Get whether the active or nth node is selected.
Set/Get whether the active or nth node is selected.
Get the world position of the active node. Will return 0 if there is no active node, or 1 otherwise.
Get the world orientation of the active node. Will return 0 if there is no active node, or 1 otherwise.
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.
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.
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 vtkContourRepresentationNode* vtkContourRepresentation::GetNthNode | ( | int | n | ) | [virtual] |
Get the nth node.
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).
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.
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.
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.
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.
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::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::AddIntermediatePointWorldPosition | ( | int | n, |
double | point[3], | ||
vtkIdType | ptId | ||
) | [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. The added point is assigned a ptId as supplied.
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.
Delete the nth node. Return 1 on success or 0 if n is out of range.
virtual void vtkContourRepresentation::ClearAllNodes | ( | ) | [virtual] |
Delete all nodes.
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 328 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 330 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 332 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 334 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 vtkOrientedGlyphFocalPlaneContourRepresentation, and vtkOrientedGlyphContourRepresentation.
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 vtkOrientedGlyphFocalPlaneContourRepresentation, and vtkOrientedGlyphContourRepresentation.
virtual void vtkContourRepresentation::StartWidgetInteraction | ( | double | e[2] | ) | [pure virtual] |
These are methods that satisfy vtkWidgetRepresentation's API.
Reimplemented from vtkWidgetRepresentation.
Implemented in vtkOrientedGlyphFocalPlaneContourRepresentation, and vtkOrientedGlyphContourRepresentation.
virtual void vtkContourRepresentation::WidgetInteraction | ( | double | e[2] | ) | [pure virtual] |
These are methods that satisfy vtkWidgetRepresentation's API.
Reimplemented from vtkWidgetRepresentation.
Implemented in vtkOrientedGlyphFocalPlaneContourRepresentation, and vtkOrientedGlyphContourRepresentation.
virtual void vtkContourRepresentation::ReleaseGraphicsResources | ( | vtkWindow * | w | ) | [pure virtual] |
Methods required by vtkProp superclass.
Reimplemented from vtkWidgetRepresentation.
Implemented in vtkOrientedGlyphFocalPlaneContourRepresentation, and vtkOrientedGlyphContourRepresentation.
virtual int vtkContourRepresentation::RenderOverlay | ( | vtkViewport * | viewport | ) | [pure virtual] |
Methods required by vtkProp superclass.
Reimplemented from vtkProp.
Implemented in vtkOrientedGlyphFocalPlaneContourRepresentation, and vtkOrientedGlyphContourRepresentation.
virtual int vtkContourRepresentation::RenderOpaqueGeometry | ( | vtkViewport * | viewport | ) | [pure virtual] |
Methods required by vtkProp superclass.
Reimplemented from vtkProp.
Implemented in vtkOrientedGlyphFocalPlaneContourRepresentation, and vtkOrientedGlyphContourRepresentation.
virtual int vtkContourRepresentation::RenderTranslucentPolygonalGeometry | ( | vtkViewport * | viewport | ) | [pure virtual] |
Methods required by vtkProp superclass.
Reimplemented from vtkProp.
Implemented in vtkOrientedGlyphFocalPlaneContourRepresentation, and vtkOrientedGlyphContourRepresentation.
virtual int vtkContourRepresentation::HasTranslucentPolygonalGeometry | ( | ) | [pure virtual] |
Methods required by vtkProp superclass.
Reimplemented from vtkWidgetRepresentation.
Implemented in vtkOrientedGlyphFocalPlaneContourRepresentation, and vtkOrientedGlyphContourRepresentation.
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.
Implemented in vtkOrientedGlyphFocalPlaneContourRepresentation, and vtkOrientedGlyphContourRepresentation.
void vtkContourRepresentation::GetNodePolyData | ( | vtkPolyData * | poly | ) |
Get the nodes and not the intermediate points in this contour as a vtkPolyData.
virtual void vtkContourRepresentation::SetRebuildLocator | ( | bool | ) | [virtual] |
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.
virtual void vtkContourRepresentation::UpdateLines | ( | int | index | ) | [protected, virtual] |
Reimplemented in vtkFocalPlaneContourRepresentation.
virtual int vtkContourRepresentation::FindClosestPointOnContour | ( | int | X, |
int | Y, | ||
double | worldPos[3], | ||
int * | idx | ||
) | [protected, virtual] |
virtual void vtkContourRepresentation::BuildLines | ( | ) | [protected, pure virtual] |
Implemented in vtkOrientedGlyphContourRepresentation, and vtkOrientedGlyphFocalPlaneContourRepresentation.
virtual int vtkContourRepresentation::UpdateContour | ( | ) | [protected, virtual] |
Reimplemented in vtkFocalPlaneContourRepresentation.
void vtkContourRepresentation::ComputeMidpoint | ( | double | p1[3], |
double | p2[3], | ||
double | mid[3] | ||
) | [inline, protected] |
Definition at line 453 of file vtkContourRepresentation.h.
void vtkContourRepresentation::Initialize | ( | vtkPolyData * | , |
vtkIdList * | |||
) | [protected] |
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. The idlist here may be used to initialize a contour widget that uses a vtkPolygonalSurfacePointPlacer. This stores the point id's of the nodes, since the contour is drawn on the vertices of a surface mesh.
virtual void vtkContourRepresentation::Initialize | ( | vtkPolyData * | ) | [protected, virtual] |
Overloaded initialize method, that calls the above with a NULL idList argument.
void vtkContourRepresentation::ResetLocator | ( | ) | [protected] |
Deletes the previous locator if it exists and creates a new locator. Also deletes / recreates the attached data set.
void vtkContourRepresentation::BuildLocator | ( | ) | [protected] |
friend class vtkContourWidget [friend] |
Definition at line 121 of file vtkContourRepresentation.h.
int vtkContourRepresentation::PixelTolerance [protected] |
Definition at line 404 of file vtkContourRepresentation.h.
double vtkContourRepresentation::WorldTolerance [protected] |
Definition at line 405 of file vtkContourRepresentation.h.
vtkPointPlacer* vtkContourRepresentation::PointPlacer [protected] |
Definition at line 407 of file vtkContourRepresentation.h.
Definition at line 408 of file vtkContourRepresentation.h.
int vtkContourRepresentation::ActiveNode [protected] |
Definition at line 410 of file vtkContourRepresentation.h.
int vtkContourRepresentation::CurrentOperation [protected] |
Definition at line 412 of file vtkContourRepresentation.h.
int vtkContourRepresentation::ClosedLoop [protected] |
Definition at line 413 of file vtkContourRepresentation.h.
int vtkContourRepresentation::ShowSelectedNodes [protected] |
Definition at line 416 of file vtkContourRepresentation.h.
Definition at line 418 of file vtkContourRepresentation.h.
Definition at line 451 of file vtkContourRepresentation.h.
Adding a point locator to the representation to speed up lookup of the active node when dealing with large datasets (100k+)
Definition at line 477 of file vtkContourRepresentation.h.
bool vtkContourRepresentation::RebuildLocator [protected] |
Definition at line 485 of file vtkContourRepresentation.h.