Blender V4.3
Freestyle::ContextFunctions Namespace Reference

Functions

uint GetTimeStampCF ()
 
uint GetCanvasWidthCF ()
 
uint GetCanvasHeightCF ()
 
BBox< Vec2iGetBorderCF ()
 
void LoadMapCF (const char *iFileName, const char *iMapName, uint iNbLevels, float iSigma)
 
float ReadMapPixelCF (const char *iMapName, int level, uint x, uint y)
 
float ReadCompleteViewMapPixelCF (int level, uint x, uint y)
 
float ReadDirectionalViewMapPixelCF (int iOrientation, int level, uint x, uint y)
 
FEdgeGetSelectedFEdgeCF ()
 

Detailed Description

namespace containing all the Context related functions

Function Documentation

◆ GetBorderCF()

BBox< Vec2i > Freestyle::ContextFunctions::GetBorderCF ( )

Returns the border

Definition at line 36 of file ContextFunctions.cpp.

References Freestyle::Canvas::border(), and Freestyle::Canvas::getInstance().

Referenced by ContextFunctions_get_border().

◆ GetCanvasHeightCF()

uint Freestyle::ContextFunctions::GetCanvasHeightCF ( )

Returns the canvas height

Definition at line 31 of file ContextFunctions.cpp.

References Freestyle::Canvas::getInstance(), and Freestyle::Canvas::height().

Referenced by ContextFunctions_get_canvas_height().

◆ GetCanvasWidthCF()

uint Freestyle::ContextFunctions::GetCanvasWidthCF ( )

Returns the canvas width

Definition at line 26 of file ContextFunctions.cpp.

References Freestyle::Canvas::getInstance(), and Freestyle::Canvas::width().

Referenced by ContextFunctions_get_canvas_width().

◆ GetSelectedFEdgeCF()

FEdge * Freestyle::ContextFunctions::GetSelectedFEdgeCF ( )

◆ GetTimeStampCF()

uint Freestyle::ContextFunctions::GetTimeStampCF ( )

Returns the system time stamp

Definition at line 21 of file ContextFunctions.cpp.

References Freestyle::TimeStamp::getTimeStamp(), and Freestyle::TimeStamp::instance().

Referenced by ContextFunctions_get_time_stamp().

◆ LoadMapCF()

void Freestyle::ContextFunctions::LoadMapCF ( const char * iFileName,
const char * iMapName,
uint iNbLevels = 4,
float iSigma = 1.0f )

Loads an image map for further reading

Definition at line 41 of file ContextFunctions.cpp.

References Freestyle::Canvas::getInstance(), and Freestyle::Canvas::loadMap().

Referenced by ContextFunctions_load_map().

◆ ReadCompleteViewMapPixelCF()

float Freestyle::ContextFunctions::ReadCompleteViewMapPixelCF ( int level,
uint x,
uint y )

Reads a pixel in the complete view map

Returns
the floating value stored for that pixel
Parameters
levelThe level of the pyramid in which we wish to read the pixel
xThe x-coordinate of the pixel we wish to read. The origin is in the lower-left corner.
yThe y-coordinate of the pixel we wish to read. The origin is in the lower-left corner.

Definition at line 52 of file ContextFunctions.cpp.

References Freestyle::Canvas::getInstance(), Freestyle::Canvas::getSteerableViewMap(), and Freestyle::SteerableViewMap::readCompleteViewMapPixel().

Referenced by ContextFunctions_read_complete_view_map_pixel().

◆ ReadDirectionalViewMapPixelCF()

float Freestyle::ContextFunctions::ReadDirectionalViewMapPixelCF ( int iOrientation,
int level,
uint x,
uint y )

Reads a pixel in one of the oriented view map images

Returns
the floating value stored for that pixel
Parameters
iOrientationThe number telling which orientation we want to check
levelThe level of the pyramid in which we wish to read the pixel
xThe x-coordinate of the pixel we wish to read. The origin is in the lower-left corner.
yThe y-coordinate of the pixel we wish to read. The origin is in the lower-left corner.

Definition at line 58 of file ContextFunctions.cpp.

References Freestyle::Canvas::getInstance(), Freestyle::Canvas::getSteerableViewMap(), and Freestyle::SteerableViewMap::readSteerableViewMapPixel().

Referenced by ContextFunctions_read_directional_view_map_pixel().

◆ ReadMapPixelCF()

float Freestyle::ContextFunctions::ReadMapPixelCF ( const char * iMapName,
int level,
uint x,
uint y )

Reads a pixel in a user-defined map

Returns
the floating value stored for that pixel
Parameters
iMapNameThe name of the map
levelThe level of the pyramid in which we wish to read the pixel
xThe x-coordinate of the pixel we wish to read. The origin is in the lower-left corner.
yThe y-coordinate of the pixel we wish to read. The origin is in the lower-left corner.

Definition at line 46 of file ContextFunctions.cpp.

References Freestyle::Canvas::getInstance(), and Freestyle::Canvas::readMapPixel().

Referenced by ContextFunctions_read_map_pixel().