MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
SoSelection2.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_SELECTION2_H
14#define SO_SELECTION2_H
15
16
18// Creates some output fields which contain coordinates
19// returned by the ray pick action executed by the SoSelection node.
20// So simple selected inventor picked point coordinates
21// can be connected to other modules via field connections.
22
23#include <Inventor/nodes/SoSelection.h>
24#include <Inventor/fields/SoSFTrigger.h>
25#include <Inventor/fields/SoSFBool.h>
26#include <Inventor/fields/SoSFVec3f.h>
27#include <Inventor/fields/SoSFVec4f.h>
28#include <Inventor/fields/SoSFFloat.h>
29#include <Inventor/fields/SoSFInt32.h>
30#include <Inventor/fields/SoSFString.h>
31#include <Inventor/fields/SoSFEnum.h>
32
33class SoNodeSensor;
34class SoDataSensor;
35class SoPath;
36
37class SoSelection2 : public SoSelection
38{
39
40 SO_NODE_HEADER(SoSelection2);
41
42public:
45
47 static void initClass();
48
63
64
65private:
67 static SoPath* __pickFilterCB(void* userData, const SoPickedPoint* pick);
68
70 SoPath* _pickFilterCB(const SoPickedPoint* pick);
71
73 static void __selectionChangeStartedCB(void* userData, SoSelection* sel);
74
76 void _selectionChangeStartedCB();
77
79 static void __selectionChangedCB(void* userData, SoSelection* sel);
80
82 void _selectionChangedCB();
83
85 static void __singleSelectionChangeCB(void* userData, SoSelection* sel);
86
88 void _singleSelectionChangeCB();
89
90 void _updateNumberOfSelectedObjects();
91
92 void _pickMatchingChanged(SoField*);
93
94 bool _inSelectionChange;
95};
96
97#endif
SoSFVec3f objectVoxel
static void initClass()
Initializes this class.
SoSFVec3f textureWorld3
SoSFVec4f textureVoxel4
SoSFVec3f textureVoxel3
SoSFVec3f normalVoxel
SoSFVec3f objectWorld
SoSFInt32 numberOfSelectedObjects
SoSFVec4f textureWorld4
SoSelection2()
Constructor.
SoSFBool pickMatching
Switch to enable/disable pick twice mode for pickMatching.
SoSFVec3f normalWorld
Target mlrange_cast(Source arg)
Generic version of checked ML casts.