MeVisLab Toolbox Reference
SoCSODefaultRenderer.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
19
21
22ML_START_NAMESPACE
23class CSO;
24ML_END_NAMESPACE
25
27
30{
31 SO_NODE_HEADER(SoCSODefaultRenderer);
32
33public:
34
37
39 void draw(const CSODrawCSOInfos& csoInfos, const CSODrawView2DInfos& view2DInfos, const CSODrawSliceInformation& drawSliceInfo, SoView2DCSOExtensibleEditor* editor) override;
40
42 static void initClass();
43
44 void createStartPressAt(const SoPointerPosition& ) override {}
45 void createDragMoveTo(const SoPointerPosition& ) override {}
46 bool createEndPress(int ) override { return false; }
48
51 SoPointingAction* selectAndMoveEndPress(int ) override { return nullptr; }
52
53 int cursorShape() const override { return SoViewerProxy::DEFAULT_CURSOR; }
54
55 bool isDefaultRenderer() const override { return true; }
56
57protected:
58
59private:
60};
61
#define SOCSO_EXPORT
Header file for system independent resolution.
Definition SoCSOSystem.h:21
void selectAndMoveDragMoveTo(const SoPointerPosition &) override
int cursorShape() const override
Returns the cursor shape that indicates the next creation.
void createDragMoveTo(const SoPointerPosition &) override
bool createEndPress(int) override
void createStartPressAt(const SoPointerPosition &) override
SoCSODefaultRenderer()
Standard constructor.
void pointerPositionIfAllowedAt(const SoPointerPosition &) override
static void initClass()
init class in inventor runtime
void selectAndMoveStartPressAt(const SoPointerPosition &) override
bool isDefaultRenderer() const override
Returns whether the editor is the default editor.
SoPointingAction * selectAndMoveEndPress(int) override
void draw(const CSODrawCSOInfos &csoInfos, const CSODrawView2DInfos &view2DInfos, const CSODrawSliceInformation &drawSliceInfo, SoView2DCSOExtensibleEditor *editor) override
Drawing routine.
SoCSOEditorExtension()
Hidden constructor.
SoPointerPosition manages the current position of the mouse cursor.