MeVisLab Resolution Independence API
Toggle main menu visibility
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
19
class
SoCone;
20
class
SoCalculator;
21
class
SoCylinder;
22
class
SoDrawStyle;
23
class
SoFieldSensor;
24
27
class
SOUTILS_EXPORT
SoArrow
:
public
SoSeparator
28
{
30
SO_NODE_HEADER(
SoArrow
);
31
32
33
public
:
35
SoArrow
();
36
38
static
void
initClass
();
39
40
// ######## Fields ##############
42
SoSFVec3f
position
;
44
SoSFVec3f
rotationRef
;
46
SoSFFloat
length
;
48
SoSFFloat
minDistance
;
50
SoSFBool
displayHead
;
51
52
protected
:
54
~SoArrow
()
override
;
55
56
57
private
:
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
SoUtilsSystem.h
SOUTILS_EXPORT
#define SOUTILS_EXPORT
System dependent includes. Disables some compiler/linker warnings.
Definition
SoUtilsSystem.h:30
SoArrow::rotationRef
SoSFVec3f rotationRef
von wo der Pfeil gedreht wird (wie beim Wetterhahn)
Definition
SoArrow.h:44
SoArrow::initClass
static void initClass()
must be called first to initialize the class in OpenInventor
SoArrow::length
SoSFFloat length
length of the arrow - default value is 10
Definition
SoArrow.h:46
SoArrow::SoArrow
SoArrow()
Constructor.
SoArrow::minDistance
SoSFFloat minDistance
beneath this length teh arrow has no shaft
Definition
SoArrow.h:48
SoArrow::displayHead
SoSFBool displayHead
display an arrowhead (true by default) or a cylinder
Definition
SoArrow.h:50
SoArrow::position
SoSFVec3f position
Position der Pfeilspitze.
Definition
SoArrow.h:42
SoArrow::~SoArrow
~SoArrow() override
Destructor.
MeVisLab
Standard
Sources
Inventor
SoUtils
SoArrow.h
Generated by
1.18.0