|
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 () |
|
|
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 vtkPolyData * | GetContourRepresentationAsPolyData ()=0 |
|
virtual void | PickingManagedOn () |
|
virtual void | PickingManagedOff () |
|
virtual void | SetPickingManaged (bool) |
|
virtual bool | GetPickingManaged () |
|
virtual void | SetRenderer (vtkRenderer *ren) |
|
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 | 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) |
|
vtkProp * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) |
|
virtual void | Pick () |
|
virtual bool | HasKeys (vtkInformation *requiredKeys) |
|
virtual void | BuildPaths (vtkAssemblyPaths *paths, vtkAssemblyPath *path) |
|
virtual void | SetVisibility (int) |
|
virtual int | GetVisibility () |
|
virtual void | VisibilityOn () |
|
virtual void | VisibilityOff () |
|
virtual void | SetPickable (int) |
|
virtual int | GetPickable () |
|
virtual void | PickableOn () |
|
virtual void | PickableOff () |
|
virtual void | SetDragable (int) |
|
virtual int | GetDragable () |
|
virtual void | DragableOn () |
|
virtual void | DragableOff () |
|
virtual unsigned long | GetRedrawMTime () |
|
virtual void | SetUseBounds (bool) |
|
virtual bool | GetUseBounds () |
|
virtual void | UseBoundsOn () |
|
virtual void | UseBoundsOff () |
|
virtual void | InitPathTraversal () |
|
virtual vtkAssemblyPath * | GetNextPath () |
|
virtual int | GetNumberOfPaths () |
|
virtual void | PokeMatrix (vtkMatrix4x4 *vtkNotUsed(matrix)) |
|
virtual vtkMatrix4x4 * | GetMatrix () |
|
virtual vtkInformation * | GetPropertyKeys () |
|
virtual void | SetPropertyKeys (vtkInformation *keys) |
|
virtual int | RenderVolumetricGeometry (vtkViewport *) |
|
virtual bool | RenderFilteredOpaqueGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
|
virtual bool | RenderFilteredTranslucentPolygonalGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
|
virtual bool | RenderFilteredVolumetricGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
|
virtual bool | RenderFilteredOverlay (vtkViewport *v, vtkInformation *requiredKeys) |
|
virtual double | GetEstimatedRenderTime (vtkViewport *) |
|
virtual double | GetEstimatedRenderTime () |
|
virtual void | SetEstimatedRenderTime (double t) |
|
virtual void | RestoreEstimatedRenderTime () |
|
virtual void | AddEstimatedRenderTime (double t, vtkViewport *vtkNotUsed(vp)) |
|
virtual void | SetAllocatedRenderTime (double t, vtkViewport *vtkNotUsed(v)) |
|
virtual double | GetAllocatedRenderTime () |
|
void | SetRenderTimeMultiplier (double t) |
|
virtual double | GetRenderTimeMultiplier () |
|
virtual bool | GetSupportsSelection () |
|
virtual int | GetNumberOfConsumers () |
|
void | AddConsumer (vtkObject *c) |
|
void | RemoveConsumer (vtkObject *c) |
|
vtkObject * | GetConsumer (int i) |
|
int | IsConsumer (vtkObject *c) |
|
vtkObject * | NewInstance () const |
|
virtual void | DebugOn () |
|
virtual void | DebugOff () |
|
bool | GetDebug () |
|
void | SetDebug (bool debugFlag) |
|
virtual void | Modified () |
|
virtual unsigned long | GetMTime () |
|
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
|
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
|
vtkCommand * | GetCommand (unsigned long tag) |
|
void | RemoveObserver (vtkCommand *) |
|
void | RemoveObservers (unsigned long event, vtkCommand *) |
|
void | RemoveObservers (const char *event, vtkCommand *) |
|
int | HasObserver (unsigned long event, vtkCommand *) |
|
int | HasObserver (const char *event, vtkCommand *) |
|
void | RemoveObserver (unsigned long tag) |
|
void | RemoveObservers (unsigned long event) |
|
void | RemoveObservers (const char *event) |
|
void | RemoveAllObservers () |
|
int | HasObserver (unsigned long event) |
|
int | HasObserver (const char *event) |
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
|
int | InvokeEvent (unsigned long event, void *callData) |
|
int | InvokeEvent (const char *event, void *callData) |
|
int | InvokeEvent (unsigned long event) |
|
int | InvokeEvent (const char *event) |
|
const char * | GetClassName () const |
|
virtual void | Delete () |
|
virtual void | FastDelete () |
|
void | Print (ostream &os) |
|
virtual void | Register (vtkObjectBase *o) |
|
virtual void | UnRegister (vtkObjectBase *o) |
|
void | SetReferenceCount (int) |
|
void | PrintRevisions (ostream &) |
|
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
|
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
|
int | GetReferenceCount () |
|
|
| 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 void | BuildLines ()=0 |
|
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) |
|
| vtkProp () |
|
| ~vtkProp () |
|
| vtkObject () |
|
virtual | ~vtkObject () |
|
virtual void | RegisterInternal (vtkObjectBase *, int check) |
|
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
|
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
|
void | InternalReleaseFocus () |
|
| vtkObjectBase () |
|
virtual | ~vtkObjectBase () |
|
virtual void | CollectRevisions (ostream &) |
|
virtual void | ReportReferences (vtkGarbageCollector *) |
|
| vtkObjectBase (const vtkObjectBase &) |
|
void | operator= (const vtkObjectBase &) |
|
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
- Tests:
- vtkContourRepresentation (Tests)
Definition at line 119 of file vtkContourRepresentation.h.