Blender  V2.93
Interface1D.cpp
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
21 extern "C" {
22 #include <Python.h>
23 }
24 
25 #include "Interface1D.h"
26 
27 namespace Freestyle {
28 
30 {
31  PyErr_SetString(PyExc_TypeError, "method verticesBegin() not properly overridden");
32  return Interface0DIterator();
33 }
34 
36 {
37  PyErr_SetString(PyExc_TypeError, "method verticesEnd() not properly overridden");
38  return Interface0DIterator();
39 }
40 
42 {
43  PyErr_SetString(PyExc_TypeError, "method pointsBegin() not properly overridden");
44  return Interface0DIterator();
45 }
46 
48 {
49  PyErr_SetString(PyExc_TypeError, "method pointsEnd() not properly overridden");
50  return Interface0DIterator();
51 }
52 
54 {
55  PyErr_SetString(PyExc_TypeError, "method getLength2D() not properly overridden");
56  return 0;
57 }
58 
60 {
61  PyErr_SetString(PyExc_TypeError, "method getId() not properly overridden");
62  return Id(0, 0);
63 }
64 
66 {
67  PyErr_SetString(PyExc_TypeError, "method getNature() not properly overridden");
68  return Nature::NO_FEATURE;
69 }
70 
71 } /* namespace Freestyle */
Interface 1D and related tools definitions.
virtual Interface0DIterator verticesEnd()
Definition: Interface1D.cpp:35
virtual Interface0DIterator pointsEnd(float t=0.0f)
Definition: Interface1D.cpp:47
virtual Nature::EdgeNature getNature() const
Definition: Interface1D.cpp:65
virtual Interface0DIterator verticesBegin()
Definition: Interface1D.cpp:29
virtual real getLength2D() const
Definition: Interface1D.cpp:53
virtual Interface0DIterator pointsBegin(float t=0.0f)
Definition: Interface1D.cpp:41
virtual Id getId() const
Definition: Interface1D.cpp:59
static const EdgeNature NO_FEATURE
Definition: Nature.h:48
unsigned short EdgeNature
Definition: Nature.h:46
inherits from class Rep
Definition: AppCanvas.cpp:32
double real
Definition: Precision.h:26