MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
SoArrow.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2007, 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#ifndef SO_ARROW_H
14#define SO_ARROW_H
15
16#include "SoUtilsSystem.h"
17#include <Inventor/nodes/SoSeparator.h>
18
19class SoCone;
20class SoCalculator;
21class SoCylinder;
22class SoDrawStyle;
23class SoFieldSensor;
24
27class SOUTILS_EXPORT SoArrow : public SoSeparator
28{
30 SO_NODE_HEADER(SoArrow);
31
32
33public:
36
38 static void initClass();
39
40 // ######## Fields ##############
51
52protected:
54 ~SoArrow() override;
55
56
57private:
60 SoSeparator* _root;
62 SoCalculator *_calcStiel, *_rotationCalc;
63
65 SoCone* _spitzeSpitz;
67 SoCylinder* _spitzeStumpf;
68
69 // ##### Die Funktionen #####
71 void initSoArrow();
72
74 void displayHeadChangedCB(SoField*);
75};
76
77#endif
#define SOUTILS_EXPORT
System dependent includes. Disables some compiler/linker warnings.
generates an arrow the arrow has a position and a reference point, from where he points at
Definition SoArrow.h:28
SoSFVec3f rotationRef
von wo der Pfeil gedreht wird (wie beim Wetterhahn)
Definition SoArrow.h:44
static void initClass()
must be called first to initialize the class in OpenInventor
SoSFFloat length
length of the arrow - default value is 10
Definition SoArrow.h:46
SoArrow()
Constructor.
SoSFFloat minDistance
beneath this length teh arrow has no shaft
Definition SoArrow.h:48
SoSFBool displayHead
display an arrowhead (true by default) or a cylinder
Definition SoArrow.h:50
SoSFVec3f position
Position der Pfeilspitze.
Definition SoArrow.h:42
~SoArrow() override
Destructor.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.