Show KImageCardinalDirection.h syntax highlighted
/*
Copyright (C) 2003, 2004, 2005 by Luca Cappa
Written by Luca Cappa groton@users.sourceforge.net
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __KIMAGECARDINALDIRECTION_H__
#define __KIMAGECARDINALDIRECTION_H__
#include "csutil/scf.h"
#include "csutil/ref.h"
class KImageCardinalDirection
{
protected:
/**
* The array fo images.
*/
csRefArray<iImage> m_images;
public:
/**
Fill a csRefArray with an image rotated in the 4 cardinal directions;
the image is loaded by the provided filename.
\param
*/
KImageCardinalDirection (char* p_fileName);
/**
Rotate an image in the given direction. the p_image passed in the argument is supposed
to be NORTH oriented.
*/
static csPtr<iImage> Rotate (iImage* p_image, const KOrientation& p_or);
iImage* operator [] (KOrientation const& p_o);
};
#endif // __KIMAGECARDINALDIRECTION_H__
See more files for this project here