MeVisLab Toolbox Reference
CSOLabelResizeAction.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 <SoPointingAction.h>
19 
22 class SoCSOLabelRenderer;
23 
24 ML_START_NAMESPACE
25 class CSO;
26 ML_END_NAMESPACE
27 
29 
31 {
32 public:
33 
35 
36  bool isSensitiveAt(const SoPointerPosition& pos) override;
37  void startPressAt(const SoPointerPosition& pos) override;
38  void dragMoveTo(const SoPointerPosition& pos) override;
39  SoPointingAction* endPress(int clickCount) override;
40  int getCurrentCursor(SoViewerProxy* ) const override;
41 
42 protected:
43 
45 
47 
52 
54 };
55 
SoCSOLabelRenderer * _labelRenderer
SoView2DCSOExtensibleEditor * _editor
SoPointingAction * endPress(int clickCount) override
Ends the drag at last device position.
int getCurrentCursor(SoViewerProxy *) const override
Returns the cursor ID to display for this action, as defined in SoViewerProxy.h - this gets (at least...
void startPressAt(const SoPointerPosition &pos) override
Starts a drag at given device position.
CSOLabelResizeAction(SoView2DCSOExtensibleEditor *editor)
bool isSensitiveAt(const SoPointerPosition &pos) override
Returns true if the gesture is startable at the given device position.
void dragMoveTo(const SoPointerPosition &pos) override
Continues the drag to given device position.
SoCSOEditorExtension * _lastActiveEditor
Base class for an editor extension for the SoView2DCSOExtensibleEditor.
Extension for rendering labels for CSOs.
SoPointerPosition manages the current position of the mouse cursor.
SoPointingAction is the base class for any mouse based interaction.
This class gives access to state of a viewer during scene graph traversal.
Definition: SoViewerProxy.h:30
The CSO represents a contour segmentation object.
Definition: CSO.h:44