Blender
V3.3
|
Functions | |
unsigned | GetTimeStampCF () |
unsigned | GetCanvasWidthCF () |
unsigned | GetCanvasHeightCF () |
BBox< Vec2i > | GetBorderCF () |
void | LoadMapCF (const char *iFileName, const char *iMapName, unsigned iNbLevels, float iSigma) |
float | ReadMapPixelCF (const char *iMapName, int level, unsigned x, unsigned y) |
float | ReadCompleteViewMapPixelCF (int level, unsigned x, unsigned y) |
float | ReadDirectionalViewMapPixelCF (int iOrientation, int level, unsigned x, unsigned y) |
FEdge * | GetSelectedFEdgeCF () |
namespace containing all the Context related functions
Returns the border
Definition at line 32 of file ContextFunctions.cpp.
References Freestyle::Canvas::border(), and Freestyle::Canvas::getInstance().
Referenced by ContextFunctions_get_border().
unsigned Freestyle::ContextFunctions::GetCanvasHeightCF | ( | ) |
Returns the canvas height
Definition at line 27 of file ContextFunctions.cpp.
References Freestyle::Canvas::getInstance(), and Freestyle::Canvas::height().
Referenced by ContextFunctions_get_canvas_height().
unsigned Freestyle::ContextFunctions::GetCanvasWidthCF | ( | ) |
Returns the canvas width
Definition at line 22 of file ContextFunctions.cpp.
References Freestyle::Canvas::getInstance(), and Freestyle::Canvas::width().
Referenced by ContextFunctions_get_canvas_width().
FEdge * Freestyle::ContextFunctions::GetSelectedFEdgeCF | ( | ) |
Definition at line 60 of file ContextFunctions.cpp.
References Freestyle::Canvas::getInstance(), and Freestyle::Canvas::selectedFEdge().
Referenced by ContextFunctions_get_selected_fedge().
unsigned Freestyle::ContextFunctions::GetTimeStampCF | ( | ) |
Returns the system time stamp
Definition at line 17 of file ContextFunctions.cpp.
References Freestyle::TimeStamp::getTimeStamp(), and Freestyle::TimeStamp::instance().
Referenced by ContextFunctions_get_time_stamp().
void Freestyle::ContextFunctions::LoadMapCF | ( | const char * | iFileName, |
const char * | iMapName, | ||
unsigned | iNbLevels = 4 , |
||
float | iSigma = 1.0f |
||
) |
Loads an image map for further reading
Definition at line 37 of file ContextFunctions.cpp.
References Freestyle::Canvas::getInstance(), and Freestyle::Canvas::loadMap().
Referenced by ContextFunctions_load_map().
float Freestyle::ContextFunctions::ReadCompleteViewMapPixelCF | ( | int | level, |
unsigned | x, | ||
unsigned | y | ||
) |
Reads a pixel in the complete view map
level | The level of the pyramid in which we wish to read the pixel |
x | The x-coordinate of the pixel we wish to read. The origin is in the lower-left corner. |
y | The y-coordinate of the pixel we wish to read. The origin is in the lower-left corner. |
Definition at line 48 of file ContextFunctions.cpp.
References Freestyle::Canvas::getInstance(), Freestyle::Canvas::getSteerableViewMap(), Freestyle::SteerableViewMap::readCompleteViewMapPixel(), Freestyle::x, and y.
Referenced by ContextFunctions_read_complete_view_map_pixel().
float Freestyle::ContextFunctions::ReadDirectionalViewMapPixelCF | ( | int | iOrientation, |
int | level, | ||
unsigned | x, | ||
unsigned | y | ||
) |
Reads a pixel in one of the oriented view map images
iOrientation | The number telling which orientation we want to check |
level | The level of the pyramid in which we wish to read the pixel |
x | The x-coordinate of the pixel we wish to read. The origin is in the lower-left corner. |
y | The y-coordinate of the pixel we wish to read. The origin is in the lower-left corner. |
Definition at line 54 of file ContextFunctions.cpp.
References Freestyle::Canvas::getInstance(), Freestyle::Canvas::getSteerableViewMap(), Freestyle::SteerableViewMap::readSteerableViewMapPixel(), Freestyle::x, and y.
Referenced by ContextFunctions_read_directional_view_map_pixel().
float Freestyle::ContextFunctions::ReadMapPixelCF | ( | const char * | iMapName, |
int | level, | ||
unsigned | x, | ||
unsigned | y | ||
) |
Reads a pixel in a user-defined map
iMapName | The name of the map |
level | The level of the pyramid in which we wish to read the pixel |
x | The x-coordinate of the pixel we wish to read. The origin is in the lower-left corner. |
y | The y-coordinate of the pixel we wish to read. The origin is in the lower-left corner. |
Definition at line 42 of file ContextFunctions.cpp.
References Freestyle::Canvas::getInstance(), Freestyle::Canvas::readMapPixel(), Freestyle::x, and y.
Referenced by ContextFunctions_read_map_pixel().