h o m e d o c u m e n t a t i o n c l a s s h i e r a r c h y

ContextFunctions.h

Go to the documentation of this file.
00001 //
00002 //  Filename         : AdvancedFunctions0D.h
00003 //  Author(s)        : Stephane Grabli
00004 //  Purpose          : Functions related to context queries
00005 //  Date of creation : 20/12/2003
00006 //
00008 
00009 
00010 //
00011 //  Copyright (C) : Please refer to the COPYRIGHT file distributed 
00012 //   with this source distribution. 
00013 //
00014 //  This program is free software; you can redistribute it and/or
00015 //  modify it under the terms of the GNU General Public License
00016 //  as published by the Free Software Foundation; either version 2
00017 //  of the License, or (at your option) any later version.
00018 //
00019 //  This program is distributed in the hope that it will be useful,
00020 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00021 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00022 //  GNU General Public License for more details.
00023 //
00024 //  You should have received a copy of the GNU General Public License
00025 //  along with this program; if not, write to the Free Software
00026 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
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 // Context Functions definitions
00043 //
00045 
00046 namespace ContextFunctions {
00047 
00048   // GetTimeStamp
00049   LIB_STROKE_EXPORT
00051   unsigned GetTimeStampCF();
00052 
00053   // GetCanvasWidth
00055   LIB_STROKE_EXPORT
00056   unsigned GetCanvasWidthCF();
00057  
00058   // GetCanvasHeight
00060   LIB_STROKE_EXPORT 
00061   unsigned GetCanvasHeightCF();
00062   
00063   // Load map
00065   LIB_STROKE_EXPORT 
00066   void LoadMapCF(const char *iFileName, const char *iMapName, unsigned iNbLevels=4, float iSigma=1.f);
00067 
00068   // ReadMapPixel
00082   LIB_STROKE_EXPORT 
00083   float ReadMapPixelCF(const char *iMapName, int level, unsigned x, unsigned y);
00084 
00085   // ReadCompleteViewMapPixel
00097   LIB_STROKE_EXPORT 
00098   float ReadCompleteViewMapPixelCF(int level, unsigned x, unsigned y);
00099 
00100   // ReadOrientedViewMapPixel
00114   LIB_STROKE_EXPORT 
00115   float ReadDirectionalViewMapPixelCF(int iOrientation, int level, unsigned x, unsigned y);
00116 
00117   // DEBUG
00118   LIB_STROKE_EXPORT 
00119   FEdge * GetSelectedFEdgeCF();
00120 
00121 } // end of namespace ContextFunctions
00122 
00123 #endif // CONTEXT_FUNCTIONS_HPP
00124