MeVisLab Toolbox Reference
CSOInsertSeedPointIntoPathPointListAction.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2012, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 
15 
16 #pragma once
17 
18 #include "CSOPointingAction.h"
19 
21 
23 
25 {
26 public:
27 
29 
30  bool isSensitiveAt(const SoPointerPosition& pos) override;
31 
32  void startPressAt(const SoPointerPosition& pos) override;
33  void dragMoveTo(const SoPointerPosition& pos) override;
34  SoPointingAction* endPress(int clickCount) override;
35 
36  void releaseGrab(StopMode) override
37  {
38  if (_hitEditor)
39  {
40  _hitEditor->reset();
41  }
42  }
43 
44  int getCurrentCursor(SoViewerProxy* ) const override;
45 
48 
49 protected:
50 
52 
57  SoRef<SoCSOEditorExtension> _hitEditor;
58  float _hitDistance;
59 
61 
63 };
64 
int getCurrentCursor(SoViewerProxy *) const override
Returns the cursor ID to display for this action, as defined in SoViewerProxy.h - this gets (at least...
void releaseGrab(StopMode) override
This will be called by the controller if you should release the grab established by endPress.
bool isSensitiveAt(const SoPointerPosition &pos) override
Returns true if the gesture is startable at the given device position.
SoPointingAction * endPress(int clickCount) override
Ends the drag at last device position.
void dragMoveTo(const SoPointerPosition &pos) override
Continues the drag to given device position.
CSOInsertSeedPointIntoPathPointListAction(SoView2DCSOExtensibleEditor *editor)
void setInteractOnlyWithSelectedCSO(bool flag)
Sets this action to be active only for selected CSOs or for all CSOs.
void startPressAt(const SoPointerPosition &pos) override
Starts a drag at given device position.
SoPointerPosition manages the current position of the mouse cursor.
SoPointingAction is the base class for any mouse based interaction.
StopMode
Argument type for releaseGrab()
This class gives access to state of a viewer during scene graph traversal.
Definition: SoViewerProxy.h:30
A CSOList comprises a number of CSOs and CSOGroups and is the central object for contour segmentation...
Definition: CSOList.h:61
The CSOPathPoints is a list of world coordinates which are interpolated by a certain interpolation sc...
Definition: CSOPathPoints.h:37
The CSOSeedPoint can be interactively set and modified and is the framework for contours.
Definition: CSOSeedPoint.h:35
The CSO represents a contour segmentation object.
Definition: CSO.h:44