OBJParser
OBJ File Parser Powered by Boost Spirit
 All Classes Functions Variables Enumerations Enumerator Pages
Public Member Functions | Protected Attributes | List of all members
OBJMaterial Class Reference

Public Member Functions

void setName (std::string const &name)
 
std::string const & getName () const
 
void setAmbientReflectivityRGB (OBJVector3 const &rgb)
 
void setAmbientReflectivityXYZ (OBJVector3 const &xyz)
 
void setAmbientReflectivityRFL (OBJMaterialPropertyRFL const &rfl)
 
OBJMaterialProperty const & getAmbientReflectivity () const
 
void setDiffuseReflectivityRGB (OBJVector3 const &rgb)
 
void setDiffuseReflectivityXYZ (OBJVector3 const &xyz)
 
void setDiffuseReflectivityRFL (OBJMaterialPropertyRFL const &rfl)
 
OBJMaterialProperty const & getDiffuseReflectivity () const
 
void setSpecularReflectivityRGB (OBJVector3 const &rgb)
 
void setSpecularReflectivityXYZ (OBJVector3 const &xyz)
 
void setSpecularReflectivityRFL (OBJMaterialPropertyRFL const &rfl)
 
OBJMaterialProperty const & getSpecularReflectivity () const
 
void setEmissiveReflectivityRGB (OBJVector3 const &rgb)
 
void setEmissiveReflectivityXYZ (OBJVector3 const &xyz)
 
void setEmissiveReflectivityRFL (OBJMaterialPropertyRFL const &rfl)
 
OBJMaterialProperty const & getEmissiveReflectivity () const
 
void setTransmissionFilterRGB (OBJVector3 const &rgb)
 
void setTransmissionFilterXYZ (OBJVector3 const &xyz)
 
void setTransmissionFilterRFL (OBJMaterialPropertyRFL const &rfl)
 
OBJMaterialProperty const & getTransmissionFilter () const
 
void setDissolve (OBJMaterialDissolve const &dissolve)
 
OBJMaterialDissolve const & getDissolve () const
 
void setTransparency (float transparency)
 
float getTransparency () const
 
void setIlluminationModel (uint32_t model)
 
uint32_t getIlluminationModel () const
 
void setSharpness (uint32_t sharpness)
 
uint32_t getSharpness () const
 
void setSpecularExponent (float exponent)
 
float getSpecularExponent () const
 
void setOpticalDensity (float density)
 
float getOpticalDensity () const
 
void setAmbientTexture (OBJTextureDescriptor const *descriptor)
 
OBJTextureDescriptor const & getAmbientTexture () const
 
void setDiffuseTexture (OBJTextureDescriptor const *descriptor)
 
OBJTextureDescriptor const & getDiffuseTexture () const
 
void setSpecularTexture (OBJTextureDescriptor const *descriptor)
 
OBJTextureDescriptor const & getSpecularTexture () const
 
void setSpecularExponentTexture (OBJTextureDescriptor const *descriptor)
 
OBJTextureDescriptor const & getSpecularExponentTexture () const
 
void setEmissiveTexture (OBJTextureDescriptor const *descriptor)
 
OBJTextureDescriptor const & getEmissiveTexture () const
 
void setDissolveTexture (OBJTextureDescriptor const *descriptor)
 
OBJTextureDescriptor const & getDissolveTexture () const
 
void setDecalTexture (OBJTextureDescriptor const *descriptor)
 
OBJTextureDescriptor const & getDecalTexture () const
 
void setDisplacementTexture (OBJTextureDescriptor const *descriptor)
 
OBJTextureDescriptor const & getDisplacementTexture () const
 
void setBumpTexture (OBJTextureDescriptor const *descriptor)
 
OBJTextureDescriptor const & getBumpTexture () const
 
void setAntiAliasing (bool aa)
 
bool getAntiAliasing () const
 
OBJReflectionMapType getReflectionMapType () const
 
void setReflectionMapSphere (OBJTextureDescriptor const *descriptor)
 
OBJTextureDescriptor const & getReflectionMapSphere () const
 
void setReflectionMapCubeSide (OBJReflectionMapCubeSide side, OBJTextureDescriptor const *descriptor)
 
OBJTextureDescriptor const & getReflectionMapCubeSide (OBJReflectionMapCubeSide side) const
 

Protected Attributes

std::string m_Name
 
OBJMaterialProperty m_AmbientReflectivity
 
OBJMaterialProperty m_DiffuseReflectivity
 
OBJMaterialProperty m_SpecularReflectivity
 
OBJMaterialProperty m_EmissiveReflectivity
 
OBJMaterialProperty m_TransmissionFilter
 
OBJMaterialDissolve m_Dissolve
 
uint32_t m_IlluminationModel
 Value between 0 and 10 corresponding to an illumination model. See MTL specification for model details.
 
uint32_t m_Sharpness
 Sharpness of reflections. Higher values result in sharper reflections. Typical range of (0 - 1000); Default of 60.
 
float m_Transparency
 Optional value set by certain writers. Typically is the inverse of the 'dissolve' value.
 
float m_SpecularExponent
 Focus of the specular highlight. Higher values result in tighter highlights. Typical range (0.0 - 1000.0)
 
float m_OpticalDensity
 AKA index of refraction. Range (0.001 - 10.0). 1.0 indicates light does not bend as it passes through. Glass is 1.5.
 
OBJTextureDescriptor m_TextureAmbient
 
OBJTextureDescriptor m_TextureDiffuse
 
OBJTextureDescriptor m_TextureSpecular
 
OBJTextureDescriptor m_TextureSpecularExponent
 
OBJTextureDescriptor m_TextureEmissive
 
OBJTextureDescriptor m_TextureDissolve
 
OBJTextureDescriptor m_TextureDecal
 
OBJTextureDescriptor m_TextureDisplacement
 
OBJTextureDescriptor m_TextureBump
 
bool m_TextureAntiAliasing
 
OBJReflectionMapType m_ReflectionMapType
 
OBJTextureDescriptor m_ReflectionMapSphere
 
std::array
< OBJTextureDescriptor, 8 > 
m_ReflectionMapCube
 

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