OpenStructure
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

◆ NodeType

enum NodeType
Enumerator
ROOT 
GROUP 
OBJ 

Definition at line 36 of file exporter.hh.

Constructor & Destructor Documentation

◆ Exporter()

Exporter ( )
inline

Definition at line 42 of file exporter.hh.

◆ ~Exporter()

virtual ~Exporter ( )
inlinevirtual

Definition at line 46 of file exporter.hh.

Member Function Documentation

◆ GetScale()

float GetScale ( ) const
inline

Definition at line 64 of file exporter.hh.

◆ GetToOrigin()

bool GetToOrigin ( ) const
inline

Definition at line 69 of file exporter.hh.

◆ NodeEnd()

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

Reimplemented in GostExporter, and ColladaExporter.

Definition at line 51 of file exporter.hh.

◆ NodeStart()

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

Reimplemented in GostExporter, and ColladaExporter.

Definition at line 50 of file exporter.hh.

◆ SceneEnd()

virtual void SceneEnd ( const Scene scene)
inlinevirtual

Reimplemented in GostExporter, and ColladaExporter.

Definition at line 48 of file exporter.hh.

◆ SceneStart()

virtual void SceneStart ( const Scene scene)
inlinevirtual

Reimplemented in GostExporter, and ColladaExporter.

Definition at line 47 of file exporter.hh.

◆ SetScale()

void SetScale ( float  s)
inline

Definition at line 63 of file exporter.hh.

◆ SetToOrigin()

void SetToOrigin ( bool  b)
inline

Definition at line 68 of file exporter.hh.

◆ SetupTransform()

void SetupTransform ( const Scene scene)

◆ TransformNormal()

void TransformNormal ( float *  n) const

◆ TransformPosition()

void TransformPosition ( float *  p) const

◆ WriteLineData()

virtual void WriteLineData ( const unsigned int *  ij,
size_t  count 
)
inlinevirtual

Reimplemented in GostExporter, and ColladaExporter.

Definition at line 58 of file exporter.hh.

◆ WritePointData()

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

Reimplemented in GostExporter, and ColladaExporter.

Definition at line 57 of file exporter.hh.

◆ WriteQuadData()

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

Reimplemented in GostExporter, and ColladaExporter.

Definition at line 60 of file exporter.hh.

◆ WriteTriData()

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

Reimplemented in GostExporter, and ColladaExporter.

Definition at line 59 of file exporter.hh.

◆ WriteVertexData()

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

Reimplemented in GostExporter, and ColladaExporter.

Definition at line 55 of file exporter.hh.


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