44 void setFrom(
const Material&,
bool trigger=
false);
46 void setPropertiesFrom(
const Material&,
bool trigger=
false);
54 AmbientAndDiffuse, Off };
59 void setColor(
const Color&,
int=-1,
bool trigger=
true);
63 Color getColor(
int matnr=0)
const;
65 void removeColor(
int idx);
67 void setDiffIntensity(
float);
69 float getDiffIntensity()
const;
71 void setAmbience(
float);
73 float getAmbience()
const;
75 void setSpecIntensity(
float);
77 float getSpecIntensity()
const;
79 void setEmmIntensity(
float);
81 float getEmmIntensity()
const;
83 void setShininess(
float);
85 float getShininess()
const;
87 void setTransparency(
float,
int idx=0,
bool updt=
false);
89 void setAllTransparencies(
float n );
94 float getTransparency(
int idx=0)
const;
96 void rescaleTransparency(
float bendpower);
101 int nrOfMaterial()
const;
108 void setColorBindType(
unsigned int);
115 void updateOsgMaterial();
117 void createOsgColorArray(
int);
118 void setColorArray(osg::Array*);
119 void removeOsgColor(
int);
121 float getRescaledTransparency()
const;
123 static const char* sKeyColor();
124 static const char* sKeyAmbience();
125 static const char* sKeyDiffIntensity();
126 static const char* sKeySpectralIntensity();
127 static const char* sKeyEmmissiveIntensity();
128 static const char* sKeyShininess();
129 static const char* sKeyTransparency();
131 friend class OsgColorArrayUpdator;
#define mExpClass(module)
Definition: commondefs.h:160
A lock of a type that (hopefully) suits your needs. To use it, you need the Locker class...
Definition: threadlock.h:53
float shininess_
Definition: vismaterial.h:139
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
float diffuseintensity_
Definition: vismaterial.h:140
float specularintensity_
Definition: vismaterial.h:137
float emmissiveintensity_
Definition: vismaterial.h:138
unsigned int colorbindtype_
Definition: vismaterial.h:142
Definition: visnodestate.h:27
Definition: callback.h:254
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
ColorMode
Definition: vismaterial.h:53
Definition: vismaterial.h:37
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
osg::Array * osgcolorarray_
Definition: vismaterial.h:146
Threads::Lock lock_
Definition: vismaterial.h:144
Definition: visannot.h:43
osg::Material * material_
Definition: vismaterial.h:133
Notifier< Material > change
Definition: vismaterial.h:42
Definition: vismaterial.h:53
Open Scene Graph.
Definition: visannot.h:29
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
Color color_
Definition: vismaterial.h:135
float ambience_
Definition: vismaterial.h:136
float transparencybendpower_
Definition: vismaterial.h:148
Definition: arraytesselator.h:21
ObjectSet< osg::Geometry > attachedgeoms_
Definition: vismaterial.h:147
FixedString Geometry()
Definition: keystrs.h:69