VTK
|
Default representation for the contour widget. More...
#include <vtkOrientedGlyphContourRepresentation.h>
Public Member Functions | |
virtual vtkPolyData * | GetContourRepresentationAsPolyData () |
void | SetLineColor (double r, double g, double b) |
virtual void | SetShowSelectedNodes (int) |
virtual double * | GetBounds () |
void | SetCursorShape (vtkPolyData *cursorShape) |
vtkPolyData * | GetCursorShape () |
void | SetActiveCursorShape (vtkPolyData *activeShape) |
vtkPolyData * | GetActiveCursorShape () |
virtual vtkProperty * | GetProperty () |
virtual vtkProperty * | GetActiveProperty () |
virtual vtkProperty * | 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 | GetActors (vtkPropCollection *) |
virtual void | ReleaseGraphicsResources (vtkWindow *) |
virtual int | RenderOverlay (vtkViewport *viewport) |
virtual int | RenderOpaqueGeometry (vtkViewport *viewport) |
virtual int | RenderTranslucentPolygonalGeometry (vtkViewport *viewport) |
virtual int | HasTranslucentPolygonalGeometry () |
virtual void | SetAlwaysOnTop (int) |
virtual int | GetAlwaysOnTop () |
virtual void | AlwaysOnTopOn () |
virtual void | AlwaysOnTopOff () |
![]() | |
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 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 | GetIntermediatePointWorldPosition (int n, int idx, double point[3]) |
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 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 void | ShallowCopy (vtkProp *prop) |
virtual void | GetActors2D (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 vtkOrientedGlyphContourRepresentation * | New () |
![]() | |
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 | |
vtkOrientedGlyphContourRepresentation () | |
~vtkOrientedGlyphContourRepresentation () | |
void | CreateSelectedNodesRepresentation () |
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 () |
virtual void | BuildLines () |
![]() | |
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]) |
virtual void | UpdateLines (int index) |
void | UpdateLine (int idx1, int idx2) |
virtual int | FindClosestPointOnContour (int X, int Y, double worldPos[3], int *idx) |
virtual int | UpdateContour () |
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 | |
![]() | |
enum | { Outside =0, Nearby } |
enum | { Inactive = 0, Translate, Shift, Scale } |
typedef vtkWidgetRepresentation | Superclass |
![]() | |
typedef vtkProp | Superclass |
Default representation for the contour widget.
This class provides the default concrete representation for the vtkContourWidget. It works in conjunction with the vtkContourLineInterpolator and vtkPointPlacer. See vtkContourWidget for details.
Definition at line 43 of file vtkOrientedGlyphContourRepresentation.h.
Standard methods for instances of this class.
Definition at line 51 of file vtkOrientedGlyphContourRepresentation.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 vtkContourRepresentation.
|
static |
Standard methods for instances of this class.
|
protectedvirtual |
Standard methods for instances of this class.
Reimplemented from vtkContourRepresentation.
vtkOrientedGlyphContourRepresentation* vtkOrientedGlyphContourRepresentation::NewInstance | ( | ) | const |
Standard methods for instances of this class.
void vtkOrientedGlyphContourRepresentation::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
Standard methods for instances of this class.
void vtkOrientedGlyphContourRepresentation::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* vtkOrientedGlyphContourRepresentation::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 vtkOrientedGlyphContourRepresentation::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* vtkOrientedGlyphContourRepresentation::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 vtkOrientedGlyphContourRepresentation 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 vtkOrientedGlyphContourRepresentation 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 vtkOrientedGlyphContourRepresentation 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 vtkOrientedGlyphContourRepresentation 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 vtkOrientedGlyphContourRepresentation 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.
|
virtual |
Controls whether the contour widget should always appear on top of other actors in the scene. (In effect, this will disable OpenGL Depth buffer tests while rendering the contour). Default is to set it to false.
|
virtual |
Controls whether the contour widget should always appear on top of other actors in the scene. (In effect, this will disable OpenGL Depth buffer tests while rendering the contour). Default is to set it to false.
|
virtual |
Controls whether the contour widget should always appear on top of other actors in the scene. (In effect, this will disable OpenGL Depth buffer tests while rendering the contour). Default is to set it to false.
|
virtual |
Controls whether the contour widget should always appear on top of other actors in the scene. (In effect, this will disable OpenGL Depth buffer tests while rendering the contour). Default is to set it to false.
void vtkOrientedGlyphContourRepresentation::SetLineColor | ( | double | r, |
double | g, | ||
double | b | ||
) |
Convenience method to set the line color. Ideally one should use GetLinesProperty()->SetColor().
|
virtual |
A flag to indicate whether to show the Selected nodes Default is to set it to false.
Reimplemented from vtkContourRepresentation.
|
virtual |
Return the bounds of the representation
Reimplemented from vtkWidgetRepresentation.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
Implements vtkContourRepresentation.
|
protected |
Definition at line 138 of file vtkOrientedGlyphContourRepresentation.h.
|
protected |
Definition at line 139 of file vtkOrientedGlyphContourRepresentation.h.
|
protected |
Definition at line 140 of file vtkOrientedGlyphContourRepresentation.h.
|
protected |
Definition at line 141 of file vtkOrientedGlyphContourRepresentation.h.
|
protected |
Definition at line 142 of file vtkOrientedGlyphContourRepresentation.h.
|
protected |
Definition at line 143 of file vtkOrientedGlyphContourRepresentation.h.
|
protected |
Definition at line 144 of file vtkOrientedGlyphContourRepresentation.h.
|
protected |
Definition at line 145 of file vtkOrientedGlyphContourRepresentation.h.
|
protected |
Definition at line 146 of file vtkOrientedGlyphContourRepresentation.h.
|
protected |
Definition at line 147 of file vtkOrientedGlyphContourRepresentation.h.
|
protected |
Definition at line 148 of file vtkOrientedGlyphContourRepresentation.h.
|
protected |
Definition at line 149 of file vtkOrientedGlyphContourRepresentation.h.
|
protected |
Definition at line 151 of file vtkOrientedGlyphContourRepresentation.h.
|
protected |
Definition at line 152 of file vtkOrientedGlyphContourRepresentation.h.
|
protected |
Definition at line 153 of file vtkOrientedGlyphContourRepresentation.h.
|
protected |
Definition at line 154 of file vtkOrientedGlyphContourRepresentation.h.
|
protected |
Definition at line 155 of file vtkOrientedGlyphContourRepresentation.h.
|
protected |
Definition at line 156 of file vtkOrientedGlyphContourRepresentation.h.
|
protected |
Definition at line 159 of file vtkOrientedGlyphContourRepresentation.h.
|
protected |
Definition at line 160 of file vtkOrientedGlyphContourRepresentation.h.
|
protected |
Definition at line 161 of file vtkOrientedGlyphContourRepresentation.h.
|
protected |
Definition at line 164 of file vtkOrientedGlyphContourRepresentation.h.
|
protected |
Definition at line 165 of file vtkOrientedGlyphContourRepresentation.h.
|
protected |
Definition at line 177 of file vtkOrientedGlyphContourRepresentation.h.
|
protected |
Definition at line 178 of file vtkOrientedGlyphContourRepresentation.h.
|
protected |
Definition at line 179 of file vtkOrientedGlyphContourRepresentation.h.
|
protected |
Definition at line 185 of file vtkOrientedGlyphContourRepresentation.h.
|
protected |
Definition at line 187 of file vtkOrientedGlyphContourRepresentation.h.