00001 /*! \file 00002 \author victorien ferry & www.m4nkind.com 00003 \brief This file applies the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1 , read file COPYING. 00004 */ 00005 #ifndef COM_M4NKIND_GreyImage2nSquareSized_H 00006 #define COM_M4NKIND_GreyImage2nSquareSized_H 00007 00008 #include "GreyImage.h" 00009 #include "PackLong_WithLimits.h" 00010 /*! 00011 \class GreyImage2nSquareSized 00012 \ingroup BaseObjectInherited_VedaLibImage BaseObjectInheritedDocGroup 00013 \brief Virtual Class for Grey Image that exactly size a 2-Power-N square sized image. 00014 Some image generation Algorythms implies to use such images. 00015 */ 00016 class GreyImage2nSquareSized : public GreyImage 00017 { 00018 /*================================================================== 00019 PUBLIC 00020 ==================================================================*/ 00021 public: 00022 /*! 00023 \brief Constructor. There should only be members initialisation there. 00024 */ 00025 GreyImage2nSquareSized(void); 00026 00027 /*! 00028 \brief Class Inheritance Descriptors. Also forces a destructor. See BASEOBJECT_DECLARE_... in .cpp 00029 */ 00030 BASEOBJECT_DEFINE_VIRTUALCLASS(GreyImage2nSquareSized); 00031 00032 /*! 00033 \brief Return the pixel width of the image 00034 */ 00035 virtual unsigned int GetPixelWidth(){ return( 1<<mSer_2nPixelSize.Get() ); }; 00036 /*! 00037 \brief Return the pixel height of the image 00038 */ 00039 virtual unsigned int GetPixelHeight(){ return( 1<<mSer_2nPixelSize.Get() ); }; 00040 00041 /*================================================================== 00042 PROTECTED 00043 ==================================================================*/ 00044 protected: 00045 //! the square 2n pixel size: 00046 PackLong_WithLimits mSer_2nPixelSize; 00047 }; 00048 00049 #endif
/\/\ 4 N k ! N D _______ _ __ ___ _____ ___ _ _ ____ ___________ __//___ /________ |/ / ___________\_______/ \ / _ _ \/ _ / _ / _/_/____/ _ __ / / / / / / / \ \/ / / \ \ / \\___/___/___/ ¯ _____/_____/ ______\___/_____/\________\\ \________/_ ___ __ l____\ /elD! http://www.m4nkind.com \____/