#include <mayaShaderColorDef.h>
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 ¢roid) const |
LPoint2d | map_spherical (const LPoint3d &pos, const LPoint3d ¢roid) const |
LPoint2d | map_cylindrical (const LPoint3d &pos, const LPoint3d ¢roid) const |
Private Attributes | |
LPoint2d(MayaShaderColorDef::* | _map_uvs )(const LPoint3d &pos, const LPoint3d ¢roid) const |
MObject * | _color_object |
Friends | |
class | MayaShader |
|
Definition at line 47 of file mayaShaderColorDef.h. |
|
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. |
|
Definition at line 71 of file mayaShaderColorDef.cxx. References _color_object, and NULL. |
|
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(). |
|
Definition at line 104 of file mayaShaderColorDef.cxx. References _projection_type, and PT_off. Referenced by MayaToEggConverter::make_polyset(). |
|
Definition at line 378 of file mayaShaderColorDef.cxx. References _u_angle, c, nassertr, and rad_2_deg(). Referenced by set_projection_type(). |
|
Definition at line 316 of file mayaShaderColorDef.cxx. Referenced by set_projection_type(). |
|
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(). |
|
Definition at line 119 of file mayaShaderColorDef.cxx. References _map_uvs, _projection_matrix, nassertr, and NULL. Referenced by MayaToEggConverter::make_polyset(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
Definition at line 97 of file mayaShaderColorDef.h. |
|
Definition at line 61 of file mayaShaderColorDef.h. Referenced by MayaShaderColorDef(), read_surface_color(), MayaToEggConverter::set_shader_attributes(), and write(). |
|
Definition at line 95 of file mayaShaderColorDef.h. Referenced by MayaShaderColorDef(), read_surface_color(), reset_maya_texture(), and ~MayaShaderColorDef(). |
|
Definition at line 71 of file mayaShaderColorDef.h. Referenced by compute_texture_matrix(), MayaShaderColorDef(), read_surface_color(), and write(). |
|
Definition at line 64 of file mayaShaderColorDef.h. Referenced by MayaShader::get_rgba(), MayaShaderColorDef(), MayaShader::read_surface_shader(), and write(). |
|
Definition at line 63 of file mayaShaderColorDef.h. Referenced by MayaShader::get_rgba(), MayaShaderColorDef(), and MayaShader::read_surface_shader(). |
|
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(). |
|
Referenced by MayaShaderColorDef(), project_uv(), and set_projection_type(). |
|
Definition at line 75 of file mayaShaderColorDef.h. Referenced by MayaShaderColorDef(), read_surface_color(), and write(). |
|
Definition at line 81 of file mayaShaderColorDef.h. Referenced by compute_texture_matrix(), MayaShaderColorDef(), read_surface_color(), and write(). |
|
Definition at line 67 of file mayaShaderColorDef.h. Referenced by project_uv(), read_surface_color(), and set_projection_type(). |
|
Definition at line 66 of file mayaShaderColorDef.h. Referenced by has_projection(), MayaShaderColorDef(), and set_projection_type(). |
|
Definition at line 80 of file mayaShaderColorDef.h. Referenced by compute_texture_matrix(), MayaShaderColorDef(), read_surface_color(), and write(). |
|
Definition at line 73 of file mayaShaderColorDef.h. Referenced by compute_texture_matrix(), MayaShaderColorDef(), read_surface_color(), and write(). |
|
Definition at line 82 of file mayaShaderColorDef.h. Referenced by MayaShaderColorDef(), read_surface_color(), and write(). |
|
Definition at line 76 of file mayaShaderColorDef.h. Referenced by MayaShaderColorDef(), read_surface_color(), and write(). |
|
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(). |
|
Definition at line 72 of file mayaShaderColorDef.h. Referenced by compute_texture_matrix(), MayaShaderColorDef(), read_surface_color(), and write(). |
|
Definition at line 68 of file mayaShaderColorDef.h. Referenced by map_cylindrical(), map_spherical(), and read_surface_color(). |
|
Definition at line 69 of file mayaShaderColorDef.h. Referenced by map_spherical(), and read_surface_color(). |
|
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(). |
|
Definition at line 78 of file mayaShaderColorDef.h. Referenced by MayaToEggConverter::apply_texture_properties(), MayaToEggConverter::compare_texture_properties(), MayaShaderColorDef(), read_surface_color(), and write(). |