|
Blender V4.3
|
#include "BPy_ContextFunctions.h"#include "BPy_Convert.h"#include "../stroke/ContextFunctions.h"#include "BLI_sys_types.h"Go to the source code of this file.
Functions | |
| PyDoc_STRVAR (ContextFunctions_get_time_stamp___doc__, ".. function:: get_time_stamp()\n" "\n" " Returns the system time stamp.\n" "\n" " :return: The system time stamp.\n" " :rtype: int\n") | |
| static PyObject * | ContextFunctions_get_time_stamp (PyObject *) |
| PyDoc_STRVAR (ContextFunctions_get_canvas_width___doc__, ".. method:: get_canvas_width()\n" "\n" " Returns the canvas width.\n" "\n" " :return: The canvas width.\n" " :rtype: int\n") | |
| static PyObject * | ContextFunctions_get_canvas_width (PyObject *) |
| PyDoc_STRVAR (ContextFunctions_get_canvas_height___doc__, ".. method:: get_canvas_height()\n" "\n" " Returns the canvas height.\n" "\n" " :return: The canvas height.\n" " :rtype: int\n") | |
| static PyObject * | ContextFunctions_get_canvas_height (PyObject *) |
| PyDoc_STRVAR (ContextFunctions_get_border___doc__, ".. method:: get_border()\n" "\n" " Returns the border.\n" "\n" " :return: A tuple of 4 numbers (xmin, ymin, xmax, ymax).\n" " :rtype: tuple[int, int, int, int]\n") | |
| static PyObject * | ContextFunctions_get_border (PyObject *) |
| PyDoc_STRVAR (ContextFunctions_load_map___doc__, ".. function:: load_map(file_name, map_name, num_levels=4, sigma=1.0)\n" "\n" " Loads an image map for further reading.\n" "\n" " :arg file_name: The name of the image file.\n" " :type file_name: str\n" " :arg map_name: The name that will be used to access this image.\n" " :type map_name: str\n" " :arg num_levels: The number of levels in the map pyramid\n" " (default = 4). If num_levels == 0, the complete pyramid is\n" " built.\n" " :type num_levels: int\n" " :arg sigma: The sigma value of the gaussian function.\n" " :type sigma: float\n") | |
| static PyObject * | ContextFunctions_load_map (PyObject *, PyObject *args, PyObject *kwds) |
| PyDoc_STRVAR (ContextFunctions_read_map_pixel___doc__, ".. function:: read_map_pixel(map_name, level, x, y)\n" "\n" " Reads a pixel in a user-defined map.\n" "\n" " :arg map_name: The name of the map.\n" " :type map_name: str\n" " :arg level: The level of the pyramid in which we wish to read the\n" " pixel.\n" " :type level: int\n" " :arg x: The x coordinate of the pixel we wish to read. The origin\n" " is in the lower-left corner.\n" " :type x: int\n" " :arg y: The y coordinate of the pixel we wish to read. The origin\n" " is in the lower-left corner.\n" " :type y: int\n" " :return: The floating-point value stored for that pixel.\n" " :rtype: float\n") | |
| static PyObject * | ContextFunctions_read_map_pixel (PyObject *, PyObject *args, PyObject *kwds) |
| PyDoc_STRVAR (ContextFunctions_read_complete_view_map_pixel___doc__, ".. function:: read_complete_view_map_pixel(level, x, y)\n" "\n" " Reads a pixel in the complete view map.\n" "\n" " :arg level: The level of the pyramid in which we wish to read the\n" " pixel.\n" " :type level: int\n" " :arg x: The x coordinate of the pixel we wish to read. The origin\n" " is in the lower-left corner.\n" " :type x: int\n" " :arg y: The y coordinate of the pixel we wish to read. The origin\n" " is in the lower-left corner.\n" " :type y: int\n" " :return: The floating-point value stored for that pixel.\n" " :rtype: float\n") | |
| static PyObject * | ContextFunctions_read_complete_view_map_pixel (PyObject *, PyObject *args, PyObject *kwds) |
| PyDoc_STRVAR (ContextFunctions_read_directional_view_map_pixel___doc__, ".. function:: read_directional_view_map_pixel(orientation, level, x, y)\n" "\n" " Reads a pixel in one of the oriented view map images.\n" "\n" " :arg orientation: The number telling which orientation we want to\n" " check.\n" " :type orientation: int\n" " :arg level: The level of the pyramid in which we wish to read the\n" " pixel.\n" " :type level: int\n" " :arg x: The x coordinate of the pixel we wish to read. The origin\n" " is in the lower-left corner.\n" " :type x: int\n" " :arg y: The y coordinate of the pixel we wish to read. The origin\n" " is in the lower-left corner.\n" " :type y: int\n" " :return: The floating-point value stored for that pixel.\n" " :rtype: float\n") | |
| static PyObject * | ContextFunctions_read_directional_view_map_pixel (PyObject *, PyObject *args, PyObject *kwds) |
| PyDoc_STRVAR (ContextFunctions_get_selected_fedge___doc__, ".. function:: get_selected_fedge()\n" "\n" " Returns the selected FEdge.\n" "\n" " :return: The selected FEdge.\n" " :rtype: :class:`FEdge`\n") | |
| static PyObject * | ContextFunctions_get_selected_fedge (PyObject *) |
| PyDoc_STRVAR (module_docstring, "The Blender Freestyle.ContextFunctions submodule\n" "\n") | |
| int | ContextFunctions_Init (PyObject *module) |
Variables | |
| static PyMethodDef | module_functions [] |
| static PyModuleDef | module_definition |
|
static |
Definition at line 81 of file BPy_ContextFunctions.cpp.
References Freestyle::ContextFunctions::GetBorderCF(), Freestyle::BBox< Point >::getMax(), Freestyle::BBox< Point >::getMin(), PyTuple_SET_ITEMS, and v.
|
static |
Definition at line 66 of file BPy_ContextFunctions.cpp.
References Freestyle::ContextFunctions::GetCanvasHeightCF().
|
static |
Definition at line 51 of file BPy_ContextFunctions.cpp.
References Freestyle::ContextFunctions::GetCanvasWidthCF().
|
static |
Definition at line 246 of file BPy_ContextFunctions.cpp.
References Any_BPy_FEdge_from_FEdge(), and Freestyle::ContextFunctions::GetSelectedFEdgeCF().
|
static |
Definition at line 36 of file BPy_ContextFunctions.cpp.
References Freestyle::ContextFunctions::GetTimeStampCF().
| int ContextFunctions_Init | ( | PyObject * | module | ) |
Definition at line 321 of file BPy_ContextFunctions.cpp.
References module, and module_definition.
Referenced by Freestyle_Init().
|
static |
Definition at line 111 of file BPy_ContextFunctions.cpp.
References Freestyle::ContextFunctions::LoadMapCF().
|
static |
Definition at line 183 of file BPy_ContextFunctions.cpp.
References Freestyle::ContextFunctions::ReadCompleteViewMapPixelCF(), Freestyle::x, and y.
|
static |
Definition at line 219 of file BPy_ContextFunctions.cpp.
References Freestyle::ContextFunctions::ReadDirectionalViewMapPixelCF(), Freestyle::x, and y.
|
static |
Definition at line 148 of file BPy_ContextFunctions.cpp.
References Freestyle::ContextFunctions::ReadMapPixelCF(), Freestyle::x, and y.
| PyDoc_STRVAR | ( | ContextFunctions_get_border___doc__ | , |
| ".. method:: get_border()\n" "\n" " Returns the border.\n" "\n" " :return: A tuple of 4 numbers (xmin, ymin, xmax, ymax).\n" " :rtype: tuple\n" | [int, int, int, int] ) |
| PyDoc_STRVAR | ( | ContextFunctions_get_canvas_height___doc__ | , |
| ".. method:: get_canvas_height()\n" "\n" " Returns the canvas height.\n" "\n" " :return: The canvas height.\n" " :rtype: int\n" | ) |
| PyDoc_STRVAR | ( | ContextFunctions_get_canvas_width___doc__ | , |
| ".. method:: get_canvas_width()\n" "\n" " Returns the canvas width.\n" "\n" " :return: The canvas width.\n" " :rtype: int\n" | ) |
| PyDoc_STRVAR | ( | ContextFunctions_get_selected_fedge___doc__ | , |
| ".. function:: get_selected_fedge()\n" "\n" " Returns the selected FEdge.\n" "\n" " :return: The selected FEdge.\n" " :rtype: :class:`FEdge`\n" | ) |
| PyDoc_STRVAR | ( | ContextFunctions_get_time_stamp___doc__ | , |
| ".. function:: get_time_stamp()\n" "\n" " Returns the system time stamp.\n" "\n" " :return: The system time stamp.\n" " :rtype: int\n" | ) |
| PyDoc_STRVAR | ( | ContextFunctions_load_map___doc__ | , |
| ".. function:: load_map(file_name, map_name, num_levels=4, sigma=1.0)\n" "\n" " Loads an image map for further reading.\n" "\n" " :arg file_name: The name of the image file.\n" " :type file_name: str\n" " :arg map_name: The name that will be used to access this image.\n" " :type map_name: str\n" " :arg num_levels: The number of levels in the map pyramid\n" " (default = 4). If | num_levels = = 0, | ||
| the complete pyramid is\n" " built.\n" " :type num_levels:int\n" " :arg sigma:The sigma value of the gaussian function.\n" " :type sigma:float\n" | ) |
| PyDoc_STRVAR | ( | ContextFunctions_read_complete_view_map_pixel___doc__ | , |
| ".. function:: read_complete_view_map_pixel(level, x, y)\n" "\n" " Reads a pixel in the complete view map.\n" "\n" " :arg level: The level of the pyramid in which we wish to read the\n" " pixel.\n" " :type level: int\n" " :arg x: The x coordinate of the pixel we wish to read. The origin\n" " is in the lower-left corner.\n" " :type x: int\n" " :arg y: The y coordinate of the pixel we wish to read. The origin\n" " is in the lower-left corner.\n" " :type y: int\n" " :return: The floating-point value stored for that pixel.\n" " :rtype: float\n" | ) |
| PyDoc_STRVAR | ( | ContextFunctions_read_directional_view_map_pixel___doc__ | , |
| ".. function:: read_directional_view_map_pixel(orientation, level, x, y)\n" "\n" " Reads a pixel in one of the oriented view map images.\n" "\n" " :arg orientation: The number telling which orientation we want to\n" " check.\n" " :type orientation: int\n" " :arg level: The level of the pyramid in which we wish to read the\n" " pixel.\n" " :type level: int\n" " :arg x: The x coordinate of the pixel we wish to read. The origin\n" " is in the lower-left corner.\n" " :type x: int\n" " :arg y: The y coordinate of the pixel we wish to read. The origin\n" " is in the lower-left corner.\n" " :type y: int\n" " :return: The floating-point value stored for that pixel.\n" " :rtype: float\n" | ) |
| PyDoc_STRVAR | ( | ContextFunctions_read_map_pixel___doc__ | , |
| ".. function:: read_map_pixel(map_name, level, x, y)\n" "\n" " Reads a pixel in a user-defined map.\n" "\n" " :arg map_name: The name of the map.\n" " :type map_name: str\n" " :arg level: The level of the pyramid in which we wish to read the\n" " pixel.\n" " :type level: int\n" " :arg x: The x coordinate of the pixel we wish to read. The origin\n" " is in the lower-left corner.\n" " :type x: int\n" " :arg y: The y coordinate of the pixel we wish to read. The origin\n" " is in the lower-left corner.\n" " :type y: int\n" " :return: The floating-point value stored for that pixel.\n" " :rtype: float\n" | ) |
| PyDoc_STRVAR | ( | module_docstring | , |
| "The Blender Freestyle.ContextFunctions submodule\n" "\n" | ) |
|
static |
Definition at line 307 of file BPy_ContextFunctions.cpp.
Referenced by ContextFunctions_Init().
|
static |
Definition at line 265 of file BPy_ContextFunctions.cpp.