VTK
|
Contours constrained to a focal plane. More...
#include <vtkOrientedGlyphFocalPlaneContourRepresentation.h>
Public Member Functions | |
virtual vtkPolyData * | GetContourRepresentationAsPolyData () |
vtkMatrix4x4 * | GetContourPlaneDirectionCosines (const double origin[3]) |
void | SetCursorShape (vtkPolyData *cursorShape) |
vtkPolyData * | GetCursorShape () |
void | SetActiveCursorShape (vtkPolyData *activeShape) |
vtkPolyData * | GetActiveCursorShape () |
virtual vtkProperty2D * | GetProperty () |
virtual vtkProperty2D * | GetActiveProperty () |
virtual vtkProperty2D * | GetLinesProperty () |
virtual void | SetRenderer (vtkRenderer *ren) |
virtual void | BuildRepresentation () |
virtual void | StartWidgetInteraction (double eventPos[2]) |
virtual void | WidgetInteraction (double eventPos[2]) |
virtual int | ComputeInteractionState (int X, int Y, int modified=0) |
virtual void | GetActors2D (vtkPropCollection *) |
virtual void | ReleaseGraphicsResources (vtkWindow *) |
virtual int | RenderOverlay (vtkViewport *viewport) |
virtual int | RenderOpaqueGeometry (vtkViewport *viewport) |
virtual int | RenderTranslucentPolygonalGeometry (vtkViewport *viewport) |
virtual int | HasTranslucentPolygonalGeometry () |
![]() | |
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]) |
vtkFocalPlaneContourRepresentation * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
![]() | |
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 | 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 vtkPointPlacer * | GetPointPlacer () |
void | GetNodePolyData (vtkPolyData *poly) |
virtual void | SetRebuildLocator (bool) |
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 vtkContourRepresentationNode * | GetNthNode (int n) |
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 | AddIntermediatePointWorldPosition (int n, double point[3]) |
virtual int | AddIntermediatePointWorldPosition (int n, double point[3], vtkIdType ptId) |
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 () |
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 () |
vtkContourRepresentation * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
![]() | |
virtual void | PickingManagedOn () |
virtual void | PickingManagedOff () |
virtual void | SetPickingManaged (bool) |
virtual bool | GetPickingManaged () |
virtual vtkRenderer * | GetRenderer () |
virtual void | PlaceWidget (double *vtkNotUsed(bounds[6])) |
virtual void | EndWidgetInteraction (double newEventPos[2]) |
virtual int | GetInteractionState () |
virtual void | Highlight (int vtkNotUsed(highlightOn)) |
virtual void | SetPlaceFactor (double) |
virtual double | GetPlaceFactor () |
virtual void | SetHandleSize (double) |
virtual double | GetHandleSize () |
virtual int | GetNeedToRender () |
virtual void | SetNeedToRender (int) |
virtual void | NeedToRenderOn () |
virtual void | NeedToRenderOff () |
virtual double * | GetBounds () |
virtual void | ShallowCopy (vtkProp *prop) |
virtual void | GetActors (vtkPropCollection *) |
virtual void | GetVolumes (vtkPropCollection *) |
virtual int | RenderOverlay (vtkViewport *vtkNotUsed(viewport)) |
virtual int | RenderOpaqueGeometry (vtkViewport *vtkNotUsed(viewport)) |
virtual int | RenderTranslucentPolygonalGeometry (vtkViewport *vtkNotUsed(viewport)) |
virtual int | RenderVolumetricGeometry (vtkViewport *vtkNotUsed(viewport)) |
vtkWidgetRepresentation * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
Static Public Member Functions | |
static vtkOrientedGlyphFocalPlaneContourRepresentation * | New () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkFocalPlaneContourRepresentation * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkContourRepresentation * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkWidgetRepresentation * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
vtkOrientedGlyphFocalPlaneContourRepresentation () | |
~vtkOrientedGlyphFocalPlaneContourRepresentation () | |
void | Translate (double eventPos[2]) |
void | Scale (double eventPos[2]) |
void | ShiftContour (double eventPos[2]) |
void | ScaleContour (double eventPos[2]) |
void | ComputeCentroid (double *ioCentroid) |
void | CreateDefaultProperties () |
void | BuildLines () |
![]() | |
vtkFocalPlaneContourRepresentation () | |
~vtkFocalPlaneContourRepresentation () | |
![]() | |
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 | UpdateLine (int idx1, int idx2) |
virtual int | FindClosestPointOnContour (int X, int Y, double worldPos[3], int *idx) |
void | ComputeMidpoint (double p1[3], double p2[3], double mid[3]) |
virtual void | Initialize (vtkPolyData *, vtkIdList *) |
virtual void | Initialize (vtkPolyData *) |
virtual void | InitializeContour (vtkPolyData *, vtkIdList *) |
void | ResetLocator () |
void | BuildLocator () |
void | GetRendererComputedDisplayPositionFromWorldPosition (double worldPos[3], double worldOrient[9], int displayPos[2]) |
void | GetRendererComputedDisplayPositionFromWorldPosition (double worldPos[3], double worldOrient[9], double displayPos[2]) |
![]() | |
vtkWidgetRepresentation () | |
~vtkWidgetRepresentation () | |
void | AdjustBounds (double bounds[6], double newBounds[6], double center[3]) |
virtual void | RegisterPickers () |
virtual void | UnRegisterPickers () |
virtual void | PickersModified () |
vtkPickingManager * | GetPickingManager () |
double | SizeHandlesRelativeToViewport (double factor, double pos[3]) |
double | SizeHandlesInPixels (double factor, double pos[3]) |
vtkAssemblyPath * | GetAssemblyPath (double X, double Y, double Z, vtkAbstractPropPicker *picker) |
Additional Inherited Members | |
![]() | |
typedef vtkContourRepresentation | Superclass |
![]() | |
enum | { Outside =0, Nearby } |
enum | { Inactive = 0, Translate, Shift, Scale } |
typedef vtkWidgetRepresentation | Superclass |
![]() | |
typedef vtkProp | Superclass |
Contours constrained to a focal plane.
This class is used to represent a contour drawn on the focal plane (usually overlayed on top of an image or volume widget). 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.
Definition at line 44 of file vtkOrientedGlyphFocalPlaneContourRepresentation.h.
typedef vtkFocalPlaneContourRepresentation vtkOrientedGlyphFocalPlaneContourRepresentation::Superclass |
Standard methods for instances of this class.
Definition at line 54 of file vtkOrientedGlyphFocalPlaneContourRepresentation.h.
|
protected |
|
protected |
|
static |
Instantiate this class.
|
static |
Standard methods for instances of this class.
|
virtual |
Standard methods for instances of this class.
Reimplemented from vtkFocalPlaneContourRepresentation.
|
static |
Standard methods for instances of this class.
|
protectedvirtual |
Standard methods for instances of this class.
Reimplemented from vtkFocalPlaneContourRepresentation.
vtkOrientedGlyphFocalPlaneContourRepresentation* vtkOrientedGlyphFocalPlaneContourRepresentation::NewInstance | ( | ) | const |
Standard methods for instances of this class.
void vtkOrientedGlyphFocalPlaneContourRepresentation::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
Standard methods for instances of this class.
void vtkOrientedGlyphFocalPlaneContourRepresentation::SetCursorShape | ( | vtkPolyData * | cursorShape | ) |
Specify the cursor shape. Keep in mind that the shape will be aligned with the constraining plane by orienting it such that the x axis of the geometry lies along the normal of the plane.
vtkPolyData* vtkOrientedGlyphFocalPlaneContourRepresentation::GetCursorShape | ( | ) |
Specify the cursor shape. Keep in mind that the shape will be aligned with the constraining plane by orienting it such that the x axis of the geometry lies along the normal of the plane.
void vtkOrientedGlyphFocalPlaneContourRepresentation::SetActiveCursorShape | ( | vtkPolyData * | activeShape | ) |
Specify the shape of the cursor (handle) when it is active. This is the geometry that will be used when the mouse is close to the handle or if the user is manipulating the handle.
vtkPolyData* vtkOrientedGlyphFocalPlaneContourRepresentation::GetActiveCursorShape | ( | ) |
Specify the shape of the cursor (handle) when it is active. This is the geometry that will be used when the mouse is close to the handle or if the user is manipulating the handle.
|
virtual |
This is the property used when the handle is not active (the mouse is not near the handle)
|
virtual |
This is the property used when the user is interacting with the handle.
|
virtual |
This is the property used by the lines.
|
virtual |
Subclasses of vtkOrientedGlyphFocalPlaneContourRepresentation must implement these methods. These are the methods that the widget and its representation use to communicate with each other.
Reimplemented from vtkWidgetRepresentation.
|
virtual |
Subclasses of vtkOrientedGlyphFocalPlaneContourRepresentation must implement these methods. These are the methods that the widget and its representation use to communicate with each other.
Implements vtkContourRepresentation.
|
virtual |
Subclasses of vtkOrientedGlyphFocalPlaneContourRepresentation must implement these methods. These are the methods that the widget and its representation use to communicate with each other.
Implements vtkContourRepresentation.
|
virtual |
Subclasses of vtkOrientedGlyphFocalPlaneContourRepresentation must implement these methods. These are the methods that the widget and its representation use to communicate with each other.
Implements vtkContourRepresentation.
|
virtual |
Subclasses of vtkOrientedGlyphFocalPlaneContourRepresentation must implement these methods. These are the methods that the widget and its representation use to communicate with each other.
Implements vtkContourRepresentation.
|
virtual |
Methods to make this class behave as a vtkProp.
Reimplemented from vtkWidgetRepresentation.
|
virtual |
Methods to make this class behave as a vtkProp.
Implements vtkContourRepresentation.
|
virtual |
Methods to make this class behave as a vtkProp.
Implements vtkContourRepresentation.
|
virtual |
Methods to make this class behave as a vtkProp.
Implements vtkContourRepresentation.
|
virtual |
Methods to make this class behave as a vtkProp.
Implements vtkContourRepresentation.
|
virtual |
Methods to make this class behave as a vtkProp.
Implements vtkContourRepresentation.
|
virtual |
Get the points in this contour as a vtkPolyData.
Implements vtkContourRepresentation.
vtkMatrix4x4* vtkOrientedGlyphFocalPlaneContourRepresentation::GetContourPlaneDirectionCosines | ( | const double | origin[3] | ) |
Direction cosines of the plane on which the contour lies on in world co-ordinates. This would be the same matrix that would be set in vtkImageReslice or vtkImagePlaneWidget if there were a plane passing through the contour points. The origin must be the origin of the data under the contour.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
Implements vtkContourRepresentation.
|
protected |
Definition at line 127 of file vtkOrientedGlyphFocalPlaneContourRepresentation.h.
|
protected |
Definition at line 128 of file vtkOrientedGlyphFocalPlaneContourRepresentation.h.
|
protected |
Definition at line 129 of file vtkOrientedGlyphFocalPlaneContourRepresentation.h.
|
protected |
Definition at line 130 of file vtkOrientedGlyphFocalPlaneContourRepresentation.h.
|
protected |
Definition at line 131 of file vtkOrientedGlyphFocalPlaneContourRepresentation.h.
|
protected |
Definition at line 132 of file vtkOrientedGlyphFocalPlaneContourRepresentation.h.
|
protected |
Definition at line 133 of file vtkOrientedGlyphFocalPlaneContourRepresentation.h.
|
protected |
Definition at line 134 of file vtkOrientedGlyphFocalPlaneContourRepresentation.h.
|
protected |
Definition at line 135 of file vtkOrientedGlyphFocalPlaneContourRepresentation.h.
|
protected |
Definition at line 136 of file vtkOrientedGlyphFocalPlaneContourRepresentation.h.
|
protected |
Definition at line 137 of file vtkOrientedGlyphFocalPlaneContourRepresentation.h.
|
protected |
Definition at line 138 of file vtkOrientedGlyphFocalPlaneContourRepresentation.h.
|
protected |
Definition at line 141 of file vtkOrientedGlyphFocalPlaneContourRepresentation.h.
|
protected |
Definition at line 142 of file vtkOrientedGlyphFocalPlaneContourRepresentation.h.
|
protected |
Definition at line 143 of file vtkOrientedGlyphFocalPlaneContourRepresentation.h.
|
protected |
Definition at line 148 of file vtkOrientedGlyphFocalPlaneContourRepresentation.h.
|
protected |
Definition at line 151 of file vtkOrientedGlyphFocalPlaneContourRepresentation.h.
|
protected |
Definition at line 152 of file vtkOrientedGlyphFocalPlaneContourRepresentation.h.
|
protected |
Definition at line 164 of file vtkOrientedGlyphFocalPlaneContourRepresentation.h.
|
protected |
Definition at line 165 of file vtkOrientedGlyphFocalPlaneContourRepresentation.h.
|
protected |
Definition at line 166 of file vtkOrientedGlyphFocalPlaneContourRepresentation.h.
|
protected |
Definition at line 168 of file vtkOrientedGlyphFocalPlaneContourRepresentation.h.
|
protected |
Definition at line 175 of file vtkOrientedGlyphFocalPlaneContourRepresentation.h.