45 #ifndef _VRENDER_EXPORTER_H 46 #define _VRENDER_EXPORTER_H 52 #include "../config.h" 53 #if QT_VERSION >= 0x040000 54 # include <QTextStream> 57 # include <qtextstream.h> 82 virtual void writeHeader(QTextStream& out)
const = 0 ;
83 virtual void writeFooter(QTextStream& out)
const = 0 ;
111 void setColor(QTextStream& out,
float,
float,
float) ;
114 static const char *GOURAUD_TRIANGLE_EPS[] ;
152 int FigCoordX(
double)
const ;
153 int FigCoordY(
double)
const ;
154 int FigGrayScaleIndex(
float red,
float green,
float blue)
const ;
void setClearColor(float r, float g, float b)
void setClearBackground(bool b)
virtual void spewPoint(const Point *, QTextStream &out)=0
virtual void writeHeader(QTextStream &out) const =0
static const char * CREATOR
void setBoundingBox(float xmin, float ymin, float xmax, float ymax)
void setBlackAndWhite(bool b)
virtual void spewSegment(const Segment *, QTextStream &out)=0
virtual void spewPolygone(const Polygone *, QTextStream &out)=0
static const double EPS_GOURAUD_THRESHOLD
virtual void exportToFile(const QString &filename, const std::vector< PtrPrimitive > &, VRenderParams &)
virtual void writeFooter(QTextStream &out) const =0