16 #include "visbasemod.h" 39 void setLightNum(
int);
40 int getLightNum()
const;
42 void turnOn(
bool n) { ison_ = n; updateLights(); }
43 bool isOn()
const {
return ison_; }
45 void setAmbient(
float);
47 float getAmbient()
const;
49 void setDiffuse(
float);
51 float getDiffuse()
const;
53 void setDirection(
float x,
float y,
float z);
71 static const char* sKeyIsOn();
72 static const char* sKeyAmbient();
73 static const char* sKeyDiffuse();
74 static const char* sKeyLightNum();
75 static const char* sKeyDirection();
78 osg::StateSet*,osg::StateAttribute*);
#define mExpClass(module)
Definition: commondefs.h:160
void turnOn(bool n)
Definition: vislight.h:42
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
float ambient_
Definition: vislight.h:67
Definition: visnodestate.h:27
float diffuse_
Definition: vislight.h:68
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
bool isOn() const
Definition: vislight.h:43
Class for all lights. More options are available in osg, but only what we currently need is implement...
Definition: vislight.h:35
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
Definition: visannot.h:43
Open Scene Graph.
Definition: visannot.h:29
TrcKeyZSampling::Dir direction(TrcKeyZSampling::Dir slctype, int dimnr)
Definition: trckeyzsampling.h:139
bool ison_
Definition: vislight.h:66
osg::Light * light_
Definition: vislight.h:69