Panda3D
|
This class is a wrapper around LwoPoints and stores additional information useful during the conversion-to-egg process. More...
#include "cLwoPoints.h"
Public Types | |
typedef pmap< std::string, const LwoVertexMap * > | VMap |
Public Member Functions | |
CLwoPoints (LwoToEggConverter *converter, const LwoPoints *points, CLwoLayer *layer) | |
void | add_vmap (const LwoVertexMap *lwo_vmap) |
Associates the indicated VertexMap with the points set. | |
void | connect_egg () |
Connects all the egg structures together. | |
CPT (LwoPoints) _points | |
bool | get_uv (const std::string &uv_name, int n, LPoint2 &uv) const |
Returns true if there is a UV of the indicated name associated with the given vertex, false otherwise. | |
void | make_egg () |
Creates the egg structures associated with this Lightwave object. | |
PT (EggVertexPool) _egg_vpool | |
Public Attributes | |
LwoToEggConverter * | _converter |
CLwoLayer * | _layer |
VMap | _pick |
VMap | _txuv |
This class is a wrapper around LwoPoints and stores additional information useful during the conversion-to-egg process.
Definition at line 33 of file cLwoPoints.h.
typedef pmap<std::string, const LwoVertexMap *> CLwoPoints::VMap |
Definition at line 51 of file cLwoPoints.h.
|
inline |
Definition at line 17 of file cLwoPoints.I.
void CLwoPoints::add_vmap | ( | const LwoVertexMap * | lwo_vmap | ) |
Associates the indicated VertexMap with the points set.
This may define such niceties as UV coordinates or per-vertex color.
Definition at line 26 of file cLwoPoints.cxx.
void CLwoPoints::connect_egg | ( | ) |
Connects all the egg structures together.
Definition at line 92 of file cLwoPoints.cxx.
bool CLwoPoints::get_uv | ( | const std::string & | uv_name, |
int | n, | ||
LPoint2 & | uv ) const |
Returns true if there is a UV of the indicated name associated with the given vertex, false otherwise.
If true, fills in uv with the value.
Definition at line 54 of file cLwoPoints.cxx.
References LwoVertexMap::get_value(), and LwoVertexMap::has_value().
void CLwoPoints::make_egg | ( | ) |
Creates the egg structures associated with this Lightwave object.
Definition at line 81 of file cLwoPoints.cxx.
References CLwoLayer::get_number().
LwoToEggConverter* CLwoPoints::_converter |
Definition at line 44 of file cLwoPoints.h.
CLwoLayer* CLwoPoints::_layer |
Definition at line 46 of file cLwoPoints.h.
VMap CLwoPoints::_pick |
Definition at line 53 of file cLwoPoints.h.
VMap CLwoPoints::_txuv |
Definition at line 52 of file cLwoPoints.h.