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
23class CSO;
25
27
30{
31 SO_NODE_HEADER(SoCSODefaultRenderer);
32
33public:
34
37
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
Extension for rendering CSOs.
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
Sets seed points while moving the mouse – but not while dragging.
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.
Base class for an editor extension for the SoView2DCSOExtensibleEditor.
SoPointerPosition manages the current position of the mouse cursor.
SoPointingAction is the base class for any mouse based interaction.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.