OpenSceneGraph 3.6.5
TerrainManipulator
Go to the documentation of this file.
1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2010 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
14#ifndef OSGGA_TERRAIN_MANIPULATOR
15#define OSGGA_TERRAIN_MANIPULATOR 1
16
18
19
20namespace osgGA {
21
22
24{
25 typedef OrbitManipulator inherited;
26
27public:
28
31 const osg::CopyOp& copyOp = osg::CopyOp::SHALLOW_COPY );
32
34
40
41 virtual void setRotationMode(RotationMode mode);
43
44 virtual void setByMatrix( const osg::Matrixd& matrix );
45
46 virtual void setTransformation( const osg::Vec3d& eye, const osg::Vec3d& center, const osg::Vec3d& up );
47
48 virtual void setNode( osg::Node* node );
49
50protected:
51
52 virtual bool performMovementMiddleMouseButton( const double eventTimeDelta, const double dx, const double dy );
53 virtual bool performMovementRightMouseButton( const double eventTimeDelta, const double dx, const double dy );
54
55 bool intersect( const osg::Vec3d& start, const osg::Vec3d& end, osg::Vec3d& intersection ) const;
57
59};
60
61
62}
63
64#endif /* OSGGA_TERRAIN_MANIPULATOR */
The 'GA' in osgGA stands for 'GUI Abstraction'; the osgGA namespace provides facilities to help devel...
Definition Callback:21
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
Definition Matrixd:27
Base class for all internal nodes in the scene graph.
Definition Node:72
General purpose double triple for use as vertices, vectors and normals.
Definition Vec3d:30
OrbitManipulator(int flags=DEFAULT_SETTINGS)
@ DEFAULT_SETTINGS
Definition StandardManipulator:43
TerrainManipulator(const TerrainManipulator &tm, const osg::CopyOp &copyOp=osg::CopyOp::SHALLOW_COPY)
RotationMode
Definition TerrainManipulator:36
@ ELEVATION_AZIM_ROLL
Definition TerrainManipulator:37
@ ELEVATION_AZIM
Definition TerrainManipulator:38
bool intersect(const osg::Vec3d &start, const osg::Vec3d &end, osg::Vec3d &intersection) const
virtual void setRotationMode(RotationMode mode)
RotationMode getRotationMode() const
virtual bool performMovementMiddleMouseButton(const double eventTimeDelta, const double dx, const double dy)
virtual void setTransformation(const osg::Vec3d &eye, const osg::Vec3d &center, const osg::Vec3d &up)
Sets manipulator by eye position, center of rotation, and up vector.
osg::Vec3d _previousUp
Definition TerrainManipulator:58
virtual bool performMovementRightMouseButton(const double eventTimeDelta, const double dx, const double dy)
virtual void setNode(osg::Node *node)
Attach a node to the manipulator, automatically detaching any previously attached node.
TerrainManipulator(int flags=DEFAULT_SETTINGS)
virtual void setByMatrix(const osg::Matrixd &matrix)
set the position of the matrix manipulator using a 4x4 Matrix.
META_Object(osgGA, TerrainManipulator)
#define OSGGA_EXPORT
Definition Export:40

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