Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes
ON_Material Class Reference

#include <opennurbs_material.h>

Inheritance diagram for ON_Material:
Inheritance graph
[legend]

List of all members.

Public Member Functions

int AddTexture (const ON_Texture &tx)
int AddTexture (const wchar_t *filename, ON_Texture::TYPE type)
ON_Color Ambient () const
int Compare (const ON_Material &other) const
void Default ()
int DeleteTexture (const wchar_t *filename, ON_Texture::TYPE type)
ON_Color Diffuse () const
void Dump (ON_TextLog &) const
ON_Color Emission () const
int FindTexture (ON_UUID texture_id) const
int FindTexture (const wchar_t *filename, ON_Texture::TYPE type, int i0=-1) const
ON_BOOL32 IsValid (ON_TextLog *text_log=NULL) const
int MaterialIndex () const
const wchar_t * MaterialName () const
ON_UUID MaterialPlugInUuid () const
ON_UUID ModelObjectId () const
ON::object_type ObjectType () const
 ON_Material ()
bool operator!= (const ON_Material &) const
bool operator== (const ON_Material &) const
ON_BOOL32 Read (ON_BinaryArchive &)
void SetAmbient (ON_Color)
void SetDiffuse (ON_Color)
void SetEmission (ON_Color)
void SetMaterialIndex (int)
void SetMaterialName (const wchar_t *)
void SetMaterialPlugInUuid (ON_UUID)
void SetShine (double)
void SetSpecular (ON_Color)
void SetTransparency (double)
double Shine () const
ON_Color Specular () const
double Transparency () const
ON_BOOL32 Write (ON_BinaryArchive &) const
 ~ON_Material ()

Static Public Member Functions

static double MaxShine ()

Public Attributes

ON_Color m_ambient
bool m_bDisableLighting
bool m_bShared
ON_Color m_diffuse
ON_Color m_emission
ON_wString m_flamingo_library
double m_index_of_refraction
ON_SimpleArray< ON_UuidIndex > m_material_channel
ON_UUID m_material_id
int m_material_index
ON_wString m_material_name
ON_UUID m_plugin_id
ON_Color m_reflection
double m_reflectivity
double m_shine
ON_Color m_specular
ON_ObjectArray< ON_Texturem_textures
double m_transparency
ON_Color m_transparent

Private Member Functions

 ON_OBJECT_DECLARE (ON_Material)
bool ReadV3Helper (ON_BinaryArchive &file, int minor_version)
bool WriteV3Helper (ON_BinaryArchive &file) const

Private Attributes

unsigned char m_reserved1 [2]

Static Private Attributes

static double m_max_shine = 255.0f

Detailed Description

Definition at line 25 of file opennurbs_material.h.


Constructor & Destructor Documentation

Definition at line 76 of file opennurbs_material.cpp.

Definition at line 81 of file opennurbs_material.cpp.


Member Function Documentation

int ON_Material::AddTexture ( const ON_Texture tx)

Definition at line 629 of file opennurbs_material.cpp.

int ON_Material::AddTexture ( const wchar_t *  filename,
ON_Texture::TYPE  type 
)

Definition at line 651 of file opennurbs_material.cpp.

Definition at line 871 of file opennurbs_material.cpp.

int ON_Material::Compare ( const ON_Material other) const

Definition at line 808 of file opennurbs_material.cpp.

Definition at line 33 of file opennurbs_material.cpp.

int ON_Material::DeleteTexture ( const wchar_t *  filename,
ON_Texture::TYPE  type 
)

Definition at line 604 of file opennurbs_material.cpp.

Definition at line 876 of file opennurbs_material.cpp.

void ON_Material::Dump ( ON_TextLog dump) const [virtual]

Reimplemented from ON_Object.

Definition at line 92 of file opennurbs_material.cpp.

Definition at line 881 of file opennurbs_material.cpp.

int ON_Material::FindTexture ( ON_UUID  texture_id) const

Definition at line 593 of file opennurbs_material.cpp.

int ON_Material::FindTexture ( const wchar_t *  filename,
ON_Texture::TYPE  type,
int  i0 = -1 
) const

