26 #ifndef OD_AVEMATERIAL_H
27 #define OD_AVEMATERIAL_H
38 class OdAveMaterialImpl;
531 friend class OdAveMaterialImpl;
AVE_EXPORT void oddbGetMaterialIds(OdDbDatabase *pDb, OdDbObjectIdArray &ids)
OdSmartPtr< OdAveMaterial > OdAveMaterialPtr
AVE_EXPORT OdRxIteratorPtr oddbGetMaterials(OdDbDatabase *pDb)
OdSmartPtr< OdAveWoodMaterial > OdAveWoodMaterialPtr
OdSmartPtr< OdAveMarbleMaterial > OdAveMarbleMaterialPtr
OdSmartPtr< OdAveGraniteMaterial > OdAveGraniteMaterialPtr
double colorFactor(GraniteColor graniteColor)
void setScale(double scale)
OdUInt32 color(GraniteColor graniteColor)
OdAveGraniteMaterial(OdAveMaterialImpl *pImpl)
void setColorFactor(GraniteColor graniteColor, double colorFactor)
void setColor(GraniteColor graniteColor, OdUInt32 color)
virtual OdAve::MaterialType type()
ODRX_DECLARE_MEMBERS(OdAveGraniteMaterial)
void setSharpness(double sharpness)
virtual OdAve::MaterialType type()
void veinColor(OdUInt32 color)
OdAveMarbleMaterial(OdAveMaterialImpl *pImpl)
ODRX_DECLARE_MEMBERS(OdAveMarbleMaterial)
void setScale(double scale)
void setSharpness(double sharpness)
void stoneColor(OdUInt32 color)
void setTurbulence(OdUInt32 turbulence)
static void getAciMaterialMap(OdDbDatabase *pDb, OdDbObjectIdArray &blockRefIds)
bool attachToACI(OdUInt16 colorIndex)
void setDiffuseFactor(double diffuseFactor)
OdAveBitmap & specularBitmap()
static void detachFromLayer(OdDbObjectId layerId)
OdUInt32 ambientColor() const
void setSpecularColor(OdUInt32 specularColor)
double ambientFactor() const
void setSpecularMirror(bool mirror)
bool isAttribUsed(OdAve::MaterialAttrib attributes)
void setRefraction(double refraction) const
double refraction() const
void setAmbientLock(bool ambientLock)
static void detachFromACI(OdDbDatabase *pDb, OdUInt16 colorIndex)
OdString description() const
static bool getAttachedMaterial(OdDbDatabase *pDb, OdUInt16 colorIndex, OdDbObjectId &blockRefId)
void setHandleDbMaterial(const OdString &sDesc)
static OdAveMaterialPtr getMaterial(const OdDbObjectId &blockRefId)
void setAmbientFactor(double ambientFactor)
void setSpecularColorCurrent(bool colorCurrrent)
bool diffuseColorCurrent() const
void setRoughness(double)
void setDiffuseColor(OdUInt32 diffuseColor)
static void detachFromObject(OdDbObjectId entityId)
bool specularMirror() const
void setTransparency(double transparency)
bool specularColorCurrent() const
void setDescription(const OdString &description)
OdAveBitmap & transparencyBitmap() const
const OdAveBitmap & bumpMap() const
void setAmbientColor(OdUInt32 ambientColor)
OdDbObjectId holderId() const
bool ambientColorCurrent() const
void setAmbientColorCurrent(bool currentColor)
OdAveBitmap & diffuseBitmap() const
void setSpecularFactor(double specularFactor)
bool attachToObject(OdDbObjectId entityId)
ODRX_DECLARE_MEMBERS(OdAveMaterial)
OdResult writeMaterial(OdDbDatabase *pDb=NULL, const OdDbHandle &holderHandle=0)
void setDiffuseColorCurrent(bool currentColor)
OdAveMaterial(OdAveMaterialImpl *pImpl)
const OdAveBitmap & specularBitmap() const
double diffuseFactor() const
OdAveMaterialImpl * m_pImpl
double specularFactor() const
bool specularLock() const
virtual OdAve::MaterialType type()
void setSpecularLock(bool specularLock)
static OdString getMaterialName(const OdDbObjectId &blockRefId)
OdUInt32 diffuseColor() const
bool attachToLayer(OdDbObjectId layerId)
OdUInt32 specularColor() const
double transparency() const
static bool getAttachedMaterial(const OdDbObjectId &sourceId, OdDbObjectId &blockRefId)
OdString handleDbMaterial() const
void setName(const OdString &name)
virtual OdAve::MaterialType type()
void setRingShape(double ringShape)
void setScale(double scale)
OdAveWoodMaterial(OdAveMaterialImpl *pImpl)
void setDarkColor(OdUInt32 darkColor)
void setRingDensity(double ringDensity)
void setLightColor(OdUInt32 lightColor)
ODRX_DECLARE_MEMBERS(OdAveWoodMaterial)
void setLightDark(double lightDark)
void setRingWidth(double ringWidth)
GLuint const GLchar * name