OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
opencover::VRSceneGraph Class Reference

#include <VRSceneGraph.h>

Public Member Functions

 VRSceneGraph ()
 
virtual ~VRSceneGraph ()
 
osg::MatrixTransform * loadAxisGeode (float scale)
 
osg::Node * loadHandIcon (const char *name)
 
osg::Node * loadHandLine ()
 
void addMenuItem (osg::Group *itemGroup)
 
osg::Group * getMenuGroup ()
 
void toggleMenu ()
 
void setMenu (bool state)
 
void setMenuMode (bool state)
 
void applyMenuModeToMenus ()
 
void manipulate (buttonSpecCell *spec)
 
bool keyEvent (int type, int keySym, int mod)
 
osgShadow::ShadowedScene * getScene ()
 
void config ()
 
void init ()
 
void update ()
 
osg::MatrixTransform * getTransform ()
 
osg::MatrixTransform * getScaleTransform ()
 
osg::MatrixTransform * getHandTransform ()
 
osg::Vec3 getWorldPointOfInterest ()
 
void getHandWorldPosition (float *, float *, float *)
 
void addPointerIcon (osg::Node *node)
 
void removePointerIcon (osg::Node *node)
 
osg::StateSet * loadDefaultGeostate (osg::Material::ColorMode mode=osg::Material::OFF)
 
osg::StateSet * loadGlobalGeostate ()
 
osg::StateSet * loadUnlightedGeostate (osg::Material::ColorMode mode=osg::Material::OFF)
 
osg::StateSet * loadTransparentGeostate (osg::Material::ColorMode mode=osg::Material::OFF)
 
void setWireframe (bool wf)
 
void setPointerType (int pointerType)
 
int getPointerType ()
 
osg::BoundingSphere getBoundingSphere ()
 
void setNodeBounds (osg::Node *node, const osg::BoundingSphere *bs)
 
template<class T >
T * findFirstNode (const char *name, bool startsWith=false, osg::Node *rootNode=NULL)
 
float scaleMode ()
 
void setScaleMode (float scaleMode)
 
float scaleFactor ()
 
void setScaleFactor (float scaleFactor, bool sync=true)
 
void scaleAllObjects (bool resetView=false)
 
bool isScalingAllObjects () const
 
void boundingSphereToMatrices (const osg::BoundingSphere &boundingSphere, bool resetView, osg::Matrix *currentMatrix, float *scaleFactor) const
 
void adjustScale ()
 
void toggleAxis (bool state)
 
void viewAll (bool resetView=false)
 
void resetScale ()
 
float & joyStickX ()
 
float & joyStickY ()
 
float floorHeight ()
 
osg::ClipNode * objectsRoot ()
 
osg::ref_ptr< osg::Node > getHandSphere ()
 
void setMultisampling (osg::Multisample::Mode)
 
void setScaleFromButton (float direction)
 
void setScaleFactorButton (float f)
 
void setScaleRestrictFactor (float min, float max)
 
void setRestrictBox (float minX, float maxX, float minY, float maxY, float minZ, float maxZ)
 
void setColor (const char *nodeName, int *color, float transparency)
 
void setColor (osg::Geode *geode, int *color, float transparency)
 
void setTransparency (const char *nodeName, float transparency)
 
void setTransparency (osg::Geode *geode, float transparency)
 
void setShader (const char *nodeName, const char *shaderName, const char *paraFloat, const char *paraVec2, const char *paraVec3, const char *paraVec4, const char *paraInt, const char *paraBool, const char *paraMat2, const char *paraMat3, const char *paraMat4)
 
void setShader (osg::Geode *geode, const char *shaderName, const char *paraFloat, const char *paraVec2, const char *paraVec3, const char *paraVec4, const char *paraInt, const char *paraBool, const char *paraMat2, const char *paraMat3, const char *paraMat4)
 
void setMaterial (const char *nodeName, int *ambient, int *diffuse, int *specular, float shininess, float transparency)
 
void setMaterial (osg::Geode *geode, int *ambient, int *diffuse, int *specular, float shininess, float transparency)
 
void protectScenegraph ()
 

Static Public Member Functions

static VRSceneGraphinstance ()
 
static void resetviewCallback (void *sceneGraph, buttonSpecCell *spec)
 
static void viewallCallback (void *sceneGraph, buttonSpecCell *spec)
 
