OpenSceneGraph 3.6.5
RotateSphereDragger
Go to the documentation of this file.
1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
2 *
3 * This library is open source and may be redistributed and/or modified under
4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5 * (at your option) any later version. The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * OpenSceneGraph Public License for more details.
12*/
13//osgManipulator - Copyright (C) 2007 Fugro-Jason B.V.
14
15#ifndef OSGMANIPULATOR_ROTATESPHEREDRAGGER
16#define OSGMANIPULATOR_ROTATESPHEREDRAGGER 1
17
20
21namespace osgManipulator {
22
27{
28 public:
29
31
33
34
37 virtual bool handle(const PointerInfo&, const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& us);
38
41
43 inline void setColor(const osg::Vec4& color) { _color = color; setMaterialColor(_color,*this); }
44 inline const osg::Vec4& getColor() const { return _color; }
45
51 inline void setPickColor(const osg::Vec4& color) { _pickColor = color; }
52 inline const osg::Vec4& getPickColor() const { return _pickColor; }
53
54 protected:
55
57
59
64
67};
68
69
70}
71
72#endif
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
Matrixd Matrix
Definition Matrix:27
Vec4f Vec4
Definition Vec4:21
The 'GA' in osgGA stands for 'GUI Abstraction'; the osgGA namespace provides facilities to help devel...
Definition Callback:21
The osgManipulator library is a NodeKit that extends the core scene graph to support 3D interactive m...
Definition AntiSquish:23
void OSGMANIPULATOR_EXPORT setMaterialColor(const osg::Vec4 &color, osg::Node &node)
Convenience function for setting the material color on a node.
A quaternion class.
Definition Quat:30
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
General purpose double triple for use as vertices, vectors and normals.
Definition Vec3d:30
Definition Dragger:84
virtual bool handle(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa)
const osgGA::GUIEventAdapter & ea
Definition RotateSphereDragger:37
osg::Matrix _startWorldToLocal
Definition RotateSphereDragger:62
META_OSGMANIPULATOR_Object(osgManipulator, RotateSphereDragger) virtual bool handle(const PointerInfo &
Handle pick events on dragger and generate TranslateInLine commands.
bool _prevPtOnSphere
Definition RotateSphereDragger:61
void setColor(const osg::Vec4 &color)
Set/Get color for dragger.
Definition RotateSphereDragger:43
void setPickColor(const osg::Vec4 &color)
Set/Get pick color for dragger.
Definition RotateSphereDragger:51
osg::ref_ptr< SpherePlaneProjector > _projector
Definition RotateSphereDragger:58
osg::Vec3d _prevWorldProjPt
Definition RotateSphereDragger:60
osg::Vec4 _color
Definition RotateSphereDragger:65
void setupDefaultGeometry()
Setup default geometry for dragger.
const osg::Vec4 & getColor() const
Definition RotateSphereDragger:44
osg::Quat _prevRotation
Definition RotateSphereDragger:63
const osg::Vec4 & getPickColor() const
Definition RotateSphereDragger:52
osg::Vec4 _pickColor
Definition RotateSphereDragger:66
osg::Matrix _startLocalToWorld
Definition RotateSphereDragger:62
const osgGA::GUIEventAdapter osgGA::GUIActionAdapter & us
Definition RotateSphereDragger:37
#define OSGMANIPULATOR_EXPORT
Definition Export:27

osg logo
Generated at Sun Jul 20 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0.