OpenCOVER
|
#include <VRSceneGraph.h>
Public Types | |
enum | WireframeMode { Disabled, Enabled, HiddenLineBlack, HiddenLineWhite, Points } |
Public Member Functions | |
VRSceneGraph () | |
virtual | ~VRSceneGraph () |
bool | saveScenegraph (const std::string &filename, bool withMenu=false) |
osg::MatrixTransform * | loadAxisGeode (float scale) |
osg::Node * | loadHandIcon (const char *name) |
osg::Node * | loadHandLine () |
void | addMenuItem (osg::Group *itemGroup) |
osg::Group * | getMenuGroup () |
bool | menuVisible () const |
void | toggleMenu () |
void | setMenu (bool state) |
void | setMenuMode (bool state) |
void | applyMenuModeToMenus () |
void | toggleHeadTracking (bool state) |
void | setObjects (bool state) |
bool | keyEvent (int type, int keySym, int mod) |
osg::Group * | getScene () |
osg::Group * | getObjectsScene () |
void | config () |
void | init () |
void | update () |
osg::MatrixTransform * | getTransform () const |
osg::MatrixTransform * | getScaleTransform () const |
osg::MatrixTransform * | getHandTransform () const |
osg::Vec3 | getWorldPointOfInterest () const |
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 (WireframeMode mode) |
void | setPointerType (int pointerType) |
int | getPointerType () |
osg::BoundingSphere | getBoundingSphere () |
void | setNodeBounds (osg::Node *node, const osg::BoundingSphere *bs) |
bool | highQuality () const |
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 | toggleHighQuality (bool state) |
void | viewAll (bool resetView=false) |
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 () |
bool | isHighQuality () const |
Static Public Member Functions | |
static VRSceneGraph * | instance () |
Public Attributes | |
int | m_vectorInteractor |
opencover::VRSceneGraph::VRSceneGraph | ( | ) |
|
virtual |
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 | ( | ) |
|
inline |
|
inline |
osg::BoundingSphere opencover::VRSceneGraph::getBoundingSphere | ( | ) |
|
inline |
|
inline |
void opencover::VRSceneGraph::getHandWorldPosition | ( | float * | , |
float * | , | ||
float * | |||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
osg::Vec3 opencover::VRSceneGraph::getWorldPointOfInterest | ( | ) | const |
bool opencover::VRSceneGraph::highQuality | ( | ) | const |
void opencover::VRSceneGraph::init | ( | ) |
|
static |
bool opencover::VRSceneGraph::isHighQuality | ( | ) | const |
|
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 | ) |
bool opencover::VRSceneGraph::menuVisible | ( | ) | const |
|
inline |
void opencover::VRSceneGraph::protectScenegraph | ( | ) |
void opencover::VRSceneGraph::removePointerIcon | ( | osg::Node * | node | ) |
bool opencover::VRSceneGraph::saveScenegraph | ( | const std::string & | filename, |
bool | withMenu = false |
||
) |
void opencover::VRSceneGraph::scaleAllObjects | ( | bool | resetView = false | ) |
|
inline |
|
inline |
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::setObjects | ( | bool | state | ) |
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 | ) |
|
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 | ( | WireframeMode | mode | ) |
void opencover::VRSceneGraph::toggleAxis | ( | bool | state | ) |
void opencover::VRSceneGraph::toggleHeadTracking | ( | bool | state | ) |
void opencover::VRSceneGraph::toggleHighQuality | ( | bool | state | ) |
void opencover::VRSceneGraph::toggleMenu | ( | ) |
void opencover::VRSceneGraph::update | ( | ) |
void opencover::VRSceneGraph::viewAll | ( | bool | resetView = false | ) |
int opencover::VRSceneGraph::m_vectorInteractor |