OpendTect
6.6
|
Class for all lights. More options are available in osg, but only what we currently need is implemented. More...
Public Member Functions | |
Light () | |
float | direction (int dim) const |
void | fillPar (IOPar &) const |
float | getAmbient () const |
float | getDiffuse () const |
int | getLightNum () const |
bool | isOn () const |
void | setAmbient (float) |
void | setDiffuse (float) |
void | setDirection (float x, float y, float z) |
void | setLightNum (int) |
void | turnOn (bool n) |
bool | usePar (const IOPar &) |
Public Member Functions inherited from visBase::NodeState | |
void | attachStateSet (osg::StateSet *) |
void | detachStateSet (osg::StateSet *) |
virtual void | setPixelDensity (float) |
Public Member Functions inherited from CallBacker | |
CallBacker () | |
CallBacker (const CallBacker &) | |
virtual | ~CallBacker () |
bool | attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const |
bool | attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const |
void | detachAllNotifiers () const |
Call from the destructor of your inherited object. More... | |
void | detachCB (const NotifierAccess &, const CallBack &) const |
void | detachCB (const NotifierAccess *notif, const CallBack &cb) const |
virtual bool | isCapsule () const |
bool | isNotifierAttached (const NotifierAccess *) const |
Only for debugging purposes, don't use. More... | |
void | stopReceivingNotifications () const |
Protected Member Functions | |
~Light () | |
void | initLight () |
void | updateLights () |
Protected Member Functions inherited from visBase::NodeState | |
NodeState () | |
template<class T > | |
T * | addAttribute (T *a) |
template<class T > | |
void | removeAttribute (T *a) |
Static Protected Member Functions | |
static const char * | sKeyAmbient () |
static const char * | sKeyDiffuse () |
static const char * | sKeyDirection () |
static const char * | sKeyIsOn () |
static const char * | sKeyLightNum () |
Protected Attributes | |
float | ambient_ |
float | diffuse_ |
bool | ison_ |
osg::Light * | light_ |
Private Member Functions | |
void | applyAttribute (osg::StateSet *, osg::StateAttribute *) |
Additional Inherited Members | |
Static Public Member Functions inherited from CallBacker | |
static void | createReceiverForCurrentThread () |
static void | removeReceiverForCurrentThread () |
Class for all lights. More options are available in osg, but only what we currently need is implemented.
<>
visBase::Light::Light | ( | ) |
|
protected |
|
privatevirtual |
Reimplemented from visBase::NodeState.
float visBase::Light::direction | ( | int | dim | ) | const |
the direction is specified towards light source
void visBase::Light::fillPar | ( | IOPar & | ) | const |
float visBase::Light::getAmbient | ( | ) | const |
float visBase::Light::getDiffuse | ( | ) | const |
int visBase::Light::getLightNum | ( | ) | const |
|
protected |
|
inline |
void visBase::Light::setAmbient | ( | float | ) |
0 = nada, 1 = full light
void visBase::Light::setDiffuse | ( | float | ) |
0 = nada, 1 = full light
void visBase::Light::setDirection | ( | float | x, |
float | y, | ||
float | z | ||
) |
the direction is specified towards light source
void visBase::Light::setLightNum | ( | int | ) |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
inline |
|
protected |
bool visBase::Light::usePar | ( | const IOPar & | ) |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022