00001
00002
00003
00004
00005
00006
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00029
00030 #ifndef CONTEXT_FUNCTIONS_HPP
00031 # define CONTEXT_FUNCTIONS_HPP
00032
00033 # include "Canvas.h"
00034 # include "../image/Image.h"
00035 # include "../image/GaussianFilter.h"
00036
00041
00042
00043
00045
00046 namespace ContextFunctions {
00047
00048
00049 LIB_STROKE_EXPORT
00051 unsigned GetTimeStampCF();
00052
00053
00055 LIB_STROKE_EXPORT
00056 unsigned GetCanvasWidthCF();
00057
00058
00060 LIB_STROKE_EXPORT
00061 unsigned GetCanvasHeightCF();
00062
00063
00065 LIB_STROKE_EXPORT
00066 void LoadMapCF(const char *iFileName, const char *iMapName, unsigned iNbLevels=4, float iSigma=1.f);
00067
00068
00082 LIB_STROKE_EXPORT
00083 float ReadMapPixelCF(const char *iMapName, int level, unsigned x, unsigned y);
00084
00085
00097 LIB_STROKE_EXPORT
00098 float ReadCompleteViewMapPixelCF(int level, unsigned x, unsigned y);
00099
00100
00114 LIB_STROKE_EXPORT
00115 float ReadDirectionalViewMapPixelCF(int iOrientation, int level, unsigned x, unsigned y);
00116
00117
00118 LIB_STROKE_EXPORT
00119 FEdge * GetSelectedFEdgeCF();
00120
00121 }
00122
00123 #endif // CONTEXT_FUNCTIONS_HPP
00124