10 #ifndef DynAndGraph_config_h
11 #define DynAndGraph_config_h
17 #include <osg/AlphaFunc>
18 #include <osg/AutoTransform>
19 #include <osg/BlendFunc>
21 #include <osg/ClearNode>
24 #include <osg/Geometry>
25 #include <osg/GraphicsContext>
28 #include <osg/LightSource>
29 #include <osg/LineWidth>
30 #include <osg/Material>
31 #include <osg/MatrixTransform>
33 #include <osg/PolygonMode>
34 #include <osg/PositionAttitudeTransform>
36 #include <osg/ShapeDrawable>
38 #include <osg/StateSet>
40 #include <osg/Viewport>
41 #include <osgViewer/Viewer>
42 #include <osgViewer/ViewerBase>
122 : position(a[0], a[1], a[2]),
123 quat(a[(XYZW ? 3 : 4)], a[(XYZW ? 4 : 5)], a[(XYZW ? 5 : 6)],
124 a[(XYZW ? 6 : 3)]) {}
128 return position == other.
position && quat == other.
quat;
132 return position != other.
position || quat != other.
quat;
135 bool valid()
const {
return position.valid() && quat.asVec4().valid(); }
::osg::Vec3f osgVector3
Definition: config-osg.h:99
::osg::Quat osgQuat
Definition: config-osg.h:102
::osg::Vec2f osgVector2
Definition: config-osg.h:98
::osg::Vec4f osgVector4
Definition: config-osg.h:100
#define DEF_OSG_CLASS_REF_PTR(className)
Definition: macros.h:59
#define DEF_CLASS_SMART_PTR(className)
Definition: macros.h:51
LightingMode
Definition: config-osg.h:109
@ LIGHT_INFLUENCE_ON
Definition: config-osg.h:109
@ LIGHT_INFLUENCE_OFF
Definition: config-osg.h:109
WireFrameMode
Definition: config-osg.h:111
@ FILL_AND_WIREFRAME
Definition: config-osg.h:111
@ WIREFRAME
Definition: config-osg.h:111
@ FILL
Definition: config-osg.h:111
FaceMode
Definition: config-osg.h:113
@ EDGE
Definition: config-osg.h:113
@ FACE_AND_EDGE
Definition: config-osg.h:113
@ FACE
Definition: config-osg.h:113
VisibilityMode
Definition: config-osg.h:107
@ VISIBILITY_OFF
Definition: config-osg.h:107
@ VISIBILITY_ON
Definition: config-osg.h:107
@ ALWAYS_ON_TOP
Definition: config-osg.h:107
Definition: action-search-bar.hh:27
Definition: config-osg.h:93
Definition: config-osg.h:44
::osg::ref_ptr< GraphicsContext::Traits > TraitsRefPtr
Definition: config-osg.h:89
Definition: config-osg.h:115
Configuration()
Definition: config-osg.h:118
osgQuat quat
Definition: config-osg.h:117
bool valid() const
Definition: config-osg.h:135
bool operator==(const Configuration &other) const
Definition: config-osg.h:127
Configuration(const osgVector3 &p, const osgQuat &q)
Definition: config-osg.h:125
bool operator!=(const Configuration &other) const
Definition: config-osg.h:131
Configuration(const float *a, bool XYZW)
Definition: config-osg.h:121
osgVector3 position
Definition: config-osg.h:116