|
OpenFrames
|
This class enables dragging of a model. More...
#include <Model.hpp>
Public Member Functions | |
| ModelDraggerTransformCallback (FrameTransform *modelxform, osg::MatrixTransform *draggerxform) | |
| virtual bool | receive (const osgManipulator::MotionCommand &command) |
Protected Attributes | |
| osg::observer_ptr< FrameTransform > | _modelXform |
This class enables dragging of a model.
Enables dragging of a Model using an osgManipulator::Dragger. This is needed because the default DraggerTransformCallback only operates on a osg::MatrixTransform while OpenFrames objects use a FrameTransform (custom osg::Transform). TODO: Derive from osgManipulator::DraggerCallback and compute transforms directly instead of depending on the DraggerTransformCallback and a dummy MatrixTransform.
1.8.14