VTK
|
represent the vtkSeedWidget More...
#include <vtkSeedRepresentation.h>
Public Types | |
enum | { Outside = 0, NearSeed } |
![]() | |
typedef vtkProp | Superclass |
Public Member Functions | |
int | GetNumberOfSeeds () |
void | SetHandleRepresentation (vtkHandleRepresentation *handle) |
vtkHandleRepresentation * | GetHandleRepresentation (unsigned int num) |
virtual void | RemoveHandle (int n) |
virtual void | GetSeedWorldPosition (unsigned int seedNum, double pos[3]) |
virtual void | SetSeedDisplayPosition (unsigned int seedNum, double pos[3]) |
virtual void | GetSeedDisplayPosition (unsigned int seedNum, double pos[3]) |
vtkHandleRepresentation * | GetHandleRepresentation () |
virtual void | SetTolerance (int) |
virtual int | GetTolerance () |
virtual int | GetActiveHandle () |
virtual int | CreateHandle (double e[2]) |
virtual void | RemoveLastHandle () |
virtual void | RemoveActiveHandle () |
virtual void | BuildRepresentation () |
virtual int | ComputeInteractionState (int X, int Y, int modify=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 | StartWidgetInteraction (double eventPos[2]) |
virtual void | WidgetInteraction (double newEventPos[2]) |
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 void | ReleaseGraphicsResources (vtkWindow *) |
virtual int | RenderOverlay (vtkViewport *vtkNotUsed(viewport)) |
virtual int | RenderOpaqueGeometry (vtkViewport *vtkNotUsed(viewport)) |
virtual int | RenderTranslucentPolygonalGeometry (vtkViewport *vtkNotUsed(viewport)) |
virtual int | RenderVolumetricGeometry (vtkViewport *vtkNotUsed(viewport)) |
virtual int | HasTranslucentPolygonalGeometry () |
vtkWidgetRepresentation * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
Static Public Member Functions | |
static vtkSeedRepresentation * | New () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkWidgetRepresentation * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
vtkSeedRepresentation () | |
~vtkSeedRepresentation () | |
![]() | |
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) |
Protected Attributes | |
vtkHandleRepresentation * | HandleRepresentation |
vtkHandleList * | Handles |
int | Tolerance |
int | ActiveHandle |
![]() | |
vtkWeakPointer< vtkRenderer > | Renderer |
int | InteractionState |
double | StartEventPosition [3] |
double | PlaceFactor |
int | Placed |
double | InitialBounds [6] |
double | InitialLength |
int | ValidPick |
bool | PickingManaged |
double | HandleSize |
int | NeedToRender |
vtkTimeStamp | BuildTime |
typedef vtkWidgetRepresentation | Superclass |
static int | IsTypeOf (const char *type) |
static vtkSeedRepresentation * | SafeDownCast (vtkObjectBase *o) |
virtual int | IsA (const char *type) |
vtkSeedRepresentation * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkObjectBase * | NewInstanceInternal () const |
represent the vtkSeedWidget
The vtkSeedRepresentation is a superclass for classes representing the vtkSeedWidget. This representation consists of one or more handles (vtkHandleRepresentation) which are used to place and manipulate the points defining the collection of seeds.
Definition at line 40 of file vtkSeedRepresentation.h.
Standard VTK methods.
Definition at line 48 of file vtkSeedRepresentation.h.
anonymous enum |
Enumerator | |
---|---|
Outside | |
NearSeed |
Definition at line 94 of file vtkSeedRepresentation.h.
|
protected |
|
protected |
|
static |
Instantiate class.
|
static |
Standard VTK methods.
|
virtual |
Standard VTK methods.
Reimplemented from vtkWidgetRepresentation.
|
static |
Standard VTK methods.
|
protectedvirtual |
Standard VTK methods.
Reimplemented from vtkWidgetRepresentation.
vtkSeedRepresentation* vtkSeedRepresentation::NewInstance | ( | ) | const |
Standard VTK methods.
void vtkSeedRepresentation::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
Standard VTK methods.
|
virtual |
Methods to Set/Get the coordinates of seed points defining this representation. Note that methods are available for both display and world coordinates. The seeds are accessed by a seed number.
|
virtual |
Methods to Set/Get the coordinates of seed points defining this representation. Note that methods are available for both display and world coordinates. The seeds are accessed by a seed number.
|
virtual |
Methods to Set/Get the coordinates of seed points defining this representation. Note that methods are available for both display and world coordinates. The seeds are accessed by a seed number.
int vtkSeedRepresentation::GetNumberOfSeeds | ( | ) |
Return the number of seeds (or handles) that have been created.
void vtkSeedRepresentation::SetHandleRepresentation | ( | vtkHandleRepresentation * | handle | ) |
This method is used to specify the type of handle representation to use for the internal vtkHandleWidgets within vtkSeedWidget. To use this method, create a dummy vtkHandleWidget (or subclass), and then invoke this method with this dummy. Then the vtkSeedRepresentation uses this dummy to clone vtkHandleWidgets of the same type. Make sure you set the handle representation before the widget is enabled.
vtkHandleRepresentation* vtkSeedRepresentation::GetHandleRepresentation | ( | unsigned int | num | ) |
Get the handle representations used for a particular seed. A side effect of this method is that it will create a handle representation in the list of representations if one has not yet been created.
|
inline |
Returns the model HandleRepresentation.
Definition at line 79 of file vtkSeedRepresentation.h.
|
virtual |
The tolerance representing the distance to the widget (in pixels) in which the cursor is considered near enough to the seed points of the widget to be active.
|
virtual |
The tolerance representing the distance to the widget (in pixels) in which the cursor is considered near enough to the seed points of the widget to be active.
|
virtual |
These are methods specific to vtkSeedRepresentation and which are invoked from vtkSeedWidget.
|
virtual |
These are methods specific to vtkSeedRepresentation and which are invoked from vtkSeedWidget.
|
virtual |
These are methods specific to vtkSeedRepresentation and which are invoked from vtkSeedWidget.
|
virtual |
These are methods specific to vtkSeedRepresentation and which are invoked from vtkSeedWidget.
|
virtual |
Remove the nth handle.
|
virtual |
These are methods that satisfy vtkWidgetRepresentation's API.
Implements vtkWidgetRepresentation.
|
virtual |
These are methods that satisfy vtkWidgetRepresentation's API.
Reimplemented from vtkWidgetRepresentation.
|
protected |
Definition at line 127 of file vtkSeedRepresentation.h.
|
protected |
Definition at line 128 of file vtkSeedRepresentation.h.
|
protected |
Definition at line 131 of file vtkSeedRepresentation.h.
|
protected |
Definition at line 134 of file vtkSeedRepresentation.h.