Back to index

salome-geom  6.5.0
Classes | Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes
MATERIAL_SALOME_EXPORT Protocol Reference

#include <Material_Model.h>

List of all members.

Classes

struct  ReflectionData

Public Types

enum  ReflectionType { Ambient, Diffuse, Specular, Emissive }
 Reflection type. More...
enum  MaterialType { Global, User, All }
 Material type. More...

Public Member Functions

 Material_Model ()
virtual ~Material_Model ()
void fromProperties (const QString &)
QString toProperties ()
void fromResources (const QString &=QString(), QtxResourceMgr *=0)
void toResources (const QString &, QtxResourceMgr *)
bool isPhysical () const
void setPhysical (bool)
bool hasReflection (ReflectionType) const
void setReflection (ReflectionType, bool)
QColor color (ReflectionType) const
void setColor (ReflectionType, const QColor &)
double reflection (ReflectionType) const
void setReflection (ReflectionType, double)
double shininess () const
void setShininess (double)
double transparency () const
void setTransparency (double)
Graphic3d_MaterialAspect getMaterialOCCAspect ()
GEOM_VTKPropertyMaterial * getMaterialVTKProperty ()
 Material_ResourceMgr ()
 ~Material_ResourceMgr ()
QStringList materials (MaterialType=All, bool=true)

Private Types

typedef QVector< ReflectionDataReflectionList

Private Member Functions

void init ()

Private Attributes

bool myIsPhysical
double myShininess
double myTransparency
ReflectionList myReflection

Detailed Description

Definition at line 38 of file Material_Model.h.


Class Documentation

struct MATERIAL_SALOME_EXPORT::ReflectionData

Definition at line 82 of file Material_Model.h.

Class Members
double coef
QColor color
bool enabled

Member Typedef Documentation

Definition at line 88 of file Material_Model.h.


Member Enumeration Documentation

Material type.

Enumerator:
Global 

Global materials.

User 

User materials.

All 

All materials.

Definition at line 34 of file Material_ResourceMgr.h.

Reflection type.

Enumerator:
Ambient 

Ambient.

Diffuse 

Diffuse.

Specular 

Specular.

Emissive 

Emissive.

Definition at line 42 of file Material_Model.h.


Constructor & Destructor Documentation


Member Function Documentation

void MATERIAL_SALOME_EXPORT::fromProperties ( const QString &  )
void MATERIAL_SALOME_EXPORT::fromResources ( const QString &  = QString(),
QtxResourceMgr *  = 0 
)
Graphic3d_MaterialAspect MATERIAL_SALOME_EXPORT::getMaterialOCCAspect ( )
GEOM_VTKPropertyMaterial* MATERIAL_SALOME_EXPORT::getMaterialVTKProperty ( )
void MATERIAL_SALOME_EXPORT::init ( ) [private]
QStringList MATERIAL_SALOME_EXPORT::materials ( MaterialType  = All,
bool  = true 
)
void MATERIAL_SALOME_EXPORT::setColor ( ReflectionType  ,
const QColor &   
)
void MATERIAL_SALOME_EXPORT::toResources ( const QString &  ,
QtxResourceMgr *   
)

Member Data Documentation

Definition at line 90 of file Material_Model.h.

Definition at line 93 of file Material_Model.h.

Definition at line 91 of file Material_Model.h.

Definition at line 92 of file Material_Model.h.


The documentation for this protocol was generated from the following files: