diff options
Diffstat (limited to 'Build/source/utils/asymptote/jsfile.h')
-rw-r--r-- | Build/source/utils/asymptote/jsfile.h | 41 |
1 files changed, 27 insertions, 14 deletions
diff --git a/Build/source/utils/asymptote/jsfile.h b/Build/source/utils/asymptote/jsfile.h index b0b70972af0..af547213614 100644 --- a/Build/source/utils/asymptote/jsfile.h +++ b/Build/source/utils/asymptote/jsfile.h @@ -11,32 +11,44 @@ namespace camp { class jsfile { jsofstream out; - -public: + +public: jsfile() {} - ~jsfile(); - + ~jsfile() {} + + void copy(string name, bool header=false); + + void header(string name); + void meta(string name, bool scalable=true); + void finish(string name); + void footer(string name); + + void svgtohtml(string name); + +#ifdef HAVE_LIBGLM + void precision(int digits) {out.precision(digits);} + void open(string name); - void copy(string name); - - void addColor(const prc::RGBAColour& c); - void addIndices(const uint32_t *I); - + void comment(string name); + + void addColor(const prc::RGBAColour& c); + void addIndices(const uint32_t *I); + void addPatch(const triple* controls, size_t n, const triple& Min, const triple& Max, const prc::RGBAColour *colors, size_t nc); - + void addCurve(const triple& z0, const triple& c0, const triple& c1, const triple& z1, const triple& Min, const triple& Max); - + void addCurve(const triple& z0, const triple& z1, const triple& Min, const triple& Max); - + void addPixel(const triple& z0, double width, const triple& Min, const triple& Max); - + void addMaterial(size_t index); - + void addTriangles(size_t nP, const triple* P, size_t nN, const triple* N, size_t nC, const prc::RGBAColour* C, size_t nI, const uint32_t (*PI)[3], const uint32_t (*NI)[3], @@ -51,6 +63,7 @@ public: const double& polar=0.0, const double& azimuth=0.0); void addTube(const triple *g, double width, const triple& Min, const triple& Max, bool core=false); +#endif }; } //namespace camp |