Blender  V3.3
Functions | Variables
BPy_ContextFunctions.cpp File Reference
#include "BPy_ContextFunctions.h"
#include "BPy_Convert.h"
#include "../stroke/ContextFunctions.h"

Go to the source code of this file.

Functions

static PyObject * ContextFunctions_get_time_stamp (PyObject *)
 
static PyObject * ContextFunctions_get_canvas_width (PyObject *)
 
static PyObject * ContextFunctions_get_canvas_height (PyObject *)
 
static PyObject * ContextFunctions_get_border (PyObject *)
 
static PyObject * ContextFunctions_load_map (PyObject *, PyObject *args, PyObject *kwds)
 
static PyObject * ContextFunctions_read_map_pixel (PyObject *, PyObject *args, PyObject *kwds)
 
static PyObject * ContextFunctions_read_complete_view_map_pixel (PyObject *, PyObject *args, PyObject *kwds)
 
static PyObject * ContextFunctions_read_directional_view_map_pixel (PyObject *, PyObject *args, PyObject *kwds)
 
static PyObject * ContextFunctions_get_selected_fedge (PyObject *)
 
int ContextFunctions_Init (PyObject *module)
 

Variables

static char ContextFunctions_get_time_stamp___doc__ []
 
static char ContextFunctions_get_canvas_width___doc__ []
 
static char ContextFunctions_get_canvas_height___doc__ []
 
static char ContextFunctions_get_border___doc__ []
 
static char ContextFunctions_load_map___doc__ []
 
static char ContextFunctions_read_map_pixel___doc__ []
 
static char ContextFunctions_read_complete_view_map_pixel___doc__ []
 
static char ContextFunctions_read_directional_view_map_pixel___doc__ []
 
static char ContextFunctions_get_selected_fedge___doc__ []
 
static char module_docstring [] = "The Blender Freestyle.ContextFunctions submodule\n\n"
 
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 289 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

Definition at line 97 of file BPy_ContextFunctions.cpp.

References Freestyle::ContextFunctions::LoadMapCF().

◆ 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

Variable Documentation

◆ ContextFunctions_get_border___doc__

char ContextFunctions_get_border___doc__[]
static
Initial value:
=
".. method:: get_border()\n"
"\n"
" Returns the border.\n"
"\n"
" :return: A tuple of 4 numbers (xmin, ymin, xmax, ymax).\n"
" :rtype: tuple\n"

Definition at line 61 of file BPy_ContextFunctions.cpp.

◆ ContextFunctions_get_canvas_height___doc__

char ContextFunctions_get_canvas_height___doc__[]
static
Initial value:
=
".. method:: get_canvas_height()\n"
"\n"
" Returns the canvas height.\n"
"\n"
" :return: The canvas height.\n"
" :rtype: int\n"

Definition at line 48 of file BPy_ContextFunctions.cpp.

◆ ContextFunctions_get_canvas_width___doc__

char ContextFunctions_get_canvas_width___doc__[]
static
Initial value:
=
".. method:: get_canvas_width()\n"
"\n"
" Returns the canvas width.\n"
"\n"
" :return: The canvas width.\n"
" :rtype: int\n"

Definition at line 35 of file BPy_ContextFunctions.cpp.

◆ ContextFunctions_get_selected_fedge___doc__

char ContextFunctions_get_selected_fedge___doc__[]
static
Initial value:
=
".. function:: get_selected_fedge()\n"
"\n"
" Returns the selected FEdge.\n"
"\n"
" :return: The selected FEdge.\n"
" :rtype: :class:`FEdge`\n"

Definition at line 214 of file BPy_ContextFunctions.cpp.

◆ ContextFunctions_get_time_stamp___doc__

char ContextFunctions_get_time_stamp___doc__[]
static
Initial value:
=
".. function:: get_time_stamp()\n"
"\n"
" Returns the system time stamp.\n"
"\n"
" :return: The system time stamp.\n"
" :rtype: int\n"

Definition at line 22 of file BPy_ContextFunctions.cpp.

◆ ContextFunctions_load_map___doc__

char ContextFunctions_load_map___doc__[]
static
Initial value:
=
".. 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"

Definition at line 81 of file BPy_ContextFunctions.cpp.

◆ ContextFunctions_read_complete_view_map_pixel___doc__

char ContextFunctions_read_complete_view_map_pixel___doc__[]
static
Initial value:
=
".. 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"

Definition at line 147 of file BPy_ContextFunctions.cpp.

◆ ContextFunctions_read_directional_view_map_pixel___doc__

char ContextFunctions_read_directional_view_map_pixel___doc__[]
static
Initial value:
=
".. 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"

Definition at line 178 of file BPy_ContextFunctions.cpp.

◆ ContextFunctions_read_map_pixel___doc__

char ContextFunctions_read_map_pixel___doc__[]
static
Initial value:
=
".. 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"

Definition at line 112 of file BPy_ContextFunctions.cpp.

◆ module_definition

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

Definition at line 279 of file BPy_ContextFunctions.cpp.

Referenced by ContextFunctions_Init().

◆ module_docstring

char module_docstring[] = "The Blender Freestyle.ContextFunctions submodule\n\n"
static

Definition at line 233 of file BPy_ContextFunctions.cpp.

◆ module_functions

PyMethodDef module_functions[]
static

Definition at line 237 of file BPy_ContextFunctions.cpp.