~ubuntu-branches/ubuntu/maverick/freecad/maverick

« back to all changes in this revision

Viewing changes to src/Mod/Raytracing/App/PovTools.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam C. Powell, IV
  • Date: 2010-01-11 08:48:33 UTC
  • mfrom: (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100111084833-4g9vgdqbkw8u34zb
Tags: 0.9.2646.5-1
* New upstream version (closes: #561696).
* Added swig to Build-Depends (closes: #563523, #563772).
* Removed python-opencv from Build-Depends and Recommends (closes: #560768).

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
};
70
70
 
71
71
 
72
 
class PovTools
 
72
class AppRaytracingExport PovTools
73
73
{
74
74
public:
 
75
  /// returns the given camera position as povray defines in a file
 
76
  static std::string getCamera(const CamDef& Cam);
 
77
 
75
78
  /// writes the given camera position as povray defines in a file
76
79
  static void writeCamera(const char*   FileName, 
77
80
                          const CamDef& Cam);
85
88
  static void writeShape(const char *FileName,
86
89
                         const char *PartName,
87
90
                         const TopoDS_Shape& Shape,
88
 
                         float fMeshDeviation=0.1);
 
91
                         float fMeshDeviation=0.1,
 
92
                                                 float r=0.5,
 
93
                                                 float g=0.5,
 
94
                                                 float b=0.5
 
95
                                                 );
 
96
 
 
97
  /// write a given shape as povray in a stream
 
98
  static void writeShape(std::ostream &out,
 
99
                         const char *PartName,
 
100
                         const TopoDS_Shape& Shape,
 
101
                         float fMeshDeviation=0.1,
 
102
                                                 float r=0.5,
 
103
                                                 float g=0.5,
 
104
                                                 float b=0.5
 
105
                                                 );
89
106
 
90
107
  /// write a given shape as points and normal Vectors in a coma separeted format
91
108
  static void writeShapeCSV(const char *FileName,