AppRaytracingPy.cpp File Reference

#include "PreCompiled.h"
#include <Python.h>
#include <Base/Console.h>
#include "PovTools.h"
#include "FreeCADpov.h"
#include <Mod/Part/App/TopoShape.h>
#include <Mod/Part/App/TopoShapePy.h>
#include <App/Application.h>

Go to the source code of this file.

Functions

static PyObjectcopyResource (PyObject *self, PyObject *args)
 write project file
static PyObjectgetPartAsPovray (PyObject *self, PyObject *args)
 get part file as string
static PyObjectgetProjectFile (PyObject *self, PyObject *args)
 write project file
static PyObjectwriteCameraFile (PyObject *self, PyObject *args)
 write project file
static PyObjectwriteDataFile (PyObject *self, PyObject *args)
 write part file
static PyObjectwritePartFile (PyObject *self, PyObject *args)
 write part file
static PyObjectwritePartFileCSV (PyObject *self, PyObject *args)
 write part file as CSV
static PyObjectwriteProjectFile (PyObject *self, PyObject *args)
 write empty project file

Variables

struct PyMethodDef Raytracing_methods []

Function Documentation

static PyObject* copyResource ( PyObject self,
PyObject args 
) [static]

write project file

Definition at line 189 of file AppRaytracingPy.cpp.

References Base::Console(), App::GetApplication(), App::Application::GetHomePath(), and Py_Return.

static PyObject* getPartAsPovray ( PyObject self,
PyObject args 
) [static]

get part file as string

Definition at line 71 of file AppRaytracingPy.cpp.

References FemExample::b, Py::new_reference_to(), Part::TopoShapePy::Type, and importDXF::writeShape().

static PyObject* getProjectFile ( PyObject self,
PyObject args 
) [static]

write project file

Definition at line 64 of file AppRaytracingPy.cpp.

References FreeCAD.

static PyObject* writeCameraFile ( PyObject self,
PyObject args 
) [static]

write project file

Definition at line 148 of file AppRaytracingPy.cpp.

References RobotExample::l, Py_Error, and Py_Return.

static PyObject* writeDataFile ( PyObject self,
PyObject args 
) [static]

write part file

Definition at line 114 of file AppRaytracingPy.cpp.

References SketcherExample::f, Py_Return, and Data::ComplexGeoDataPy::Type.

static PyObject* writePartFile ( PyObject self,
PyObject args 
) [static]

write part file

Definition at line 97 of file AppRaytracingPy.cpp.

References Py_Return, Part::TopoShapePy::Type, and importDXF::writeShape().

static PyObject* writePartFileCSV ( PyObject self,
PyObject args 
) [static]

write part file as CSV

Definition at line 132 of file AppRaytracingPy.cpp.

References Base::Length, Py_Return, and Part::TopoShapePy::Type.

static PyObject* writeProjectFile ( PyObject self,
PyObject args 
) [static]

write empty project file

Definition at line 44 of file AppRaytracingPy.cpp.

References FreeCAD, and Py_Return.


Variable Documentation

struct PyMethodDef Raytracing_methods[]
Initial value:
 {
    {"writeProjectFile", writeProjectFile, 1},
    {"getProjectFile",   getProjectFile  , 1},
    {"writePartFile",    writePartFile   , 1},
    {"writePartFileCSV", writePartFileCSV, 1},
    {"getPartAsPovray",  getPartAsPovray , 1},
    {"writeDataFile",    writeDataFile , 1},
    {"writeCameraFile",  writeCameraFile , 1},
    {"copyResource",     copyResource    , 1},
    {NULL, NULL}
}

Definition at line 215 of file AppRaytracingPy.cpp.

Referenced by initRaytracing().


Generated on Wed Nov 23 19:01:13 2011 for FreeCAD by  doxygen 1.6.1