Blender  V2.93
ContextFunctions.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
17 #pragma once
18 
25 #include "Canvas.h"
26 
27 #include "../image/GaussianFilter.h"
28 #include "../image/Image.h"
29 
30 namespace Freestyle {
31 
32 //
33 // Context Functions definitions
34 //
36 
37 namespace ContextFunctions {
38 
39 // GetTimeStamp
41 unsigned GetTimeStampCF();
42 
43 // GetCanvasWidth
45 unsigned GetCanvasWidthCF();
46 
47 // GetCanvasHeight
49 unsigned GetCanvasHeightCF();
50 
51 // GetBorder
53 BBox<Vec2i> GetBorderCF();
54 
55 // Load map
57 void LoadMapCF(const char *iFileName,
58  const char *iMapName,
59  unsigned iNbLevels = 4,
60  float iSigma = 1.0f);
61 
62 // ReadMapPixel
74 float ReadMapPixelCF(const char *iMapName, int level, unsigned x, unsigned y);
75 
76 // ReadCompleteViewMapPixel
86 float ReadCompleteViewMapPixelCF(int level, unsigned x, unsigned y);
87 
88 // ReadOrientedViewMapPixel
100 float ReadDirectionalViewMapPixelCF(int iOrientation, int level, unsigned x, unsigned y);
101 
102 // DEBUG
103 FEdge *GetSelectedFEdgeCF();
104 
105 } // end of namespace ContextFunctions
106 
107 } /* 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:32
static unsigned x[3]
Definition: RandGen.cpp:87