48 #include "../config.h"
49 #include <QTextStream>
52 #include "../qglviewer.h"
57 typedef void (*RenderCB)(
void *) ;
58 typedef void (*ProgressFunction)(float,
const QString&) ;
60 void VectorialRender(RenderCB DrawFunc,
void *callback_params, VRenderParams& render_params) ;
68 enum VRenderSortMethod { NoSorting, BSPSort, TopologicalSort, AdvancedTopologicalSort };
69 enum VRenderFormat { EPS, PS, XFIG, SVG };
71 enum VRenderOption { CullHiddenFaces = 0x1,
72 OptimizeBackFaceCulling = 0x4,
73 RenderBlackAndWhite = 0x8,
75 TightenBoundingBox = 0x20 } ;
77 int sortMethod() {
return _sortMethod; }
78 void setSortMethod(VRenderParams::VRenderSortMethod s) { _sortMethod = s ; }
80 int format() {
return _format; }
81 void setFormat(VRenderFormat f) { _format = f; }
83 const QString filename() {
return _filename ; }
84 void setFilename(
const QString& filename) ;
86 void setOption(VRenderOption,
bool) ;
87 bool isEnabled(VRenderOption) ;
89 void setProgressFunction(ProgressFunction pf) { _progress_function = pf ; }
93 VRenderSortMethod _sortMethod;
94 VRenderFormat _format ;
96 ProgressFunction _progress_function ;
98 unsigned int _options;
101 friend void VectorialRender( RenderCB render_callback,
102 void *callback_params,
111 int& error() {
return _error ; }
112 int& size() {
static int size=1000000;
return size ; }
114 void progress(
float,
const QString&) ;