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 
22 ML_START_NAMESPACE
23 class CSO;
24 ML_END_NAMESPACE
25 
27 
30 {
31  SO_NODE_HEADER(SoCSODefaultRenderer);
32 
33 public:
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 
50  void selectAndMoveDragMoveTo(const SoPointerPosition& ) override {}
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 
57 protected:
58 
59 private:
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.
SoPointingAction * selectAndMoveEndPress(int) override
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.
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.