|
virtual void | SetEnabled (int) |
|
virtual void | SetCurrentRenderer (vtkRenderer *) |
|
virtual void | SetInteractor (vtkRenderWindowInteractor *) |
|
void | CreateDefaultRepresentation () |
|
virtual void | SetProcessEvents (int) |
|
virtual void | CompleteInteraction () |
|
virtual void | RestartInteraction () |
|
virtual vtkHandleWidget * | CreateNewHandle () |
|
void | DeleteSeed (int n) |
|
vtkHandleWidget * | GetSeed (int n) |
|
|
void | SetRepresentation (vtkSeedRepresentation *rep) |
|
|
vtkSeedRepresentation * | GetSeedRepresentation () |
|
|
virtual int | GetWidgetState () |
|
void | Render () |
|
virtual void | SetPriority (float) |
|
virtual int | GetProcessEvents () |
|
virtual void | ProcessEventsOn () |
|
virtual void | ProcessEventsOff () |
|
vtkWidgetEventTranslator * | GetEventTranslator () |
|
void | SetParent (vtkAbstractWidget *parent) |
|
virtual vtkAbstractWidget * | GetParent () |
|
vtkWidgetRepresentation * | GetRepresentation () |
|
virtual void | SetManagesCursor (int) |
|
virtual int | GetManagesCursor () |
|
virtual void | ManagesCursorOn () |
|
virtual void | ManagesCursorOff () |
|
vtkAbstractWidget * | NewInstance () const |
|
vtkInteractorObserver * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) |
|
virtual void | OnChar () |
|
int | GetEnabled () |
|
void | EnabledOn () |
|
void | EnabledOff () |
|
void | On () |
|
void | Off () |
|
virtual vtkRenderWindowInteractor * | GetInteractor () |
|
virtual float | GetPriority () |
|
virtual void | PickingManagedOn () |
|
virtual void | PickingManagedOff () |
|
virtual void | SetPickingManaged (bool) |
|
virtual bool | GetPickingManaged () |
|
virtual void | SetKeyPressActivation (int) |
|
virtual int | GetKeyPressActivation () |
|
virtual void | KeyPressActivationOn () |
|
virtual void | KeyPressActivationOff () |
|
virtual void | SetKeyPressActivationValue (char) |
|
virtual char | GetKeyPressActivationValue () |
|
virtual vtkRenderer * | GetDefaultRenderer () |
|
virtual void | SetDefaultRenderer (vtkRenderer *) |
|
virtual vtkRenderer * | GetCurrentRenderer () |
|
void | GrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
|
void | ReleaseFocus () |
|
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 () |
|
place multiple seed points
The vtkSeedWidget is used to placed multiple seed points in the scene. The seed points can be used for operations like connectivity, segmentation, and region growing.
To use this widget, specify an instance of vtkSeedWidget and a representation (a subclass of vtkSeedRepresentation). The widget is implemented using multiple instances of vtkHandleWidget which can be used to position the seed points (after they are initially placed). The representations for these handle widgets are provided by the vtkSeedRepresentation.
- Event Bindings:
- By default, the widget responds to the following VTK events (i.e., it watches the vtkRenderWindowInteractor for these events):
LeftButtonPressEvent - add a point or select a handle (i.e., seed)
RightButtonPressEvent - finish adding the seeds
MouseMoveEvent - move a handle (i.e., seed)
LeftButtonReleaseEvent - release the selected handle (seed)
- Event Bindings:
- Note that the event bindings described above can be changed using this class's vtkWidgetEventTranslator. This class translates VTK events into the vtkSeedWidget's widget events:
vtkWidgetEvent::AddPoint -- add one point; depending on the state
it may the first or second point added. Or,
if near handle, select handle.
vtkWidgetEvent::Completed -- finished adding seeds.
vtkWidgetEvent::Move -- move the second point or handle depending on the state.
vtkWidgetEvent::EndSelect -- the handle manipulation process has completed.
- Event Bindings:
- This widget invokes the following VTK events on itself (which observers can listen for):
vtkCommand::StartInteractionEvent (beginning to interact)
vtkCommand::EndInteractionEvent (completing interaction)
vtkCommand::InteractionEvent (moving after selecting something)
vtkCommand::PlacePointEvent (after point is positioned;
call data includes handle id (0,1))
- See also
- vtkHandleWidget vtkSeedReoresentation
- Events:
- vtkCommand::LeftButtonPressEvent vtkCommand::StartInteractionEvent vtkCommand::InteractionEvent vtkCommand::MouseMoveEvent vtkCommand::PlacePointEvent vtkCommand::LeftButtonReleaseEvent vtkCommand::EndInteractionEvent
- Tests:
- vtkSeedWidget (Tests)
Definition at line 85 of file vtkSeedWidget.h.