28 #ifndef vtkSeedRepresentation_h
29 #define vtkSeedRepresentation_h
31 #include "vtkInteractionWidgetsModule.h"
101 vtkSetClampMacro(Tolerance,
int, 1, 100);
102 vtkGetMacro(Tolerance,
int);
abstract class for representing widget handles
a simple class to control print indentation
represent the vtkSeedWidget
virtual int CreateHandle(double e[2])
int GetNumberOfSeeds()
Return the number of seeds (or handles) that have been created.
~vtkSeedRepresentation() override
virtual void SetActiveHandle(int handleId)
virtual void GetSeedWorldPosition(unsigned int seedNum, double pos[3])
Methods to Set/Get the coordinates of seed points defining this representation.
virtual int GetActiveHandle()
These are methods specific to vtkSeedRepresentation and which are invoked from vtkSeedWidget.
vtkHandleRepresentation * HandleRepresentation
virtual void SetSeedWorldPosition(unsigned int seedNum, double pos[3])
void BuildRepresentation() override
These are methods that satisfy vtkWidgetRepresentation's API.
static vtkSeedRepresentation * New()
Instantiate class.
vtkHandleRepresentation * GetHandleRepresentation(unsigned int num)
Get the handle representations used for a particular seed.
virtual void RemoveLastHandle()
virtual void RemoveHandle(int n)
Remove the nth handle.
void SetHandleRepresentation(vtkHandleRepresentation *handle)
This method is used to specify the type of handle representation to use for the internal vtkHandleWid...
virtual void RemoveActiveHandle()
int ComputeInteractionState(int X, int Y, int modify=0) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetSeedDisplayPosition(unsigned int seedNum, double pos[3])
virtual void GetSeedDisplayPosition(unsigned int seedNum, double pos[3])
vtkHandleRepresentation * GetHandleRepresentation()
Returns the model HandleRepresentation.