36 void setLightNum(
int);
37 int getLightNum()
const;
39 void turnOn(
bool n) { ison_ = n; updateLights(); }
40 bool isOn()
const {
return ison_; }
42 void setAmbient(
float);
44 float getAmbient()
const;
46 void setDiffuse(
float);
48 float getDiffuse()
const;
50 void setDirection(
float x,
float y,
float z);
68 static const char* sKeyIsOn();
69 static const char* sKeyAmbient();
70 static const char* sKeyDiffuse();
71 static const char* sKeyLightNum();
72 static const char* sKeyDirection();
75 osg::StateSet*,osg::StateAttribute*);
#define mExpClass(module)
Definition: commondefs.h:157
void turnOn(bool n)
Definition: vislight.h:39
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:200
float ambient_
Definition: vislight.h:64
Definition: visnodestate.h:25
float diffuse_
Definition: vislight.h:65
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
bool isOn() const
Definition: vislight.h:40
Class for all lights. More options are available in osg, but only what we currently need is implement...
Definition: vislight.h:32
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:187
Definition: visannot.h:40
Open Scene Graph.
Definition: visannot.h:26
TrcKeyZSampling::Dir direction(TrcKeyZSampling::Dir slctype, int dimnr)
Definition: trckeyzsampling.h:129
bool ison_
Definition: vislight.h:63
osg::Light * light_
Definition: vislight.h:66