Blender  V3.3
Interface0D.cpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 extern "C" {
8 #include <Python.h>
9 }
10 
11 #include "Interface0D.h"
12 
13 #include "BLI_utildefines.h"
14 
15 namespace Freestyle {
16 
18 {
19  PyErr_SetString(PyExc_TypeError, "method getX() not properly overridden");
20  return 0;
21 }
22 
24 {
25  PyErr_SetString(PyExc_TypeError, "method getY() not properly overridden");
26  return 0;
27 }
28 
30 {
31  PyErr_SetString(PyExc_TypeError, "method getZ() not properly overridden");
32  return 0;
33 }
34 
36 {
37  PyErr_SetString(PyExc_TypeError, "method getPoint3D() not properly overridden");
38  return 0;
39 }
40 
42 {
43  PyErr_SetString(PyExc_TypeError, "method getProjectedX() not properly overridden");
44  return 0;
45 }
46 
48 {
49  PyErr_SetString(PyExc_TypeError, "method getProjectedY() not properly overridden");
50  return 0;
51 }
52 
54 {
55  PyErr_SetString(PyExc_TypeError, "method getProjectedZ() not properly overridden");
56  return 0;
57 }
58 
60 {
61  PyErr_SetString(PyExc_TypeError, "method getPoint2D() not properly overridden");
62  return 0;
63 }
64 
66 {
67  PyErr_SetString(PyExc_TypeError, "method getFEdge() not properly overridden");
68  return nullptr;
69 }
70 
72 {
73  PyErr_SetString(PyExc_TypeError, "method getId() not properly overridden");
74  return 0;
75 }
76 
78 {
79  PyErr_SetString(PyExc_TypeError, "method getNature() not properly overridden");
80  return Nature::POINT;
81 }
82 
84 {
85  PyErr_SetString(PyExc_TypeError, "method castToSVertex() not properly overridden");
86  return nullptr;
87 }
88 
90 {
91  PyErr_SetString(PyExc_TypeError, "method castToViewVertex() not properly overridden");
92  return nullptr;
93 }
94 
96 {
97  PyErr_SetString(PyExc_TypeError, "method castToNonTVertex() not properly overridden");
98  return nullptr;
99 }
100 
102 {
103  PyErr_SetString(PyExc_TypeError, "method castToTVertex() not properly overridden");
104  return nullptr;
105 }
106 
107 } /* namespace Freestyle */
#define UNUSED(x)
Interface to 0D elts.
ATTR_WARN_UNUSED_RESULT const void * element
virtual real getProjectedX() const
Definition: Interface0D.cpp:41
virtual real getZ() const
Definition: Interface0D.cpp:29
virtual Geometry::Vec2r getPoint2D() const
Definition: Interface0D.cpp:59
virtual FEdge * getFEdge(Interface0D &)
Definition: Interface0D.cpp:65
virtual real getY() const
Definition: Interface0D.cpp:23
virtual ViewVertex * castToViewVertex()
Definition: Interface0D.cpp:89
virtual NonTVertex * castToNonTVertex()
Definition: Interface0D.cpp:95
virtual Nature::VertexNature getNature() const
Definition: Interface0D.cpp:77
virtual TVertex * castToTVertex()
virtual Id getId() const
Definition: Interface0D.cpp:71
virtual Geometry::Vec3r getPoint3D() const
Definition: Interface0D.cpp:35
virtual real getProjectedZ() const
Definition: Interface0D.cpp:53
virtual real getX() const
Definition: Interface0D.cpp:17
virtual SVertex * castToSVertex()
Definition: Interface0D.cpp:83
virtual real getProjectedY() const
Definition: Interface0D.cpp:47
unsigned short VertexNature
Definition: Nature.h:18
static const VertexNature POINT
Definition: Nature.h:20
inherits from class Rep
Definition: AppCanvas.cpp:18
double real
Definition: Precision.h:12