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

MayaShaderColorDef Class Reference

#include <mayaShaderColorDef.h>

List of all members.

Public Types

enum  ProjectionType {
  PT_off, PT_planar, PT_spherical, PT_cylindrical,
  PT_ball, PT_cubic, PT_triplanar, PT_concentric,
  PT_perspective
}

Public Member Functions

 MayaShaderColorDef ()
 ~MayaShaderColorDef ()
LMatrix3d compute_texture_matrix () const
bool has_projection () const
TexCoordd project_uv (const LPoint3d &pos, const LPoint3d &ref_point) const
bool reset_maya_texture (const Filename &texture)
void write (ostream &out) const

Public Attributes

bool _has_texture
Filename _texture
RGBColorf _color_gain
bool _has_flat_color
Colord _flat_color
ProjectionType _projection_type
LMatrix4d _projection_matrix
double _u_angle
double _v_angle
LVector2f _coverage
LVector2f _translate_frame
double _rotate_frame
bool _mirror
bool _stagger
bool _wrap_u
bool _wrap_v
LVector2f _repeat_uv
LVector2f _offset
double _rotate_uv

Private Member Functions

void read_surface_color (MObject color)
void set_projection_type (const string &type)
LPoint2d map_planar (const LPoint3d &pos, const LPoint3d &centroid) const
LPoint2d map_spherical (const LPoint3d &pos, const LPoint3d &centroid) const
LPoint2d map_cylindrical (const LPoint3d &pos, const LPoint3d &centroid) const

Private Attributes

LPoint2d(MayaShaderColorDef::* _map_uvs )(const LPoint3d &pos, const LPoint3d &centroid) const
MObject * _color_object

Friends

class MayaShader


Member Enumeration Documentation

enum MayaShaderColorDef::ProjectionType
 

Enumeration values:
PT_off 
PT_planar 
PT_spherical 
PT_cylindrical 
PT_ball 
PT_cubic 
PT_triplanar 
PT_concentric 
PT_perspective 

Definition at line 47 of file mayaShaderColorDef.h.


Constructor & Destructor Documentation

MayaShaderColorDef::MayaShaderColorDef  ) 
 

Definition at line 39 of file mayaShaderColorDef.cxx.

References _color_gain, _color_object, _coverage, _flat_color, _has_flat_color, _has_texture, _map_uvs, _mirror, _offset, _projection_type, _repeat_uv, _rotate_frame, _rotate_uv, _stagger, _translate_frame, _wrap_u, _wrap_v, NULL, and PT_off.

MayaShaderColorDef::~MayaShaderColorDef  ) 
 

Definition at line 71 of file mayaShaderColorDef.cxx.

References _color_object, and NULL.


Member Function Documentation

LMatrix3d MayaShaderColorDef::compute_texture_matrix  )  const
 

Definition at line 84 of file mayaShaderColorDef.cxx.

References _coverage, _offset, _repeat_uv, _rotate_frame, _translate_frame, and scale.

Referenced by MayaToEggConverter::apply_texture_properties(), and MayaToEggConverter::compare_texture_properties().

bool MayaShaderColorDef::has_projection  )  const
 

Definition at line 104 of file mayaShaderColorDef.cxx.

References _projection_type, and PT_off.

Referenced by MayaToEggConverter::make_polyset().

LPoint2d MayaShaderColorDef::map_cylindrical const LPoint3d &  pos,
const LPoint3d &  centroid
const [private]
 

Definition at line 378 of file mayaShaderColorDef.cxx.

References _u_angle, c, nassertr, and rad_2_deg().

Referenced by set_projection_type().

LPoint2d MayaShaderColorDef::map_planar const LPoint3d &  pos,
const LPoint3d &  centroid
const [private]
 

Definition at line 316 of file mayaShaderColorDef.cxx.

Referenced by set_projection_type().

LPoint2d MayaShaderColorDef::map_spherical const LPoint3d &  pos,
const LPoint3d &  centroid
const [private]
 

Definition at line 329 of file mayaShaderColorDef.cxx.

References _u_angle, _v_angle, c, nassertr, rad_2_deg(), and v.

Referenced by set_projection_type().

TexCoordd MayaShaderColorDef::project_uv const LPoint3d &  pos,
const LPoint3d &  ref_point
const
 

Definition at line 119 of file mayaShaderColorDef.cxx.

References _map_uvs, _projection_matrix, nassertr, and NULL.

Referenced by MayaToEggConverter::make_polyset().

void MayaShaderColorDef::read_surface_color MObject  color  )  [private]
 

Definition at line 184 of file mayaShaderColorDef.cxx.

References _color_gain, _color_object, _coverage, _has_texture, _mirror, _offset, _projection_matrix, _repeat_uv, _rotate_frame, _rotate_uv, _stagger, _texture, _translate_frame, _u_angle, _v_angle, _wrap_u, _wrap_v, Filename::from_os_specific(), get_angle_attribute(), get_bool_attribute(), get_enum_attribute(), get_mat4d_attribute(), get_string_attribute(), get_vec2f_attribute(), get_vec3f_attribute(), RGBColorf, set_projection_type(), size_t, and type.

Referenced by MayaShader::read_surface_shader().

bool MayaShaderColorDef::reset_maya_texture const Filename texture  ) 
 

Definition at line 157 of file mayaShaderColorDef.cxx.

References _color_object, _has_texture, _texture, NULL, set_string_attribute(), and texture.

Referenced by MayaCopy::extract_texture().

void MayaShaderColorDef::set_projection_type const string &  type  )  [private]
 

Definition at line 272 of file mayaShaderColorDef.cxx.

