Blender  V2.93
Interface0D.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 "Interface0D.h"
26 
27 #include "BLI_utildefines.h"
28 
29 namespace Freestyle {
30 
32 {
33  PyErr_SetString(PyExc_TypeError, "method getX() not properly overridden");
34  return 0;
35 }
36 
38 {
39  PyErr_SetString(PyExc_TypeError, "method getY() not properly overridden");
40  return 0;
41 }
42 
44 {
45  PyErr_SetString(PyExc_TypeError, "method getZ() not properly overridden");
46  return 0;
47 }
48 
50 {
51  PyErr_SetString(PyExc_TypeError, "method getPoint3D() not properly overridden");
52  return 0;
53 }
54 
56 {
57  PyErr_SetString(PyExc_TypeError, "method getProjectedX() not properly overridden");
58  return 0;
59 }
60 
62 {
63  PyErr_SetString(PyExc_TypeError, "method getProjectedY() not properly overridden");
64  return 0;
65 }
66 
68 {
69  PyErr_SetString(PyExc_TypeError, "method getProjectedZ() not properly overridden");
70  return 0;
71 }
72 
74 {
75  PyErr_SetString(PyExc_TypeError, "method getPoint2D() not properly overridden");
76  return 0;
77 }
78 
80 {
81  PyErr_SetString(PyExc_TypeError, "method getFEdge() not properly overridden");
82  return nullptr;
83 }
84 
86 {
87  PyErr_SetString(PyExc_TypeError, "method getId() not properly overridden");
88  return 0;
89 }
90 
92 {
93  PyErr_SetString(PyExc_TypeError, "method getNature() not properly overridden");
94  return Nature::POINT;
95 }
96 
98 {
99  PyErr_SetString(PyExc_TypeError, "method castToSVertex() not properly overridden");
100  return nullptr;
101 }
102 
104 {
105  PyErr_SetString(PyExc_TypeError, "method castToViewVertex() not properly overridden");
106  return nullptr;
107 }
108 
110 {
111  PyErr_SetString(PyExc_TypeError, "method castToNonTVertex() not properly overridden");
112  return nullptr;
113 }
114 
116 {
117  PyErr_SetString(PyExc_TypeError, "method castToTVertex() not properly overridden");
118  return nullptr;
119 }
120 
121 } /* namespace Freestyle */
#define UNUSED(x)
Interface to 0D elts.
ATTR_WARN_UNUSED_RESULT const void * element
virtual real getProjectedX() const
Definition: Interface0D.cpp:55
virtual real getZ() const
Definition: Interface0D.cpp:43
virtual Geometry::Vec2r getPoint2D() const
Definition: Interface0D.cpp:73
virtual FEdge * getFEdge(Interface0D &)
Definition: Interface0D.cpp:79
virtual real getY() const
Definition: Interface0D.cpp:37
virtual ViewVertex * castToViewVertex()
virtual NonTVertex * castToNonTVertex()
virtual Nature::VertexNature getNature() const
Definition: Interface0D.cpp:91
virtual TVertex * castToTVertex()
virtual Id getId() const
Definition: Interface0D.cpp:85
virtual Geometry::Vec3r getPoint3D() const
Definition: Interface0D.cpp:49
virtual real getProjectedZ() const
Definition: Interface0D.cpp:67
virtual real getX() const
Definition: Interface0D.cpp:31
virtual SVertex * castToSVertex()
Definition: Interface0D.cpp:97
virtual real getProjectedY() const
Definition: Interface0D.cpp:61
unsigned short VertexNature
Definition: Nature.h:32
static const VertexNature POINT
Definition: Nature.h:34
inherits from class Rep
Definition: AppCanvas.cpp:32
double real
Definition: Precision.h:26