MeVisLab Toolbox Reference
CSOTransformAction.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
20
class
SoView2DCSOExtensibleEditor
;
21
class
SoCSOTransformEditor
;
22
23
ML_START_NAMESPACE
24
class
CSO;
25
class
CSOList;
26
ML_END_NAMESPACE
27
29
30
class
CSOTransformAction
:
public
CSOPointingAction
31
{
32
public
:
33
34
CSOTransformAction
(
SoView2DCSOExtensibleEditor
* editor);
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
44
void
initializeMembers
();
45
46
bool
isEligibleForPicking
(
SoCSOTransformEditor
* editor)
const
;
47
48
ml::CSO
*
_activeCSO
;
49
ml::CSOList
*
_activeCSOList
;
50
SoCSOTransformEditor
*
_transformEditor
;
51
52
int
_cursorShape
;
53
};
54
CSOPointingAction.h
CSOPointingAction::CSOPointingAction
CSOPointingAction(SoView2DCSOExtensibleEditor *editor, const std::string &id)
CSOTransformAction::endPress
SoPointingAction * endPress(int clickCount) override
CSOTransformAction::startPressAt
void startPressAt(const SoPointerPosition &pos) override
CSOTransformAction::isSensitiveAt
bool isSensitiveAt(const SoPointerPosition &pos) override
CSOTransformAction::_activeCSO
ml::CSO * _activeCSO
Definition
CSOTransformAction.h:48
CSOTransformAction::_activeCSOList
ml::CSOList * _activeCSOList
Definition
CSOTransformAction.h:49
CSOTransformAction::initializeMembers
void initializeMembers()
CSOTransformAction::getCurrentCursor
int getCurrentCursor(SoViewerProxy *) const override
CSOTransformAction::CSOTransformAction
CSOTransformAction(SoView2DCSOExtensibleEditor *editor)
CSOTransformAction::dragMoveTo
void dragMoveTo(const SoPointerPosition &pos) override
Continues the drag to given device position.
CSOTransformAction::_cursorShape
int _cursorShape
Definition
CSOTransformAction.h:52
CSOTransformAction::isEligibleForPicking
bool isEligibleForPicking(SoCSOTransformEditor *editor) const
CSOTransformAction::_transformEditor
SoCSOTransformEditor * _transformEditor
Definition
CSOTransformAction.h:50
SoCSOTransformEditor
Extension for transforming existing CSOs.
Definition
SoCSOTransformEditor.h:30
SoPointerPosition
SoPointerPosition manages the current position of the mouse cursor.
Definition
SoPointerPosition.h:28
SoPointingAction::SoPointingAction
SoPointingAction(SoInteractionOwner *owner, std::string id, bool positionSensitive=true)
SoView2DCSOExtensibleEditor
Definition
SoView2DCSOExtensibleEditor.h:74
SoViewerProxy
Definition
SoViewerProxy.h:30
ml::CSOList
Definition
CSOList.h:61
ml::CSO
Definition
CSO.h:44
MeVisLab
Standard
Sources
Inventor
SoCSO
SoView2DCSOEditor
SoView2DCSOExtensibleEditor
CSOActions
CSOTransformAction.h
Generated by
1.15.0