VR-Vantage 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Functions
vrvOsgUtils.h File Reference

Contains OSG related utility functions. More...

Go to the source code of this file.

Classes

struct  makVrv::DtOsgDebugFrustum
 helper for visualizing debug frustra More...

Namespaces

namespace  makVrv
 Contains makVrv::DtVrlinkSensorFieldOfViewState class.

Functions

static void makVrv::makeRotate (osg::Quat &q, const double &angle, const double &x, const double &y, const double &z)
 Make a quaternion that rotates angle radians around (x, y, z)
static void makVrv::quatMult (osg::Quat &lhs, const osg::Quat &rhs)
 Multiply two quaternions together.
DT_DLL_VRVOSG osg::Camera * makVrv::CreateTextureQuadOverlay (osg::Texture *texture, float x, float y, float w, float h)
DT_DLL_VRVOSG osg::Camera * makVrv::CreateTextureQuadOverlay (const std::string &shader_root, osg::Texture2DArray *textureArray, float x, float y, float w, float h)
osg::MatrixTransform * makVrv::create_axis_primitive ()
 helper for visualizing a coordinate system
DT_DLL_VRVOSG osg::Matrixd makVrv::oglRevDepthOrtho (double left, double right, double bottom, double top, double zNear, double zFar)
 For Reverse Z buffer - get a reverse (near = 1, far = 0) orthographic matrix This should be moved into its own singleton or vrvUtil.
DT_DLL_VRVOSG bool makVrv::getRevZProjectionMatrixAsFrustum (const osg::Matrix &mat, double &left, double &right, double &bottom, double &top, double &zNear, double &zFar)
 For Reverse Z buffer - extract the frustum parameters out of a reverse projection matrix (near = 1, far = 0) This should be moved into its own singleton or vrvUtil.
DT_DLL_VRVOSG bool makVrv::getRevPerspective (const osg::Matrix &mat, double &fovy, double &aspectRatio, double &zNear, double &zFar)
 For Reverse Z buffer - extract the frustum parameters out of a reverse projection matrix (near = 1, far = 0) This should be moved into its own singleton or vrvUtil.
DT_DLL_VRVOSG osg::Matrix makVrv::makeRevFrustum (double left, double right, double bottom, double top, double zNear, double zFar)
 For Reverse Z buffer - create a reverse projection matrix (near = 1, far = 0) out of frustum parameters This should be moved into its own singleton or vrvUtil.
DT_DLL_VRVOSG osg::Matrix makVrv::makeRevPerspective (double fovy, double aspectRatio, double zNear, double zFar)
 For Reverse Z buffer - create a reverse projection matrix (near = 1, far = 0) out of frustum parameters This should be moved into its own singleton or vrvUtil.
DT_DLL_VRVOSG osg::Matrix makVrv::getOrthoMatrix (bool useReverseZ, double left, double right, double bottom, double top, double zNear, double zFar)
void DT_DLL_VRVOSG makVrv::getYPR (const osg::Matrix &m, double &yaw, double &pitch, double &roll)

Detailed Description

Contains OSG related utility functions.



Copyright © 2005-2018 VT MAK. All Rights Reserved (www.mak.com)