Definition at line 571 of file opennurbs_material.cpp.

ON_BOOL32 ON_Material::IsValid ( ON_TextLog text_log = NULL) const [virtual]

Implements ON_Object.

Definition at line 85 of file opennurbs_material.cpp.

Definition at line 911 of file opennurbs_material.cpp.

const wchar_t * ON_Material::MaterialName ( ) const

Definition at line 921 of file opennurbs_material.cpp.

Definition at line 126 of file opennurbs_material.cpp.

double ON_Material::MaxShine ( ) [static]

Definition at line 28 of file opennurbs_material.cpp.

ON_UUID ON_Material::ModelObjectId ( ) const [virtual]

Reimplemented from ON_Object.

Definition at line 1575 of file opennurbs_object.cpp.

ON::object_type ON_Material::ObjectType ( ) const [virtual]

Reimplemented from ON_Object.

Definition at line 566 of file opennurbs_material.cpp.

bool ON_Material::operator!= ( const ON_Material src) const

Definition at line 707 of file opennurbs_material.cpp.

bool ON_Material::operator== ( const ON_Material src) const

Definition at line 702 of file opennurbs_material.cpp.

Reimplemented from ON_Object.

Definition at line 327 of file opennurbs_material.cpp.

bool ON_Material::ReadV3Helper ( ON_BinaryArchive file,
int  minor_version 
) [private]

Definition at line 443 of file opennurbs_material.cpp.

Definition at line 891 of file opennurbs_material.cpp.

Definition at line 896 of file opennurbs_material.cpp.

Definition at line 901 of file opennurbs_material.cpp.

Definition at line 916 of file opennurbs_material.cpp.

void ON_Material::SetMaterialName ( const wchar_t *  sMaterialName)

Definition at line 926 of file opennurbs_material.cpp.

Definition at line 131 of file opennurbs_material.cpp.

void ON_Material::SetShine ( double  shine)

Definition at line 676 of file opennurbs_material.cpp.

Definition at line 906 of file opennurbs_material.cpp.

void ON_Material::SetTransparency ( double  transparency)

Definition at line 692 of file opennurbs_material.cpp.

double ON_Material::Shine ( ) const

Definition at line 671 of file opennurbs_material.cpp.

Definition at line 886 of file opennurbs_material.cpp.

double ON_Material::Transparency ( ) const

Definition at line 687 of file opennurbs_material.cpp.

ON_BOOL32 ON_Material::Write ( ON_BinaryArchive file) const [virtual]

Reimplemented from ON_Object.

Definition at line 136 of file opennurbs_material.cpp.

bool ON_Material::WriteV3Helper ( ON_BinaryArchive file) const [private]

Definition at line 216 of file opennurbs_material.cpp.


Member Data Documentation

Definition at line 147 of file opennurbs_material.h.

Definition at line 166 of file opennurbs_material.h.

Definition at line 158 of file opennurbs_material.h.

Definition at line 148 of file opennurbs_material.h.

Definition at line 149 of file opennurbs_material.h.

Definition at line 144 of file opennurbs_material.h.

Definition at line 153 of file opennurbs_material.h.

Definition at line 320 of file opennurbs_material.h.

Definition at line 132 of file opennurbs_material.h.

Definition at line 139 of file opennurbs_material.h.

Definition at line 142 of file opennurbs_material.h.

double ON_Material::m_max_shine = 255.0f [static, private]

Definition at line 325 of file opennurbs_material.h.

Definition at line 322 of file opennurbs_material.h.

Definition at line 151 of file opennurbs_material.h.

Definition at line 154 of file opennurbs_material.h.

unsigned char ON_Material::m_reserved1[2] [private]

Definition at line 177 of file opennurbs_material.h.

Definition at line 155 of file opennurbs_material.h.

Definition at line 150 of file opennurbs_material.h.

Definition at line 300 of file opennurbs_material.h.

Definition at line 156 of file opennurbs_material.h.

Definition at line 152 of file opennurbs_material.h.


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


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:38:52