OpendTect
6.6
|
Public Types | |
enum | ColorMode { Ambient , Diffuse , Specular , Emission , AmbientAndDiffuse , Off } |
Public Member Functions | |
Material () | |
void | attachGeometry (osg::Geometry *) |
void | clear () |
void | detachGeometry (osg::Geometry *) |
void | fillPar (IOPar &) const |
float | getAmbience () const |
Color | getColor (int matnr=0) const |
ColorMode | getColorMode () const |
const TypeSet< Color > | getColors () |
float | getDiffIntensity () const |
float | getEmmIntensity () const |
float | getShininess () const |
float | getSpecIntensity () const |
float | getTransparency (int idx=0) const |
int | nrOfMaterial () const |
void | removeColor (int idx) |
void | rescaleTransparency (float bendpower) |
void | setAllTransparencies (float n) |
void | setAmbience (float) |
void | setColor (const Color &, int=-1, bool trigger=true) |
void | setColorBindType (unsigned int) |
void | setColorMode (ColorMode) |
void | setColors (const TypeSet< Color > &, bool trigger=true) |
void | setDiffIntensity (float) |
void | setEmmIntensity (float) |
void | setFrom (const Material &, bool trigger=false) |
void | setPropertiesFrom (const Material &, bool trigger=false) |
void | setShininess (float) |
void | setSpecIntensity (float) |
void | setTransparencies (float, const Interval< int > &range) |
void | setTransparency (float, int idx=0, bool updt=false) |
int | 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 |
Public Attributes | |
Notifier< Material > | change |
Private Member Functions | |
~Material () | |
void | createOsgColorArray (int) |
float | getRescaledTransparency () const |
Assumes object is write-locked. More... | |
void | removeOsgColor (int) |
void | setColorArray (osg::Array *) |
void | updateOsgMaterial () |
Used when no array is present. More... | |
Static Private Member Functions | |
static const char * | sKeyAmbience () |
static const char * | sKeyColor () |
static const char * | sKeyDiffIntensity () |
static const char * | sKeyEmmissiveIntensity () |
static const char * | sKeyShininess () |
static const char * | sKeySpectralIntensity () |
static const char * | sKeyTransparency () |
Private Attributes | |
float | ambience_ |
ObjectSet< osg::Geometry > | attachedgeoms_ |
Color | color_ |
unsigned int | colorbindtype_ |
float | diffuseintensity_ |
float | emmissiveintensity_ |
Threads::Lock | lock_ |
osg::Material * | material_ |
osg::Array * | osgcolorarray_ |
float | shininess_ |
float | specularintensity_ |
float | transparencybendpower_ |
Friends | |
class | OsgColorArrayUpdator |
Additional Inherited Members | |
Static Public Member Functions inherited from CallBacker | |
static void | createReceiverForCurrentThread () |
static void | removeReceiverForCurrentThread () |
Protected Member Functions inherited from visBase::NodeState | |
NodeState () | |
template<class T > | |
T * | addAttribute (T *a) |
template<class T > | |
void | removeAttribute (T *a) |
<>
visBase::Material::Material | ( | ) |
|
private |
void visBase::Material::attachGeometry | ( | osg::Geometry * | ) |
void visBase::Material::clear | ( | ) |
|
private |
void visBase::Material::detachGeometry | ( | osg::Geometry * | ) |
void visBase::Material::fillPar | ( | IOPar & | ) | const |
float visBase::Material::getAmbience | ( | ) | const |
Color visBase::Material::getColor | ( | int | matnr = 0 | ) | const |
ColorMode visBase::Material::getColorMode | ( | ) | const |
float visBase::Material::getDiffIntensity | ( | ) | const |
float visBase::Material::getEmmIntensity | ( | ) | const |
|
private |
Assumes object is write-locked.
float visBase::Material::getShininess | ( | ) | const |
float visBase::Material::getSpecIntensity | ( | ) | const |
float visBase::Material::getTransparency | ( | int | idx = 0 | ) | const |
int visBase::Material::nrOfMaterial | ( | ) | const |
void visBase::Material::removeColor | ( | int | idx | ) |
|
private |
void visBase::Material::rescaleTransparency | ( | float | bendpower | ) |
void visBase::Material::setAllTransparencies | ( | float | n | ) |
Should be between 0 and 1
void visBase::Material::setAmbience | ( | float | ) |
Should be between 0 and 1
void visBase::Material::setColor | ( | const Color & | , |
int | = -1 , |
||
bool | trigger = true |
||
) |
set material's od colors by input colors. using setColors() to instead of this calling if having to setColor many times.
|
private |
void visBase::Material::setColorBindType | ( | unsigned int | ) |
void visBase::Material::setColorMode | ( | ColorMode | ) |
set material's od colors by input colors.
void visBase::Material::setDiffIntensity | ( | float | ) |
Should be between 0 and 1
void visBase::Material::setEmmIntensity | ( | float | ) |
Should be between 0 and 1
void visBase::Material::setFrom | ( | const Material & | , |
bool | trigger = false |
||
) |
void visBase::Material::setPropertiesFrom | ( | const Material & | , |
bool | trigger = false |
||
) |
set materials by input material's properties
void visBase::Material::setShininess | ( | float | ) |
Should be between 0 and 1
void visBase::Material::setSpecIntensity | ( | float | ) |
Should be between 0 and 1
void visBase::Material::setTransparencies | ( | float | , |
const Interval< int > & | range | ||
) |
void visBase::Material::setTransparency | ( | float | , |
int | idx = 0 , |
||
bool | updt = false |
||
) |
Should be between 0 and 1
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
private |
Used when no array is present.
int visBase::Material::usePar | ( | const IOPar & | ) |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
mutableprivate |
the lock will protect below variables
|
private |
|
private |
|
private |
|
private |
|
private |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022