Blender  V3.3
Functions
Freestyle::ContextFunctions Namespace Reference

Functions

unsigned GetTimeStampCF ()
 
unsigned GetCanvasWidthCF ()
 
unsigned GetCanvasHeightCF ()
 
BBox< Vec2iGetBorderCF ()
 
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)
 
FEdgeGetSelectedFEdgeCF ()
 

Detailed Description

namespace containing all the Context related functions

Function Documentation

◆ GetBorderCF()

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

Returns the border

Definition at line 32 of file ContextFunctions.cpp.

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

Referenced by ContextFunctions_get_border().

◆ GetCanvasHeightCF()

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().

◆ GetCanvasWidthCF()

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().

◆ GetSelectedFEdgeCF()

FEdge * Freestyle::ContextFunctions::GetSelectedFEdgeCF ( )

◆ GetTimeStampCF()

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().

◆ LoadMapCF()

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().

◆ ReadCompleteViewMapPixelCF()

float Freestyle::ContextFunctions::ReadCompleteViewMapPixelCF ( int  level,
unsigned  x,
unsigned  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 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().

◆ ReadDirectionalViewMapPixelCF()

float Freestyle::ContextFunctions::ReadDirectionalViewMapPixelCF ( int  iOrientation,
int  level,
unsigned  x,
unsigned  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 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().

◆ ReadMapPixelCF()

float Freestyle::ContextFunctions::ReadMapPixelCF ( const char *  iMapName,
int  level,
unsigned  x,
unsigned  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 42 of file ContextFunctions.cpp.

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

Referenced by ContextFunctions_read_map_pixel().