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

#include <coVRLighting.h>

Inheritance diagram for opencover::coVRLighting:
Inheritance graph
[legend]
Collaboration diagram for opencover::coVRLighting:
Collaboration graph
[legend]

Classes

struct  Light
 
struct  LightDef
 
struct  RGB
 
struct  SpotDef
 
struct  XYZW
 

Public Member Functions

virtual void menuEvent (vrui::coMenuItem *menuItem)
 
osg::LightSource * createLightSource (const char *configName, const LightDef &defValue, bool force)
 
void initSunLight ()
 
void initLampLight ()
 
void initOtherLight ()
 
void initMenu ()
 
void config ()
 
void init ()
 
bool keyEvent (int type, int keySym, int mod)
 
 coVRLighting ()
 
virtual ~coVRLighting ()
 
void update ()
 
int addLight (osg::LightSource *ls, osg::Group *parent=NULL, osg::Node *root=NULL, const char *menuName=NULL)
 
osg::LightSource * removeLight (osg::LightSource *ls)
 
osg::LightSource * switchLight (osg::LightSource *ls, bool on, osg::Node *limitToBranch=NULL)
 
void switchOtherLights (bool on)
 
osg::LightSource * getShadowLight ()
 
void setShadowLight (osg::LightSource *ls)
 
- Public Member Functions inherited from vrui::coMenuListener
virtual ~coMenuListener ()
 
virtual void menuPressEvent (coMenuItem *menuItem)
 
virtual void menuReleaseEvent (coMenuItem *menuItem)
 

Static Public Member Functions

static void manipulateCallback (void *sceneGraph, buttonSpecCell *spec)
 
static coVRLightinginstance ()
 

Public Attributes

vrui::coSubMenuItemlightingButton_
 
vrui::coRowMenulightingMenu_
 
vrui::coCheckboxMenuItemswitchHeadlight_
 
bool headlightState
 
vrui::coCheckboxMenuItemswitchOtherlights_
 
bool otherlightsState
 
vrui::coCheckboxMenuItemswitchSpecularlight_
 
bool specularlightState
 
vrui::coCheckboxMenuItemswitchSpotlight_
 
bool spotlightState
 
multimap< string,
osg::LightSource * > 
m
 
osg::LightSource * light1
 
osg::LightSource * light2
 
osg::Vec4 headlightSpec
 
osg::Vec4 light1Spec
 
osg::Vec4 light2Spec
 
osg::Vec4 spotlightSpec
 
vector< LightlightList
 
osg::LightSource * headlight
 
osg::LightSource * spotlight
 
osg::LightSource * shadowlight
 

Constructor & Destructor Documentation

opencover::coVRLighting::coVRLighting ( )
virtual opencover::coVRLighting::~coVRLighting ( )
virtual

Member Function Documentation

int opencover::coVRLighting::addLight ( osg::LightSource *  ls,
osg::Group *  parent = NULL,
osg::Node *  root = NULL,
const char *  menuName = NULL 
)
void opencover::coVRLighting::config ( )
osg::LightSource* opencover::coVRLighting::createLightSource ( const char *  configName,
const LightDef defValue,
bool  force 
)

Create a light source

Parameters
configNameLook for Cover<configName> section in covise.config
defValueDefault values
forceCreate even when no values in covise.config NULL if section missing and no 'force', pointer to Light otherwise
osg::LightSource* opencover::coVRLighting::getShadowLight ( )
inline
void opencover::coVRLighting::init ( )
void opencover::coVRLighting::initLampLight ( )
void opencover::coVRLighting::initMenu ( )
void opencover::coVRLighting::initOtherLight ( )
void opencover::coVRLighting::initSunLight ( )
static coVRLighting* opencover::coVRLighting::instance ( )
static
bool opencover::coVRLighting::keyEvent ( int  type,
int  keySym,
int  mod 
)
static void opencover::coVRLighting::manipulateCallback ( void *  sceneGraph,
buttonSpecCell spec 
)
static
virtual void opencover::coVRLighting::menuEvent ( vrui::coMenuItem menuItem)
virtual

Reimplemented from vrui::coMenuListener.

osg::LightSource* opencover::coVRLighting::removeLight ( osg::LightSource *  ls)
void opencover::coVRLighting::setShadowLight ( osg::LightSource *  ls)
osg::LightSource* opencover::coVRLighting::switchLight ( osg::LightSource *  ls,
bool  on,
osg::Node *  limitToBranch = NULL 
)
void opencover::coVRLighting::switchOtherLights ( bool  on)
void opencover::coVRLighting::update ( )

Member Data Documentation

osg::LightSource* opencover::coVRLighting::headlight
osg::Vec4 opencover::coVRLighting::headlightSpec
bool opencover::coVRLighting::headlightState
osg::LightSource* opencover::coVRLighting::light1
osg::Vec4 opencover::coVRLighting::light1Spec
osg::LightSource* opencover::coVRLighting::light2
osg::Vec4 opencover::coVRLighting::light2Spec
vrui::coSubMenuItem* opencover::coVRLighting::lightingButton_
vrui::coRowMenu* opencover::coVRLighting::lightingMenu_
vector<Light> opencover::coVRLighting::lightList
multimap<string, osg::LightSource *> opencover::coVRLighting::m
bool opencover::coVRLighting::otherlightsState
osg::LightSource* opencover::coVRLighting::shadowlight
bool opencover::coVRLighting::specularlightState
osg::LightSource* opencover::coVRLighting::spotlight
osg::Vec4 opencover::coVRLighting::spotlightSpec
bool opencover::coVRLighting::spotlightState
vrui::coCheckboxMenuItem* opencover::coVRLighting::switchHeadlight_
vrui::coCheckboxMenuItem* opencover::coVRLighting::switchOtherlights_
vrui::coCheckboxMenuItem* opencover::coVRLighting::switchSpecularlight_
vrui::coCheckboxMenuItem* opencover::coVRLighting::switchSpotlight_

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