OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions
Exporter Class Reference

#include <exporter.hh>

Inherited by ColladaExporter, and GostExporter.

Public Types

enum  NodeType { ROOT =1, GROUP =2, OBJ =3 }
 

Public Member Functions

 Exporter ()
 
virtual ~Exporter ()
 
virtual void SceneStart (const Scene *scene)
 
virtual void SceneEnd (const Scene *scene)
 
virtual void NodeStart (const std::string &name, NodeType t)
 
virtual void NodeEnd (const std::string &name)
 
virtual void WriteVertexData (const float *v, const float *n, const float *c, const float *t, size_t stride, size_t count)
 
virtual void WritePointData (const unsigned int *i, size_t count)
 
virtual void WriteLineData (const unsigned int *ij, size_t count)
 
virtual void WriteTriData (const unsigned int *ijk, size_t count)
 
virtual void WriteQuadData (const unsigned int *ijkl, size_t count)
 
void SetScale (float s)
 
float GetScale () const
 
void SetToOrigin (bool b)
 
bool GetToOrigin () const
 
void SetupTransform (const Scene *scene)
 
void TransformPosition (float *p) const
 
void TransformNormal (float *n) const
 

Detailed Description

Definition at line 33 of file exporter.hh.

Member Enumeration Documentation

enum NodeType
Enumerator
ROOT 
GROUP 
OBJ 

Definition at line 36 of file exporter.hh.

Constructor & Destructor Documentation

Exporter ( )
inline

Definition at line 42 of file exporter.hh.

virtual ~Exporter ( )
inlinevirtual

Definition at line 46 of file exporter.hh.

Member Function Documentation

float GetScale ( ) const
inline

Definition at line 64 of file exporter.hh.

bool GetToOrigin ( ) const
inline

Definition at line 69 of file exporter.hh.

virtual void NodeEnd ( const std::string &  name)
inlinevirtual

Reimplemented in ColladaExporter, and GostExporter.

Definition at line 51 of file exporter.hh.

virtual void NodeStart ( const std::string &  name,
NodeType  t 
)
inlinevirtual

Reimplemented in ColladaExporter, and GostExporter.

Definition at line 50 of file exporter.hh.

virtual void SceneEnd ( const Scene scene)
inlinevirtual

Reimplemented in ColladaExporter, and GostExporter.

Definition at line 48 of file exporter.hh.

virtual void SceneStart ( const Scene scene)
inlinevirtual

Reimplemented in ColladaExporter, and GostExporter.

Definition at line 47 of file exporter.hh.

void SetScale ( float  s)
inline

Definition at line 63 of file exporter.hh.

void SetToOrigin ( bool  b)
inline

Definition at line 68 of file exporter.hh.

void SetupTransform ( const Scene scene)
void TransformNormal ( float *  n) const
void TransformPosition ( float *  p) const
virtual void WriteLineData ( const unsigned int *  ij,
size_t  count 
)
inlinevirtual

Reimplemented in ColladaExporter, and GostExporter.

Definition at line 58 of file exporter.hh.

virtual void WritePointData ( const unsigned int *  i,
size_t  count 
)
inlinevirtual

Reimplemented in ColladaExporter, and GostExporter.

Definition at line 57 of file exporter.hh.

virtual void WriteQuadData ( const unsigned int *  ijkl,
size_t  count 
)
inlinevirtual

Reimplemented in ColladaExporter, and GostExporter.

Definition at line 60 of file exporter.hh.

virtual void WriteTriData ( const unsigned int *  ijk,
size_t  count 
)
inlinevirtual

Reimplemented in ColladaExporter, and GostExporter.

Definition at line 59 of file exporter.hh.

virtual void WriteVertexData ( const float *  v,
const float *  n,
const float *  c,
const float *  t,
size_t  stride,
size_t  count 
)
inlinevirtual

Reimplemented in ColladaExporter, and GostExporter.

Definition at line 55 of file exporter.hh.


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