Blender  V3.3
Functions | Variables
BPy_ViewMap.cpp File Reference
#include "BPy_ViewMap.h"
#include "BPy_BBox.h"
#include "BPy_Convert.h"
#include "Interface1D/BPy_FEdge.h"
#include "Interface1D/BPy_ViewEdge.h"

Go to the source code of this file.

Functions

int ViewMap_Init (PyObject *module)
 
 PyDoc_STRVAR (ViewMap_doc, "Class defining the ViewMap.\n" "\n" ".. method:: __init__()\n" "\n" " Default constructor.")
 
static int ViewMap_init (BPy_ViewMap *self, PyObject *args, PyObject *kwds)
 
static void ViewMap_dealloc (BPy_ViewMap *self)
 
static PyObject * ViewMap_repr (BPy_ViewMap *self)
 
 PyDoc_STRVAR (ViewMap_get_closest_viewedge_doc, ".. method:: get_closest_viewedge(x, y)\n" "\n" " Gets the ViewEdge nearest to the 2D point specified as arguments.\n" "\n" " :arg x: X coordinate of a 2D point.\n" " :type x: float\n" " :arg y: Y coordinate of a 2D point.\n" " :type y: float\n" " :return: The ViewEdge nearest to the specified 2D point.\n" " :rtype: :class:`ViewEdge`")
 
static PyObject * ViewMap_get_closest_viewedge (BPy_ViewMap *self, PyObject *args, PyObject *kwds)
 
 PyDoc_STRVAR (ViewMap_get_closest_fedge_doc, ".. method:: get_closest_fedge(x, y)\n" "\n" " Gets the FEdge nearest to the 2D point specified as arguments.\n" "\n" " :arg x: X coordinate of a 2D point.\n" " :type x: float\n" " :arg y: Y coordinate of a 2D point.\n" " :type y: float\n" " :return: The FEdge nearest to the specified 2D point.\n" " :rtype: :class:`FEdge`")
 
static PyObject * ViewMap_get_closest_fedge (BPy_ViewMap *self, PyObject *args, PyObject *kwds)
 
 PyDoc_STRVAR (ViewMap_scene_bbox_doc, "The 3D bounding box of the scene.\n" "\n" ":type: :class:`BBox`")
 
static PyObject * ViewMap_scene_bbox_get (BPy_ViewMap *self, void *UNUSED(closure))
 
static int ViewMap_scene_bbox_set (BPy_ViewMap *self, PyObject *value, void *UNUSED(closure))
 

Variables

static PyMethodDef BPy_ViewMap_methods []
 
static PyGetSetDef BPy_ViewMap_getseters []
 
PyTypeObject ViewMap_Type
 

Function Documentation

◆ PyDoc_STRVAR() [1/4]

PyDoc_STRVAR ( ViewMap_doc  ,
"Class defining the ViewMap.\n" "\n" ".. method:: __init__()\n" "\n" " Default constructor."   
)

◆ PyDoc_STRVAR() [2/4]

PyDoc_STRVAR ( ViewMap_get_closest_fedge_doc  ,
".. method:: get_closest_fedge(x, y)\n" "\n" " Gets the FEdge nearest to the 2D point specified as arguments.\n" "\n" " :arg x: X coordinate of a 2D point.\n" " :type x: float\n" " :arg y: Y coordinate of a 2D point.\n" " :type y: float\n" " :return: The FEdge nearest to the specified 2D point.\n" " :rtype: :class:`FEdge`"   
)

◆ PyDoc_STRVAR() [3/4]

PyDoc_STRVAR ( ViewMap_get_closest_viewedge_doc  ,
".. method:: get_closest_viewedge(x, y)\n" "\n" " Gets the ViewEdge nearest to the 2D point specified as arguments.\n" "\n" " :arg x: X coordinate of a 2D point.\n" " :type x: float\n" " :arg y: Y coordinate of a 2D point.\n" " :type y: float\n" " :return: The ViewEdge nearest to the specified 2D point.\n" " :rtype: :class:`ViewEdge`"   
)

◆ PyDoc_STRVAR() [4/4]

PyDoc_STRVAR ( ViewMap_scene_bbox_doc  ,
"The 3D bounding box of the scene.\n" "\n" ":type: :class:`BBox`"   
)

◆ ViewMap_dealloc()

static void ViewMap_dealloc ( BPy_ViewMap self)
static

Definition at line 58 of file BPy_ViewMap.cpp.

◆ ViewMap_get_closest_fedge()

static PyObject* ViewMap_get_closest_fedge ( BPy_ViewMap self,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 108 of file BPy_ViewMap.cpp.

References Any_BPy_FEdge_from_FEdge(), Freestyle::x, and y.

◆ ViewMap_get_closest_viewedge()

static PyObject* ViewMap_get_closest_viewedge ( BPy_ViewMap self,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 81 of file BPy_ViewMap.cpp.

References BPy_ViewEdge_from_ViewEdge(), Freestyle::x, and y.

◆ ViewMap_init()

static int ViewMap_init ( BPy_ViewMap self,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 47 of file BPy_ViewMap.cpp.

◆ ViewMap_Init()

int ViewMap_Init ( PyObject *  module)

Definition at line 23 of file BPy_ViewMap.cpp.

References module, and ViewMap_Type.

Referenced by Freestyle_Init().

◆ ViewMap_repr()

static PyObject* ViewMap_repr ( BPy_ViewMap self)
static

Definition at line 64 of file BPy_ViewMap.cpp.

References self.

◆ ViewMap_scene_bbox_get()

static PyObject* ViewMap_scene_bbox_get ( BPy_ViewMap self,
void UNUSEDclosure 
)
static

Definition at line 144 of file BPy_ViewMap.cpp.

References BPy_BBox_from_BBox(), and self.

◆ ViewMap_scene_bbox_set()

static int ViewMap_scene_bbox_set ( BPy_ViewMap self,
PyObject *  value,
void UNUSEDclosure 
)
static

Definition at line 149 of file BPy_ViewMap.cpp.

References BPy_BBox_Check.

Variable Documentation

◆ BPy_ViewMap_getseters

PyGetSetDef BPy_ViewMap_getseters[]
static
Initial value:
= {
{"scene_bbox",
ViewMap_scene_bbox_doc,
nullptr},
{nullptr, nullptr, nullptr, nullptr, nullptr}
}
static int ViewMap_scene_bbox_set(BPy_ViewMap *self, PyObject *value, void *UNUSED(closure))
static PyObject * ViewMap_scene_bbox_get(BPy_ViewMap *self, void *UNUSED(closure))

Definition at line 159 of file BPy_ViewMap.cpp.

◆ BPy_ViewMap_methods

PyMethodDef BPy_ViewMap_methods[]
static
Initial value:
= {
{"get_closest_viewedge",
METH_VARARGS | METH_KEYWORDS,
ViewMap_get_closest_viewedge_doc},
{"get_closest_fedge",
METH_VARARGS | METH_KEYWORDS,
ViewMap_get_closest_fedge_doc},
{nullptr, nullptr, 0, nullptr},
}
static PyObject * ViewMap_get_closest_fedge(BPy_ViewMap *self, PyObject *args, PyObject *kwds)
static PyObject * ViewMap_get_closest_viewedge(BPy_ViewMap *self, PyObject *args, PyObject *kwds)
Definition: BPy_ViewMap.cpp:81

Definition at line 125 of file BPy_ViewMap.cpp.

◆ ViewMap_Type

PyTypeObject ViewMap_Type

Definition at line 170 of file BPy_ViewMap.cpp.

Referenced by ViewMap_Init().