[osg-submissions] camera views
Domenico Mangieri
domenico at wivere.com
Tue May 27 18:03:10 PDT 2008
Hi Robert,
I added to the MatrixManipulator the option to set home position respect to
the principal views of a model
FRONT, BACK, LEFT, RIGHT, BOTTOM, TOP, ISOMETRIC
These are quite common camera positions for cad like applications.
Here is the list of files changed :
MatrixManipulator : defines the HomePositionType enum
MatrixManipulator.cpp : Implements computeHomePosition(HomePositionType
vtype) and computeHomePosition(HomePositionType vtype, const
osg::BoundingSphere&)
computeHomePosition() is now the
FRONT view
handle( .. ) uses keys F1..F6 and
Space bar to switch between views (arbitrary keys, feel free to change them
if you like )
DriveManipulator.cpp
FlightManipulator.cpp
TerrainManipulator.cpp
TrackballManipulator.cpp : handleing of KEYDOWN is forward to parent (
MatrixManipulator::handle )
Regards
Domenico.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osgGA.zip
Type: application/octet-stream
Size: 18021 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080528/80dd64ee/attachment-0001.obj>
More information about the osg-submissions
mailing list