static void coordAxisCallback (void *sceneGraph, buttonSpecCell *spec)
 
static void storeCallback (void *sceneGraph, buttonSpecCell *spec)
 
static void reloadFileCallback (void *sceneGraph, buttonSpecCell *spec)
 
static void scalePlusCallback (void *sceneGraph, buttonSpecCell *spec)
 
static void scaleMinusCallback (void *sceneGraph, buttonSpecCell *spec)
 

Public Attributes

int numFrames
 
float frameAngle
 
osg::Vec3 rotationAxis
 
osg::Vec3 rotationPoint
 
int m_vectorInteractor
 
bool KeyButton [4]
 

Constructor & Destructor Documentation

opencover::VRSceneGraph::VRSceneGraph ( )
virtual opencover::VRSceneGraph::~VRSceneGraph ( )
virtual

Member Function Documentation

void opencover::VRSceneGraph::addMenuItem ( osg::Group *  itemGroup)
void opencover::VRSceneGraph::addPointerIcon ( osg::Node *  node)
void opencover::VRSceneGraph::adjustScale ( )
void opencover::VRSceneGraph::applyMenuModeToMenus ( )
void opencover::VRSceneGraph::boundingSphereToMatrices ( const osg::BoundingSphere &  boundingSphere,
bool  resetView,
osg::Matrix *  currentMatrix,
float *  scaleFactor 
) const
void opencover::VRSceneGraph::config ( )
static void opencover::VRSceneGraph::coordAxisCallback ( void *  sceneGraph,
buttonSpecCell spec 
)
static
template<class T >
T* opencover::VRSceneGraph::findFirstNode ( const char *  name,
bool  startsWith = false,
osg::Node *  rootNode = NULL 
)
inline
float opencover::VRSceneGraph::floorHeight ( )
inline
osg::BoundingSphere opencover::VRSceneGraph::getBoundingSphere ( )
osg::ref_ptr<osg::Node> opencover::VRSceneGraph::getHandSphere ( )
inline
osg::MatrixTransform* opencover::VRSceneGraph::getHandTransform ( )
inline
void opencover::VRSceneGraph::getHandWorldPosition ( float *  ,
float *  ,
float *   
)
osg::Group* opencover::VRSceneGraph::getMenuGroup ( )
inline
int opencover::VRSceneGraph::getPointerType ( )
inline
osg::MatrixTransform* opencover::VRSceneGraph::getScaleTransform ( )
inline
osgShadow::ShadowedScene* opencover::VRSceneGraph::getScene ( )
inline
osg::MatrixTransform* opencover::VRSceneGraph::getTransform ( )
inline
osg::Vec3 opencover::VRSceneGraph::getWorldPointOfInterest ( )
void opencover::VRSceneGraph::init ( )
static VRSceneGraph* opencover::VRSceneGraph::instance ( )
static
bool opencover::VRSceneGraph::isScalingAllObjects ( ) const
inline
float& opencover::VRSceneGraph::joyStickX ( )
inline
float& opencover::VRSceneGraph::joyStickY ( )
inline
bool opencover::VRSceneGraph::keyEvent ( int  type,
int  keySym,
int  mod 
)
osg::MatrixTransform* opencover::VRSceneGraph::loadAxisGeode ( float  scale)
osg::StateSet* opencover::VRSceneGraph::loadDefaultGeostate ( osg::Material::ColorMode  mode = osg::Material::OFF)
osg::StateSet* opencover::VRSceneGraph::loadGlobalGeostate ( )
osg::Node* opencover::VRSceneGraph::loadHandIcon ( const char *  name)
osg::Node* opencover::VRSceneGraph::loadHandLine ( )
osg::StateSet* opencover::VRSceneGraph::loadTransparentGeostate ( osg::Material::ColorMode  mode = osg::Material::OFF)
osg::StateSet* opencover::VRSceneGraph::loadUnlightedGeostate ( osg::Material::ColorMode  mode = osg::Material::OFF)
void opencover::VRSceneGraph::manipulate ( buttonSpecCell spec)
osg::ClipNode* opencover::VRSceneGraph::objectsRoot ( )
inline
void opencover::VRSceneGraph::protectScenegraph ( )
static void opencover::VRSceneGraph::reloadFileCallback ( void *  sceneGraph,
buttonSpecCell spec 
)
static
void opencover::VRSceneGraph::removePointerIcon ( osg::Node *  node)
void opencover::VRSceneGraph::resetScale ( )
static void opencover::VRSceneGraph::resetviewCallback ( void *  sceneGraph,
buttonSpecCell spec 
)
static
void opencover::VRSceneGraph::scaleAllObjects ( bool  resetView = false)
float opencover::VRSceneGraph::scaleFactor ( )
inline
static void opencover::VRSceneGraph::scaleMinusCallback ( void *  sceneGraph,
buttonSpecCell spec 
)
static
float opencover::VRSceneGraph::scaleMode ( )
inline
static void opencover::VRSceneGraph::scalePlusCallback ( void *  sceneGraph,
buttonSpecCell spec 
)
static
void opencover::VRSceneGraph::setColor ( const char *  nodeName,
int *  color,
float  transparency 
)
void opencover::VRSceneGraph::setColor ( osg::Geode *  geode,
int *  color,
float  transparency 
)
void opencover::VRSceneGraph::setMaterial ( const char *  nodeName,
int *  ambient,
int *  diffuse,
int *  specular,
float  shininess,
float  transparency 
)
void opencover::VRSceneGraph::setMaterial ( osg::Geode *  geode,
int *  ambient,
int *  diffuse,
int *  specular,
float  shininess,
float  transparency 
)
void opencover::VRSceneGraph::setMenu ( bool  state)
void opencover::VRSceneGraph::setMenuMode ( bool  state)
void opencover::VRSceneGraph::setMultisampling ( osg::Multisample::Mode  )
void opencover::VRSceneGraph::setNodeBounds ( osg::Node *  node,
const osg::BoundingSphere *  bs 
)
void opencover::VRSceneGraph::setPointerType ( int  pointerType)
void opencover::VRSceneGraph::setRestrictBox ( float  minX,
float  maxX,
float  minY,
float  maxY,
float  minZ,
float  maxZ 
)
void opencover::VRSceneGraph::setScaleFactor ( float  scaleFactor,
bool  sync = true 
)
void opencover::VRSceneGraph::setScaleFactorButton ( float  f)
void opencover::VRSceneGraph::setScaleFromButton ( float  direction)
void opencover::VRSceneGraph::setScaleMode ( float  scaleMode)
inline
void opencover::VRSceneGraph::setScaleRestrictFactor ( float  min,
float  max 
)
void opencover::VRSceneGraph::setShader ( const char *  nodeName,
const char *  shaderName,
const char *  paraFloat,
const char *  paraVec2,
const char *  paraVec3,
const char *  paraVec4,
const char *  paraInt,
const char *  paraBool,
const char *  paraMat2,
const char *  paraMat3,
const char *  paraMat4 
)
void opencover::VRSceneGraph::setShader ( osg::Geode *  geode,
const char *  shaderName,
const char *  paraFloat,
const char *  paraVec2,
const char *  paraVec3,
const char *  paraVec4,
const char *  paraInt,
const char *  paraBool,
const char *  paraMat2,
const char *  paraMat3,
const char *  paraMat4 
)
void opencover::VRSceneGraph::setTransparency ( const char *  nodeName,
float  transparency 
)
void opencover::VRSceneGraph::setTransparency ( osg::Geode *  geode,
float  transparency 
)
void opencover::VRSceneGraph::setWireframe ( bool  wf)
static void opencover::VRSceneGraph::storeCallback ( void *  sceneGraph,
buttonSpecCell spec 
)
static
void opencover::VRSceneGraph::toggleAxis ( bool  state)
void opencover::VRSceneGraph::toggleMenu ( )
void opencover::VRSceneGraph::update ( )
void opencover::VRSceneGraph::viewAll ( bool  resetView = false)
static void opencover::VRSceneGraph::viewallCallback ( void *  sceneGraph,
buttonSpecCell spec 
)
static

Member Data Documentation

float opencover::VRSceneGraph::frameAngle
bool opencover::VRSceneGraph::KeyButton[4]
int opencover::VRSceneGraph::m_vectorInteractor
int opencover::VRSceneGraph::numFrames
osg::Vec3 opencover::VRSceneGraph::rotationAxis
osg::Vec3 opencover::VRSceneGraph::rotationPoint

The documentation for this class was generated from the following file: