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

CLwoSurface Class Reference

#include <cLwoSurface.h>

List of all members.

Public Types

enum  Flags {
  F_rgb = 0x0001, F_diffuse = 0x0002, F_luminosity = 0x0004, F_specular = 0x0008,
  F_reflection = 0x0010, F_transparency = 0x0020, F_gloss = 0x0040, F_translucency = 0x0080,
  F_smooth_angle = 0x0100, F_backface = 0x0200
}

Public Member Functions

 CLwoSurface (LwoToEggConverter *converter, const LwoSurface *surface)
 ~CLwoSurface ()
INLINE const string & get_name () const
void apply_properties (EggPrimitive *egg_prim, vector_PT_EggVertex &egg_vertices, float &smooth_angle)
bool check_texture ()
bool check_material ()
INLINE bool has_named_uvs () const
INLINE const string & get_uv_name () const
 CPT (LwoSurface) _surface

Public Attributes

int _flags
RGBColorf _rgb
float _diffuse
float _luminosity
float _specular
float _reflection
float _transparency
float _gloss
float _translucency
float _smooth_angle
bool _backface
Colorf _color
Colorf _diffuse_color
LwoToEggConverter_converter
bool _checked_material
PT_EggMaterial _egg_material
bool _checked_texture
PT_EggTexture _egg_texture
CLwoSurfaceBlock_block

Private Member Functions

void generate_uvs (vector_PT_EggVertex &egg_vertices)
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
LPoint2d map_cubic (const LPoint3d &pos, const LPoint3d &centroid) const

Private Attributes

LPoint2d(CLwoSurface::* _map_uvs )(const LPoint3d &pos, const LPoint3d &centroid) const


Member Enumeration Documentation

enum CLwoSurface::Flags
 

Enumeration values:
F_rgb 
F_diffuse 
F_luminosity 
F_specular 
F_reflection 
F_transparency 
F_gloss 
F_translucency 
F_smooth_angle 
F_backface 

Definition at line 63 of file cLwoSurface.h.


Constructor & Destructor Documentation

CLwoSurface::CLwoSurface LwoToEggConverter converter,
const LwoSurface surface
 

Definition at line 41 of file cLwoSurface.cxx.

References LwoSurfaceSmoothingAngle::_angle, _backface, _block, _checked_material, _checked_texture, _color, LwoSurfaceColor::_color, _converter, _diffuse, _diffuse_color, _flags, _gloss, _luminosity, _map_uvs, CLwoSurfaceBlock::_ordinal, _reflection, _rgb, LwoSurfaceSidedness::_sidedness, _smooth_angle, _specular, _translucency, _transparency, block, DCAST, F_backface, F_diffuse, F_gloss, F_luminosity, F_reflection, F_rgb, F_smooth_angle, F_specular, F_translucency, F_transparency, LwoGroupChunk::get_class_type(), LwoSurfaceSidedness::get_class_type(), LwoSurfaceSmoothingAngle::get_class_type(), LwoSurfaceParameter::get_class_type(), LwoSurfaceColor::get_class_type(), TypedObject::is_of_type(), NULL, param, LwoSurfaceSidedness::S_front_and_back, and type.

CLwoSurface::~CLwoSurface  ) 
 

Definition at line 157 of file cLwoSurface.cxx.

References _block, and NULL.


Member Function Documentation

void CLwoSurface::apply_properties EggPrimitive egg_prim,
vector_PT_EggVertex &  egg_vertices,
float &  smooth_angle
 

Definition at line 174 of file cLwoSurface.cxx.

References _backface, _converter, _diffuse_color, _egg_material, _egg_texture, _flags, _smooth_angle, check_material(), check_texture(), F_backface, F_smooth_angle, generate_uvs(), LwoToEggConverter::get_surface(), NULL, EggPrimitive::set_bface_flag(), EggAttributes::set_color(), EggPrimitive::set_material(), and EggPrimitive::set_texture().

Referenced by CLwoPolygons::make_faces().

bool CLwoSurface::check_material  ) 
 

Definition at line 301 of file cLwoSurface.cxx.

References _checked_material, _color, _converter, _diffuse, _diffuse_color, _egg_material, _flags, _gloss, _luminosity, LwoToEggConverter::_make_materials, _specular, Colorf, F_diffuse, F_gloss, F_luminosity, F_specular, get_name(), and NULL.

Referenced by apply_properties().

bool CLwoSurface::check_texture  ) 
 

Definition at line 221 of file cLwoSurface.cxx.

References _block, _checked_texture, CLwoSurfaceBlock::_clip_index, _color, _converter, _egg_texture, CLwoClip::_filename, _map_uvs, CLwoSurfaceBlock::_projection_mode, SomethingToEggConverter::convert_texture_path(), format_string(), LwoToEggConverter::get_clip(), CLwoClip::is_still_image(), LwoSurfaceBlockProjection::M_cubic, LwoSurfaceBlockProjection::M_cylindrical, LwoSurfaceBlockProjection::M_front, LwoSurfaceBlockProjection::M_planar, LwoSurfaceBlockProjection::M_spherical, LwoSurfaceBlockProjection::M_uv, map_cubic(), map_cylindrical(), map_planar(), map_spherical(), nout, and NULL.

Referenced by apply_properties().

CLwoSurface::CPT LwoSurface   ) 
 

void CLwoSurface::generate_uvs vector_PT_EggVertex &  egg_vertices  )  [private]
 

Definition at line 361 of file cLwoSurface.cxx.

References _block, CLwoSurfaceBlock::_inv_transform, _map_uvs, EggVertex::get_pos3(), NULL, and EggAttributes::set_uv().

Referenced by apply_properties().

INLINE const string& CLwoSurface::get_name  )  const
 

Referenced by check_material(), and LwoToEggConverter::collect_lwo().

INLINE const string& CLwoSurface::get_uv_name  )  const
 

Referenced by CLwoPolygons::make_faces().

INLINE bool CLwoSurface::has_named_uvs  )  const
 

Referenced by CLwoPolygons::make_faces().

LPoint2d CLwoSurface::map_cubic const LPoint3d &  pos,
const LPoint3d &  centroid
const [private]
 

Definition at line 499 of file cLwoSurface.cxx.

References v, x, y, and z.

Referenced by check_texture().

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

Definition at line 463 of file cLwoSurface.cxx.

References _block, CLwoSurfaceBlock::_w_repeat, MathNumbers::pi, v, and zero.

Referenced by check_texture().

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

Definition at line 396 of file cLwoSurface.cxx.

References v.

Referenced by check_texture().

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

Definition at line 412 of file cLwoSurface.cxx.

References _block, CLwoSurfaceBlock::_h_repeat, CLwoSurfaceBlock::_w_repeat, MathNumbers::pi, v, and zero.

Referenced by check_texture().


Member Data Documentation

bool CLwoSurface::_backface
 

Definition at line 86 of file cLwoSurface.h.

Referenced by apply_properties(), and CLwoSurface().

CLwoSurfaceBlock* CLwoSurface::_block
 

Definition at line 100 of file cLwoSurface.h.

Referenced by check_texture(), CLwoSurface(), generate_uvs(), map_cylindrical(), map_spherical(), and ~CLwoSurface().

bool CLwoSurface::_checked_material
 

Definition at line 94 of file cLwoSurface.h.

Referenced by check_material(), and CLwoSurface().

bool CLwoSurface::_checked_texture
 

Definition at line 97 of file cLwoSurface.h.

Referenced by check_texture(), and CLwoSurface().

Colorf CLwoSurface::_color
 

Definition at line 88 of file cLwoSurface.h.

Referenced by check_material(), check_texture(), and CLwoSurface().

LwoToEggConverter* CLwoSurface::_converter
 

Definition at line 91 of file cLwoSurface.h.

Referenced by apply_properties(), check_material(), check_texture(), and CLwoSurface().

float CLwoSurface::_diffuse
 

Definition at line 78 of file cLwoSurface.h.

Referenced by check_material(), and CLwoSurface().

Colorf CLwoSurface::_diffuse_color
 

Definition at line 89 of file cLwoSurface.h.

Referenced by apply_properties(), check_material(), and CLwoSurface().

PT_EggMaterial CLwoSurface::_egg_material
 

Definition at line 95 of file cLwoSurface.h.

Referenced by apply_properties(), and check_material().

PT_EggTexture CLwoSurface::_egg_texture
 

Definition at line 98 of file cLwoSurface.h.

Referenced by apply_properties(), and check_texture().

int CLwoSurface::_flags
 

Definition at line 76 of file cLwoSurface.h.

Referenced by apply_properties(), check_material(), and CLwoSurface().

float CLwoSurface::_gloss
 

Definition at line 83 of file cLwoSurface.h.

Referenced by check_material(), and CLwoSurface().

float CLwoSurface::_luminosity
 

Definition at line 79 of file cLwoSurface.h.

Referenced by check_material(), and CLwoSurface().

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

Referenced by check_texture(), CLwoSurface(), and generate_uvs().

float CLwoSurface::_reflection
 

Definition at line 81 of file cLwoSurface.h.

Referenced by CLwoSurface().

RGBColorf CLwoSurface::_rgb
 

Definition at line 77 of file cLwoSurface.h.

Referenced by CLwoSurface().

float CLwoSurface::_smooth_angle
 

Definition at line 85 of file cLwoSurface.h.

Referenced by apply_properties(), and CLwoSurface().

float CLwoSurface::_specular
 

Definition at line 80 of file cLwoSurface.h.

Referenced by check_material(), and CLwoSurface().

float CLwoSurface::_translucency
 

Definition at line 84 of file cLwoSurface.h.

Referenced by CLwoSurface().

float CLwoSurface::_transparency
 

Definition at line 82 of file cLwoSurface.h.

Referenced by CLwoSurface().


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