MeVisLab Toolbox Reference
SoVectorToFloat.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_VECTOR_TO_FLOAT_H
14 #define SO_VECTOR_TO_FLOAT_H
15 
17 
18 #include <ThirdPartyWarningsDisable.h>
19 #include <Inventor/nodes/SoSubNode.h>
20 #include <Inventor/nodes/SoSwitch.h>
21 #include <Inventor/sensors/SoFieldSensor.h>
22 #include <Inventor/fields/SoSFTrigger.h>
23 #include <Inventor/fields/SoSFVec3f.h>
24 #include <Inventor/fields/SoSFFloat.h>
25 #include <ThirdPartyWarningsRestore.h>
26 
27 //=============================================================
29 
30 //=============================================================
31 class SoVectorToFloat : public SoNode {
32 
33  SO_NODE_HEADER(SoVectorToFloat);
34 
35 public:
38  SoSFVec3f vector;
40  SoSFFloat x;
42  SoSFFloat y;
44  SoSFFloat z;
46  SoSFTrigger changed;
48 
49  static void initClass();
50 
52 
54  void vecChanged(SoField* field);
55 
56 private:
57  ~SoVectorToFloat() override;
58 };
59 
60 #endif
SoVectorToFloat transforms vector to float (not an engine)
void vecChanged(SoField *field)
called when the vector changes
SoSFFloat y
output y
SoSFFloat x
output x
static void initClass()
SoSFTrigger changed
trigger that is touched when vector changed
SoSFFloat z
output z
SoSFVec3f vector
input vector