#include <osg/ref_ptr>
#include <osg/Node>
#include <osg/Switch>
+#include <osg/PositionAttitudeTransform>
-#include <simgear/props/props.hxx>
-
-#include "placementtrans.hxx"
-
-// Don't pull in the headers, since we don't need them here.
-class SGLocation;
-
+#include <simgear/math/SGMath.hxx>
// Has anyone done anything *really* stupid, like making min and max macros?
#ifdef min
virtual osg::Node* getSceneGraph () { return _selector.get(); }
- virtual SGLocation * getSGLocation () { return _location; }
-
virtual bool getVisible () const;
virtual void setVisible (bool visible);
double heading_deg);
void setOrientation(const SGQuatd& orientation);
+ void setReferenceTime(const double& referenceTime);
void setBodyLinearVelocity(const SGVec3d& velocity);
void setBodyAngularVelocity(const SGVec3d& velocity);
private:
-
// Geodetic position
SGGeod _position;
double _heading_deg;
osg::ref_ptr<osg::Switch> _selector;
- osg::ref_ptr<SGPlacementTransform> _transform;
-
- // Location
- SGLocation * _location;
+ osg::ref_ptr<osg::PositionAttitudeTransform> _transform;
};
#endif // _SG_PLACEMENT_HXX