Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Curioni <maxime.curioni@gmail.com>2008-07-27 01:47:39 +0400
committerMaxime Curioni <maxime.curioni@gmail.com>2008-07-27 01:47:39 +0400
commit0c64c49d2f930aed4ef310c2331bc3df0932cbe2 (patch)
treee863274f8326a9735dfe03cd5e7c580cd33a08cc /source/blender/freestyle/intern/python/BPy_ViewShape.cpp
parent5718639a79b51241f348eb241d2379ade06cd787 (diff)
soc-2008-mxcurioni: added (but did not test) ViewMap and Noise classes. Updated ViewShape class accordingly
Diffstat (limited to 'source/blender/freestyle/intern/python/BPy_ViewShape.cpp')
-rw-r--r--source/blender/freestyle/intern/python/BPy_ViewShape.cpp22
1 files changed, 18 insertions, 4 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_ViewShape.cpp b/source/blender/freestyle/intern/python/BPy_ViewShape.cpp
index 3ac2c02a274..a87859491b4 100644
--- a/source/blender/freestyle/intern/python/BPy_ViewShape.cpp
+++ b/source/blender/freestyle/intern/python/BPy_ViewShape.cpp
@@ -16,12 +16,27 @@ static int ViewShape___init__(BPy_ViewShape *self, PyObject *args, PyObject *kwd
static void ViewShape___dealloc__(BPy_ViewShape *self);
static PyObject * ViewShape___repr__(BPy_ViewShape* self);
+static PyObject * ViewShape_sshape( BPy_ViewShape *self );
+static PyObject * ViewShape_vertices( BPy_ViewShape *self );
+static PyObject * ViewShape_edges( BPy_ViewShape *self );
+static PyObject * ViewShape_getId( BPy_ViewShape *self );
+static PyObject * ViewShape_setSShape( BPy_ViewShape *self , PyObject *args);
+static PyObject * ViewShape_setVertices( BPy_ViewShape *self , PyObject *args);
+static PyObject * ViewShape_setEdges( BPy_ViewShape *self , PyObject *args);
+static PyObject * ViewShape_AddEdge( BPy_ViewShape *self , PyObject *args);
+static PyObject * ViewShape_AddVertex( BPy_ViewShape *self , PyObject *args);
/*---------------------- BPy_ViewShape instance definitions ----------------------------*/
static PyMethodDef BPy_ViewShape_methods[] = {
- //{"AddEdge", ( PyCFunction ) ViewShape_AddEdge, METH_VARARGS, "(FEdge fe )Adds a FEdge to the list of FEdges. "},
-
-
+ {"sshape", ( PyCFunction ) ViewShape_sshape, METH_NOARGS, "() Returns the SShape on top of which this ViewShape is built. "},
+ {"vertices", ( PyCFunction ) ViewShape_vertices, METH_NOARGS, "() Returns the list of ViewVertex contained in this ViewShape."},
+ {"edges", ( PyCFunction ) ViewShape_edges, METH_NOARGS, "() Returns the list of ViewEdge contained in this ViewShape. "},
+ {"getId", ( PyCFunction ) ViewShape_getId, METH_NOARGS, "() Returns the ViewShape id. "},
+ {"setSShape", ( PyCFunction ) ViewShape_setSShape, METH_VARARGS, "(SShape ss) Sets the SShape on top of which the ViewShape is built. "},
+ {"setVertices", ( PyCFunction ) ViewShape_setVertices, METH_VARARGS, "([<ViewVertex>]) Sets the list of ViewVertex contained in this ViewShape."},
+ {"setEdges", ( PyCFunction ) ViewShape_setEdges, METH_VARARGS, "([<ViewEdge>]) Sets the list of ViewEdge contained in this ViewShape."},
+ {"AddEdge", ( PyCFunction ) ViewShape_AddEdge, METH_VARARGS, "(ViewEdge ve) Adds a ViewEdge to the list "},
+ {"AddVertex", ( PyCFunction ) ViewShape_AddVertex, METH_VARARGS, "(ViewVertex ve) Adds a ViewVertex to the list. "},
{NULL, NULL, 0, NULL}
};
@@ -231,7 +246,6 @@ PyObject * ViewShape_setVertices( BPy_ViewShape *self , PyObject *args) {
Py_RETURN_NONE;
}
-//void SetEdges (const vector< ViewEdge * > &iEdges)
PyObject * ViewShape_setEdges( BPy_ViewShape *self , PyObject *args) {
PyObject *list = 0;
PyObject *tmp;