SOFA API  3ea83cbd
Open source framework for multi-physics simuation
vrender::Exporter Class Referenceabstract

#include <Exporter.h>

Inheritance diagram for vrender::Exporter:

Protected Attributes

float _clearR
 
float _clearG
 
float _clearB
 
float _pointSize
 
float _lineWidth
 
GLfloat _xmin
 
GLfloat _xmax
 
GLfloat _ymin
 
GLfloat _ymax
 
GLfloat _zmin
 
GLfloat _zmax
 
bool _clearBG
 
bool _blackAndWhite
 

Public Member Functions

 Exporter ()
 
virtual ~Exporter ()
 
virtual void exportToFile (const QString &filename, const std::vector< PtrPrimitive > &, VRenderParams &)
 
void setBoundingBox (float xmin, float ymin, float xmax, float ymax)
 
void setClearColor (float r, float g, float b)
 
void setClearBackground (bool b)
 
void setBlackAndWhite (bool b)
 

Protected Member Functions

virtual void spewPoint (const Point *, QTextStream &out)=0
 
virtual void spewSegment (const Segment *, QTextStream &out)=0
 
virtual void spewPolygone (const Polygone *, QTextStream &out)=0
 
virtual void writeHeader (QTextStream &out) const =0
 
virtual void writeFooter (QTextStream &out) const =0
 

Attribute details

◆ _blackAndWhite

bool vrender::Exporter::_blackAndWhite
protected

◆ _clearB

float vrender::Exporter::_clearB
protected

◆ _clearBG

bool vrender::Exporter::_clearBG
protected

◆ _clearG

float vrender::Exporter::_clearG
protected

◆ _clearR

float vrender::Exporter::_clearR
protected

◆ _lineWidth

float vrender::Exporter::_lineWidth
protected

◆ _pointSize

float vrender::Exporter::_pointSize
protected

◆ _xmax

GLfloat vrender::Exporter::_xmax
protected

◆ _xmin

GLfloat vrender::Exporter::_xmin
protected

◆ _ymax

GLfloat vrender::Exporter::_ymax
protected

◆ _ymin

GLfloat vrender::Exporter::_ymin
protected

◆ _zmax

GLfloat vrender::Exporter::_zmax
protected

◆ _zmin

GLfloat vrender::Exporter::_zmin
protected

Constructor details

◆ Exporter()

Exporter::Exporter ( )

◆ ~Exporter()

virtual vrender::Exporter::~Exporter ( )
inlinevirtual

Function details

◆ exportToFile()

void Exporter::exportToFile ( const QString &  filename,
const std::vector< PtrPrimitive > &  primitive_tab,
VRenderParams vparams 
)
virtual

◆ setBlackAndWhite()

void Exporter::setBlackAndWhite ( bool  b)

◆ setBoundingBox()

void Exporter::setBoundingBox ( float  xmin,
float  ymin,
float  xmax,
float  ymax 
)

◆ setClearBackground()

void Exporter::setClearBackground ( bool  b)

◆ setClearColor()

void Exporter::setClearColor ( float  r,
float  g,
float  b 
)

◆ spewPoint()

virtual void vrender::Exporter::spewPoint ( const Point ,
QTextStream &  out 
)
protectedpure virtual

◆ spewPolygone()

virtual void vrender::Exporter::spewPolygone ( const Polygone ,
QTextStream &  out 
)
protectedpure virtual

◆ spewSegment()

virtual void vrender::Exporter::spewSegment ( const Segment ,
QTextStream &  out 
)
protectedpure virtual

◆ writeFooter()

virtual void vrender::Exporter::writeFooter ( QTextStream &  out) const
protectedpure virtual

◆ writeHeader()

virtual void vrender::Exporter::writeHeader ( QTextStream &  out) const
protectedpure virtual