References _map_uvs, _projection_matrix, _projection_type, cmp_nocase(), map_cylindrical(), map_planar(), map_spherical(), NULL, PT_cylindrical, PT_off, PT_planar, PT_spherical, and type.

Referenced by read_surface_color().

void MayaShaderColorDef::write ostream &  out  )  const
 

Definition at line 130 of file mayaShaderColorDef.cxx.

References _color_gain, _coverage, _flat_color, _mirror, _offset, _repeat_uv, _rotate_frame, _rotate_uv, _stagger, _texture, _translate_frame, _wrap_u, and _wrap_v.

Referenced by MayaShader::write().


Friends And Related Function Documentation

friend class MayaShader [friend]
 

Definition at line 97 of file mayaShaderColorDef.h.


Member Data Documentation

RGBColorf MayaShaderColorDef::_color_gain
 

Definition at line 61 of file mayaShaderColorDef.h.

Referenced by MayaShaderColorDef(), read_surface_color(), MayaToEggConverter::set_shader_attributes(), and write().

MObject* MayaShaderColorDef::_color_object [private]
 

Definition at line 95 of file mayaShaderColorDef.h.

Referenced by MayaShaderColorDef(), read_surface_color(), reset_maya_texture(), and ~MayaShaderColorDef().

LVector2f MayaShaderColorDef::_coverage
 

Definition at line 71 of file mayaShaderColorDef.h.

Referenced by compute_texture_matrix(), MayaShaderColorDef(), read_surface_color(), and write().

Colord MayaShaderColorDef::_flat_color
 

Definition at line 64 of file mayaShaderColorDef.h.

Referenced by MayaShader::get_rgba(), MayaShaderColorDef(), MayaShader::read_surface_shader(), and write().

bool MayaShaderColorDef::_has_flat_color
 

Definition at line 63 of file mayaShaderColorDef.h.

Referenced by MayaShader::get_rgba(), MayaShaderColorDef(), and MayaShader::read_surface_shader().

bool MayaShaderColorDef::_has_texture
 

Definition at line 59 of file mayaShaderColorDef.h.

Referenced by MayaCopy::extract_texture(), MayaToEggConverter::make_polyset(), MayaShaderColorDef(), read_surface_color(), MayaShader::read_surface_shader(), reset_maya_texture(), and MayaToEggConverter::set_shader_attributes().

LPoint2d(MayaShaderColorDef::* MayaShaderColorDef::_map_uvs)(const LPoint3d &pos, const LPoint3d &centroid) const [private]
 

Referenced by MayaShaderColorDef(), project_uv(), and set_projection_type().

bool MayaShaderColorDef::_mirror
 

Definition at line 75 of file mayaShaderColorDef.h.

Referenced by MayaShaderColorDef(), read_surface_color(), and write().

LVector2f MayaShaderColorDef::_offset
 

Definition at line 81 of file mayaShaderColorDef.h.

Referenced by compute_texture_matrix(), MayaShaderColorDef(), read_surface_color(), and write().

LMatrix4d MayaShaderColorDef::_projection_matrix
 

Definition at line 67 of file mayaShaderColorDef.h.

Referenced by project_uv(), read_surface_color(), and set_projection_type().

ProjectionType MayaShaderColorDef::_projection_type
 

Definition at line 66 of file mayaShaderColorDef.h.

Referenced by has_projection(), MayaShaderColorDef(), and set_projection_type().

LVector2f MayaShaderColorDef::_repeat_uv
 

Definition at line 80 of file mayaShaderColorDef.h.

Referenced by compute_texture_matrix(), MayaShaderColorDef(), read_surface_color(), and write().

double MayaShaderColorDef::_rotate_frame
 

Definition at line 73 of file mayaShaderColorDef.h.

Referenced by compute_texture_matrix(), MayaShaderColorDef(), read_surface_color(), and write().

double MayaShaderColorDef::_rotate_uv
 

Definition at line 82 of file mayaShaderColorDef.h.

Referenced by MayaShaderColorDef(), read_surface_color(), and write().

bool MayaShaderColorDef::_stagger
 

Definition at line 76 of file mayaShaderColorDef.h.

Referenced by MayaShaderColorDef(), read_surface_color(), and write().

Filename MayaShaderColorDef::_texture
 

Definition at line 60 of file mayaShaderColorDef.h.

Referenced by MayaCopy::extract_texture(), read_surface_color(), reset_maya_texture(), MayaToEggConverter::set_shader_attributes(), and write().

LVector2f MayaShaderColorDef::_translate_frame
 

Definition at line 72 of file mayaShaderColorDef.h.

Referenced by compute_texture_matrix(), MayaShaderColorDef(), read_surface_color(), and write().

double MayaShaderColorDef::_u_angle
 

Definition at line 68 of file mayaShaderColorDef.h.

Referenced by map_cylindrical(), map_spherical(), and read_surface_color().

double MayaShaderColorDef::_v_angle
 

Definition at line 69 of file mayaShaderColorDef.h.

Referenced by map_spherical(), and read_surface_color().

bool MayaShaderColorDef::_wrap_u
 

Definition at line 77 of file mayaShaderColorDef.h.

Referenced by MayaToEggConverter::apply_texture_properties(), MayaToEggConverter::compare_texture_properties(), MayaShaderColorDef(), read_surface_color(), MayaToEggConverter::set_shader_attributes(), and write().

bool MayaShaderColorDef::_wrap_v
 

Definition at line 78 of file mayaShaderColorDef.h.

Referenced by MayaToEggConverter::apply_texture_properties(), MayaToEggConverter::compare_texture_properties(), MayaShaderColorDef(), read_surface_color(), 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