Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

MayaShader Class Reference

#include <mayaShader.h>

Inheritance diagram for MayaShader:

Namable List of all members.

Public Member Functions

 MayaShader (MObject engine)
 ~MayaShader ()
void output (ostream &out) const
void write (ostream &out) const
Colorf get_rgba () const

Public Attributes

MayaShaderColorDef _color
MayaShaderColorDef _transparency

Private Member Functions

bool read_surface_shader (MObject shader)

Constructor & Destructor Documentation

MayaShader::MayaShader MObject  engine  ) 
 

Definition at line 43 of file mayaShader.cxx.

References Namable::get_name(), read_surface_shader(), Namable::set_name(), and size_t.

MayaShader::~MayaShader  ) 
 

Definition at line 72 of file mayaShader.cxx.


Member Function Documentation

Colorf MayaShader::get_rgba  )  const
 

Definition at line 113 of file mayaShader.cxx.

References _color, MayaShaderColorDef::_flat_color, MayaShaderColorDef::_has_flat_color, _transparency, and Colorf.

Referenced by MayaToEggConverter::set_shader_attributes().

void MayaShader::output ostream &  out  )  const
 

Reimplemented from Namable.

Definition at line 81 of file mayaShader.cxx.

References Namable::get_name().

Referenced by operator<<().

bool MayaShader::read_surface_shader MObject  shader  )  [private]
 

Definition at line 143 of file mayaShader.cxx.

References _color, MayaShaderColorDef::_flat_color, MayaShaderColorDef::_has_flat_color, MayaShaderColorDef::_has_texture, _transparency, MayaShaderColorDef::read_surface_color(), and size_t.

Referenced by MayaShader().

void MayaShader::write ostream &  out  )  const
 

Definition at line 91 of file mayaShader.cxx.

References _color, _transparency, Namable::get_name(), and MayaShaderColorDef::write().


Member Data Documentation

MayaShaderColorDef MayaShader::_color
 

Definition at line 49 of file mayaShader.h.

Referenced by MayaCopy::copy_maya_file(), get_rgba(), MayaToEggConverter::make_polyset(), read_surface_shader(), MayaToEggConverter::set_shader_attributes(), and write().

MayaShaderColorDef MayaShader::_transparency
 

Definition at line 50 of file mayaShader.h.

Referenced by MayaCopy::copy_maya_file(), get_rgba(), read_surface_shader(), MayaToEggConverter::set_shader_attributes(), and write().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 01:01:17 2003 for Panda-Tool by doxygen1.3