VTK
|
represent a contour drawn on the focal plane. More...
#include <vtkFocalPlaneContourRepresentation.h>
Public Member Functions | |
virtual int | GetNthNodeDisplayPosition (int n, double pos[2]) |
virtual int | GetNthNodeWorldPosition (int n, double pos[3]) |
virtual void | UpdateContourWorldPositionsBasedOnDisplayPositions () |
virtual int | UpdateContour () |
virtual void | UpdateLines (int index) |
virtual int | GetIntermediatePointWorldPosition (int n, int idx, double point[3]) |
virtual int | GetIntermediatePointDisplayPosition (int n, int idx, double point[3]) |
Protected Member Functions | |
vtkFocalPlaneContourRepresentation () | |
~vtkFocalPlaneContourRepresentation () | |
typedef vtkContourRepresentation | Superclass |
static int | IsTypeOf (const char *type) |
static vtkFocalPlaneContourRepresentation * | SafeDownCast (vtkObjectBase *o) |
virtual int | IsA (const char *type) |
vtkFocalPlaneContourRepresentation * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkObjectBase * | NewInstanceInternal () const |
represent a contour drawn on the focal plane.
The contour will stay on the focal plane irrespective of camera position/orientation changes. The class was written in order to be able to draw contours on a volume widget and have the contours overlayed on the focal plane in order to do contour segmentation. The superclass, vtkContourRepresentation handles contours that are drawn in actual world position co-ordinates, so they would rotate with the camera position/ orientation changes
Definition at line 40 of file vtkFocalPlaneContourRepresentation.h.
Standard VTK methods.
Reimplemented from vtkContourRepresentation.
Reimplemented in vtkOrientedGlyphFocalPlaneContourRepresentation.
Definition at line 45 of file vtkFocalPlaneContourRepresentation.h.
static int vtkFocalPlaneContourRepresentation::IsTypeOf | ( | const char * | type | ) | [static] |
Standard VTK methods.
Reimplemented from vtkContourRepresentation.
Reimplemented in vtkOrientedGlyphFocalPlaneContourRepresentation.
virtual int vtkFocalPlaneContourRepresentation::IsA | ( | const char * | type | ) | [virtual] |
Standard VTK methods.
Reimplemented from vtkContourRepresentation.
Reimplemented in vtkOrientedGlyphFocalPlaneContourRepresentation.
static vtkFocalPlaneContourRepresentation* vtkFocalPlaneContourRepresentation::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Standard VTK methods.
Reimplemented from vtkContourRepresentation.
Reimplemented in vtkOrientedGlyphFocalPlaneContourRepresentation.
virtual vtkObjectBase* vtkFocalPlaneContourRepresentation::NewInstanceInternal | ( | ) | const [protected, virtual] |
Standard VTK methods.
Reimplemented from vtkContourRepresentation.
Reimplemented in vtkOrientedGlyphFocalPlaneContourRepresentation.
Standard VTK methods.
Reimplemented from vtkContourRepresentation.
Reimplemented in vtkOrientedGlyphFocalPlaneContourRepresentation.
void vtkFocalPlaneContourRepresentation::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Standard VTK methods.
Reimplemented from vtkContourRepresentation.
Reimplemented in vtkOrientedGlyphFocalPlaneContourRepresentation.
virtual int vtkFocalPlaneContourRepresentation::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 from vtkContourRepresentation.
virtual int vtkFocalPlaneContourRepresentation::GetIntermediatePointDisplayPosition | ( | 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.
virtual int vtkFocalPlaneContourRepresentation::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 from vtkContourRepresentation.
virtual int vtkFocalPlaneContourRepresentation::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 from vtkContourRepresentation.
virtual void vtkFocalPlaneContourRepresentation::UpdateContourWorldPositionsBasedOnDisplayPositions | ( | ) | [virtual] |
The class maintains its true contour locations based on display co-ords This method syncs the world co-ords data structure with the display co-ords.
virtual int vtkFocalPlaneContourRepresentation::UpdateContour | ( | ) | [virtual] |
The method must be called whenever the contour needs to be updated, usually from RenderOpaqueGeometry()
Reimplemented from vtkContourRepresentation.
virtual void vtkFocalPlaneContourRepresentation::UpdateLines | ( | int | index | ) | [virtual] |
Reimplemented from vtkContourRepresentation.