Blender V2.61 - r43446
Classes | Public Member Functions

GeometryExporter Class Reference

#include <GeometryExporter.h>

List of all members.

Classes

struct  Face
struct  Normal

Public Member Functions

 GeometryExporter (COLLADASW::StreamWriter *sw, const ExportSettings *export_settings)
void exportGeom (Scene *sce)
void operator() (Object *ob)
void createPolylist (short material_index, bool has_uvs, bool has_color, Object *ob, std::string &geom_id, std::vector< Face > &norind)
void createVertsSource (std::string geom_id, Mesh *me)
void createVertexColorSource (std::string geom_id, Mesh *me)
std::string makeTexcoordSourceId (std::string &geom_id, int layer_index)
void createTexcoordsSource (std::string geom_id, Mesh *me)
void createNormalsSource (std::string geom_id, Mesh *me, std::vector< Normal > &nor)
void create_normals (std::vector< Normal > &nor, std::vector< Face > &ind, Mesh *me)
std::string getIdBySemantics (std::string geom_id, COLLADASW::InputSemantic::Semantics type, std::string other_suffix="")
COLLADASW::URI getUrlBySemantics (std::string geom_id, COLLADASW::InputSemantic::Semantics type, std::string other_suffix="")
COLLADASW::URI makeUrl (std::string id)

Detailed Description

Definition at line 46 of file GeometryExporter.h.


Constructor & Destructor Documentation

GeometryExporter::GeometryExporter ( COLLADASW::StreamWriter *  sw,
const ExportSettings export_settings 
)

Definition at line 45 of file GeometryExporter.cpp.


Member Function Documentation

void GeometryExporter::create_normals ( std::vector< Normal > &  nor,
std::vector< Face > &  ind,
Mesh me 
)
void GeometryExporter::createNormalsSource ( std::string  geom_id,
Mesh me,
std::vector< Normal > &  nor 
)

Definition at line 380 of file GeometryExporter.cpp.

References getIdBySemantics(), NORMAL, and Normal.

Referenced by operator()().

void GeometryExporter::createPolylist ( short  material_index,
bool  has_uvs,
bool  has_color,
Object ob,
std::string &  geom_id,
std::vector< Face > &  norind 
)
void GeometryExporter::createTexcoordsSource ( std::string  geom_id,
Mesh me 
)
void GeometryExporter::createVertexColorSource ( std::string  geom_id,
Mesh me 
)
void GeometryExporter::createVertsSource ( std::string  geom_id,
Mesh me 
)

Definition at line 245 of file GeometryExporter.cpp.

References co, getIdBySemantics(), i, Mesh::mvert, and Mesh::totvert.

Referenced by operator()().

void GeometryExporter::exportGeom ( Scene sce)
std::string GeometryExporter::getIdBySemantics ( std::string  geom_id,
COLLADASW::InputSemantic::Semantics  type,
std::string  other_suffix = "" 
)
COLLADASW::URI GeometryExporter::getUrlBySemantics ( std::string  geom_id,
COLLADASW::InputSemantic::Semantics  type,
std::string  other_suffix = "" 
)

Definition at line 464 of file GeometryExporter.cpp.

References getIdBySemantics().

Referenced by createPolylist(), and operator()().

std::string GeometryExporter::makeTexcoordSourceId ( std::string &  geom_id,
int  layer_index 
)

Definition at line 313 of file GeometryExporter.cpp.

References getIdBySemantics().

Referenced by createPolylist(), and createTexcoordsSource().

COLLADASW::URI GeometryExporter::makeUrl ( std::string  id)

Definition at line 471 of file GeometryExporter.cpp.

Referenced by createPolylist().

void GeometryExporter::operator() ( Object ob)

The documentation for this class was generated from the following files: