|
|
| Model (const std::string &name) |
| |
|
| Model (const std::string &name, const osg::Vec3 &color) |
| |
|
| Model (const std::string &name, const osg::Vec4 &color) |
| |
|
| Model (const std::string &name, float r, float g, float b, float a=1.0) |
| |
| virtual osg::Group * | getGroup () const |
| |
| bool | setModel (const std::string &filename, bool force_reload=false) |
| |
|
osg::Node * | getModel () const |
| |
|
osg::Geode * | getExtras () const |
| |
| bool | shareModel (const Model *otherModel) |
| |
| void | setModelPosition (const double &x, const double &y, const double &z) |
| |
|
void | setModelPosition (const osg::Vec3d &pos) |
| |
|
void | getModelPosition (double &x, double &y, double &z) const |
| |
|
void | getModelPosition (osg::Vec3d &pos) const |
| |
| void | setModelAttitude (const osg::Quat &att) |
| |
|
void | getModelAttitude (osg::Quat &att) const |
| |
| void | setModelScale (const double &sx, const double &sy, const double &sz) |
| |
|
void | getModelScale (double &sx, double &sy, double &sz) const |
| |
| void | setModelPivot (const double &px, const double &py, const double &pz) |
| |
|
void | getModelPivot (double &px, double &py, double &pz) const |
| |
| const FrameTransform * | getModelTransform () const |
| |
| void | addDraggerCallback (osgManipulator::DraggerCallback *callback) |
| |
| virtual const osg::BoundingSphere & | getBound () const |
| |
|
| ReferenceFrame (const std::string &name) |
| |
|
| ReferenceFrame (const std::string &name, const osg::Vec3 &color) |
| |
|
| ReferenceFrame (const std::string &name, const osg::Vec4 &color) |
| |
|
| ReferenceFrame (const std::string &name, float r, float g, float b, float a=1.0) |
| |
|
void | setName (const std::string &name) |
| |
|
const std::string & | getName () const |
| |
|
virtual void | setColor (const osg::Vec4 &color) |
| |
|
virtual void | setColor (float r, float g, float b, float a=1.0) |
| |
|
virtual const osg::Vec4 & | getColor () const |
| |
|
virtual void | getColor (float &r, float &g, float &b, float &a) const |
| |
|
FrameTransform * | getTransform () const |
| |
|
void | setPosition (const double &x, const double &y, const double &z) |
| |
|
void | setPosition (const osg::Vec3d &pos) |
| |
|
void | getPosition (double &x, double &y, double &z) const |
| |
|
void | getPosition (osg::Vec3d &pos) const |
| |
|
void | setAttitude (const double &rx, const double &ry, const double &rz, const double &angle) |
| |
|
void | setAttitude (const osg::Quat &att) |
| |
|
void | getAttitude (double &rx, double &ry, double &rz, double &angle) const |
| |
|
void | getAttitude (osg::Quat &att) const |
| |
|
virtual void | showAxes (unsigned int axes) |
| |
|
virtual void | showAxesLabels (unsigned int labels) |
| |
|
virtual void | showNameLabel (bool namelabel) |
| |
|
virtual void | showContents (bool showContents) |
| |
|
virtual bool | getContentsShown () const |
| |
|
void | moveXAxis (osg::Vec3d base, double len, double headRatio=0.3, double bodyRadius=0.0, double headRadius=0.0) const |
| |
|
void | moveYAxis (osg::Vec3d base, double len, double headRatio=0.3, double bodyRadius=0.0, double headRadius=0.0) const |
| |
|
void | moveZAxis (osg::Vec3d base, double len, double headRatio=0.3, double bodyRadius=0.0, double headRadius=0.0) const |
| |
|
void | setXLabel (const std::string &str) |
| |
|
void | setYLabel (const std::string &str) |
| |
|
void | setZLabel (const std::string &str) |
| |
|
bool | addChild (ReferenceFrame *frame) |
| |
|
bool | removeChild (ReferenceFrame *frame) |
| |
|
void | setLightSourceEnabled (bool enable) |
| |
|
bool | getLightSourceEnabled () const |
| |
|
osg::LightSource * | getLightSource () const |
| |
|
int | getNumChildren () |
| |
|
ReferenceFrame * | getChild (int i) |
| |
|
void | createFrameString (std::string &str, std::string prefix=" ") const |
| |
|
virtual std::string | frameInfo () const |
| |
|
void | addParent (ReferenceFrame *frame) |
| |
|
void | removeParent (ReferenceFrame *frame) |
| |
|
int | getNumParents () const |
| |
|
ReferenceFrame * | getParent (int i) |
| |
|
void | addTracker (FrameTracker *t) |
| |
|
void | removeTracker (FrameTracker *t) |
| |
|
int | getNumTrackers () const |
| |
|
FrameTracker * | getTracker (int i) |
| |
|
int | getChildIndex (const ReferenceFrame *frame) const |
| |
|
int | getParentIndex (const ReferenceFrame *frame) const |
| |
|
int | getTrackerIndex (const FrameTracker *t) const |
| |
A Reference Frame that contains a 3D model.
A Model is a Reference Frame that also contains a 3D model at the origin. Any model can be loaded as long as the format is supported by OSG.