Lines Matching refs:out

24 #include "pov-out.h"
61 g_log(NULL, G_LOG_LEVEL_WARNING, "Pov-out err: ");
128 void PovOutput::out(const char *fmt, ...)
147 out("<%s, %s>", DSTR(a), DSTR(b));
157 out("<%s, %s, %s>", DSTR(a), DSTR(b), DSTR(c));
167 out("<%s, %s, %s, %s>", DSTR(a), DSTR(b), DSTR(c), DSTR(d));
178 out("rgbf ");
194 out(" /*%4d*/ ", segNr);
196 out(", ");
198 out(", ");
200 out(", ");
214 out("/*###################################################################\n");
215 out("### This PovRay document was generated by Inkscape\n");
216 out("### http://www.inkscape.org\n");
217 out("### Created: %s", ctime(&tim));
218 out("### Version: %s\n", Inkscape::version_string);
219 out("#####################################################################\n");
220 out("### NOTES:\n");
221 out("### ============\n");
222 out("### POVRay information can be found at\n");
223 out("### http://www.povray.org\n");
224 out("###\n");
225 out("### The 'AllShapes' objects at the bottom are provided as a\n");
226 out("### preview of how the output would look in a trace. However,\n");
227 out("### the main intent of this file is to provide the individual\n");
228 out("### shapes for inclusion in a POV project.\n");
229 out("###\n");
230 out("### For an example of how to use this file, look at\n");
231 out("### share/examples/istest.pov\n");
232 out("###\n");
233 out("### If you have any problems with this output, please see the\n");
234 out("### Inkscape project at http://www.inkscape.org, or visit\n");
235 out("### the #inkscape channel on irc.freenode.net . \n");
236 out("###\n");
237 out("###################################################################*/\n");
238 out("\n\n");
239 out("/*###################################################################\n");
240 out("## Exports in this file\n");
241 out("##==========================\n");
242 out("## Shapes : %d\n", nrShapes);
243 out("## Segments : %d\n", nrSegments);
244 out("## Nodes : %d\n", nrNodes);
245 out("###################################################################*/\n");
246 out("\n\n\n");
257 out("\n\n");
258 out("/*###################################################################\n");
259 out("### E N D F I L E\n");
260 out("###################################################################*/\n");
261 out("\n\n");
322 * closing line segment) before we write out segment data. Since we are
343 out("/*###################################################\n");
344 out("### PRISM: %s\n", id.c_str());
345 out("###################################################*/\n");
346 out("#declare %s = prism {\n", id.c_str());
347 out(" linear_sweep\n");
348 out(" bezier_spline\n");
349 out(" 1.0, //top\n");
350 out(" 0.0, //bottom\n");
351 out(" %d //nr points\n", segmentCount * 4);
406 out(",\n");
408 out("\n");
420 out("}\n");
427 out("#declare %s_MIN_X = %s;\n", id.c_str(), DSTR(cminx));
428 out("#declare %s_CENTER_X = %s;\n", id.c_str(), DSTR((cmaxx+cminx)/2.0));
429 out("#declare %s_MAX_X = %s;\n", id.c_str(), DSTR(cmaxx));
430 out("#declare %s_WIDTH = %s;\n", id.c_str(), DSTR(cmaxx-cminx));
431 out("#declare %s_MIN_Y = %s;\n", id.c_str(), DSTR(cminy));
432 out("#declare %s_CENTER_Y = %s;\n", id.c_str(), DSTR((cmaxy+cminy)/2.0));
433 out("#declare %s_MAX_Y = %s;\n", id.c_str(), DSTR(cmaxy));
434 out("#declare %s_HEIGHT = %s;\n", id.c_str(), DSTR(cmaxy-cminy));
436 out("#declare %s_COLOR = %s;\n",
438 out("/*###################################################\n");
439 out("### end %s\n", id.c_str());
440 out("###################################################*/\n\n\n\n");
510 out("/*###################################################\n");
511 out("### UNION OF ALL SHAPES IN DOCUMENT\n");
512 out("###################################################*/\n");
513 out("\n\n");
514 out("/**\n");
515 out(" * Allow the user to redefine the finish{}\n");
516 out(" * by declaring it before #including this file\n");
517 out(" */\n");
518 out("#ifndef (%s_Finish)\n", pfx);
519 out("#declare %s_Finish = finish {\n", pfx);
520 out(" phong 0.5\n");
521 out(" reflection 0.3\n");
522 out(" specular 0.5\n");
523 out("}\n");
524 out("#end\n");
525 out("\n\n");
526 out("#declare %s = union {\n", id.c_str());
529 out(" object { %s\n", povShapes[i].id.c_str());
530 out(" texture { \n");
532 out(" pigment { %s }\n", povShapes[i].color.c_str());
534 out(" pigment { rgb <0,0,0> }\n");
535 out(" finish { %s_Finish }\n", pfx);
536 out(" } \n");
537 out(" } \n");
539 out("}\n\n\n\n");
543 out("/*#### Same union, but with Z-diffs (actually Y in pov) ####*/\n");
544 out("\n\n");
545 out("/**\n");
546 out(" * Allow the user to redefine the Z-Increment\n");
547 out(" */\n");
548 out("#ifndef (AllShapes_Z_Increment)\n");
549 out("#declare AllShapes_Z_Increment = %s;\n", DSTR(zinc));
550 out("#end\n");
551 out("\n");
552 out("#declare AllShapes_Z_Scale = 1.0;\n");
553 out("\n\n");
554 out("#declare %s_Z = union {\n", pfx);
558 out(" object { %s\n", povShapes[i].id.c_str());
559 out(" texture { \n");
561 out(" pigment { %s }\n", povShapes[i].color.c_str());
563 out(" pigment { rgb <0,0,0> }\n");
564 out(" finish { %s_Finish }\n", pfx);
565 out(" } \n");
566 out(" scale <1, %s_Z_Scale, 1>\n", pfx);
567 out(" } \n");
568 out("#declare %s_Z_Scale = %s_Z_Scale + %s_Z_Increment;\n\n",
572 out("}\n");
574 out("#declare %s_MIN_X = %s;\n", pfx, DSTR(minx));
575 out("#declare %s_CENTER_X = %s;\n", pfx, DSTR((maxx+minx)/2.0));
576 out("#declare %s_MAX_X = %s;\n", pfx, DSTR(maxx));
577 out("#declare %s_WIDTH = %s;\n", pfx, DSTR(maxx-minx));
578 out("#declare %s_MIN_Y = %s;\n", pfx, DSTR(miny));
579 out("#declare %s_CENTER_Y = %s;\n", pfx, DSTR((maxy+miny)/2.0));
580 out("#declare %s_MAX_Y = %s;\n", pfx, DSTR(maxy));
581 out("#declare %s_HEIGHT = %s;\n", pfx, DSTR(maxy-miny));
582 out("/*##############################################\n");
583 out("### end %s\n", id.c_str());
584 out("##############################################*/\n");
585 out("\n\n");