Blender  V3.3
ContextFunctions.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #pragma once
4 
11 #include "Canvas.h"
12 
13 #include "../image/GaussianFilter.h"
14 #include "../image/Image.h"
15 
16 namespace Freestyle {
17 
18 //
19 // Context Functions definitions
20 //
22 
23 namespace ContextFunctions {
24 
25 // GetTimeStamp
27 unsigned GetTimeStampCF();
28 
29 // GetCanvasWidth
31 unsigned GetCanvasWidthCF();
32 
33 // GetCanvasHeight
35 unsigned GetCanvasHeightCF();
36 
37 // GetBorder
39 BBox<Vec2i> GetBorderCF();
40 
41 // Load map
43 void LoadMapCF(const char *iFileName,
44  const char *iMapName,
45  unsigned iNbLevels = 4,
46  float iSigma = 1.0f);
47 
48 // ReadMapPixel
60 float ReadMapPixelCF(const char *iMapName, int level, unsigned x, unsigned y);
61 
62 // ReadCompleteViewMapPixel
72 float ReadCompleteViewMapPixelCF(int level, unsigned x, unsigned y);
73 
74 // ReadOrientedViewMapPixel
86 float ReadDirectionalViewMapPixelCF(int iOrientation, int level, unsigned x, unsigned y);
87 
88 // DEBUG
89 FEdge *GetSelectedFEdgeCF();
90 
91 } // end of namespace ContextFunctions
92 
93 } /* namespace Freestyle */
Class to define a canvas designed to draw style modules.
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
float ReadCompleteViewMapPixelCF(int level, unsigned x, unsigned y)
float ReadDirectionalViewMapPixelCF(int iOrientation, int level, unsigned x, unsigned y)
void LoadMapCF(const char *iFileName, const char *iMapName, unsigned iNbLevels, float iSigma)
float ReadMapPixelCF(const char *iMapName, int level, unsigned x, unsigned y)
inherits from class Rep
Definition: AppCanvas.cpp:18
static unsigned x[3]
Definition: RandGen.cpp:73