Blender V4.3
BPy_ContextFunctions.cpp File Reference

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
 

Function Documentation

◆ ContextFunctions_get_border()

static PyObject * ContextFunctions_get_border ( PyObject * )
static

◆ ContextFunctions_get_canvas_height()

static PyObject * ContextFunctions_get_canvas_height ( PyObject * )
static

◆ ContextFunctions_get_canvas_width()

static PyObject * ContextFunctions_get_canvas_width ( PyObject * )
static

◆ ContextFunctions_get_selected_fedge()

static PyObject * ContextFunctions_get_selected_fedge ( PyObject * )
static

◆ ContextFunctions_get_time_stamp()

static PyObject * ContextFunctions_get_time_stamp ( PyObject * )
static

◆ ContextFunctions_Init()

int ContextFunctions_Init ( PyObject * module)

Definition at line 321 of file BPy_ContextFunctions.cpp.

References module, and module_definition.

Referenced by Freestyle_Init().

◆ ContextFunctions_load_map()

static PyObject * ContextFunctions_load_map ( PyObject * ,
PyObject * args,
PyObject * kwds )
static

◆ ContextFunctions_read_complete_view_map_pixel()

static PyObject * ContextFunctions_read_complete_view_map_pixel ( PyObject * ,
PyObject * args,
PyObject * kwds )
static

◆ ContextFunctions_read_directional_view_map_pixel()

static PyObject * ContextFunctions_read_directional_view_map_pixel ( PyObject * ,
PyObject * args,
PyObject * kwds )
static

◆ ContextFunctions_read_map_pixel()

static PyObject * ContextFunctions_read_map_pixel ( PyObject * ,
PyObject * args,
PyObject * kwds )
static

◆ PyDoc_STRVAR() [1/10]

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() [2/10]

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() [3/10]

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() [4/10]

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() [5/10]

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() [6/10]

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() [7/10]

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() [8/10]

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() [9/10]

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() [10/10]

PyDoc_STRVAR ( module_docstring ,
"The Blender Freestyle.ContextFunctions submodule\n" "\n"  )

Variable Documentation

◆ module_definition

PyModuleDef module_definition
static
Initial value:
= {
PyModuleDef_HEAD_INIT,
"Freestyle.ContextFunctions",
module_docstring,
-1,
nullptr,
nullptr,
nullptr,
nullptr,
}
static PyMethodDef module_functions[]

Definition at line 307 of file BPy_ContextFunctions.cpp.

Referenced by ContextFunctions_Init().

◆ module_functions

PyMethodDef module_functions[]
static

Definition at line 265 of file BPy_ContextFunctions.cpp.