Image Class Reference

#include <image.h>

Inheritance diagram for Image:

FrameBuffer CmdHistory PluginImage PNGImage List of all members.

Public Member Functions

virtual ~Image ()
virtual void save (const std::string &fileName)=0
bool bNew () const
std::string name () const
std::string filePattern () const
void name (const std::string &name)
Imageoperator<< (Cmd *pCmd)

Static Public Member Functions

static ImagereadImageFromFile (const char *szFileName)

Protected Member Functions

 Image (const BoxSize &size)
 Image (const std::string &fileName)

Classes

class  ErrLoad
class  ErrSave
class  ErrUnknownFF

Detailed Description

Abstract class Image

Definition at line 19 of file image.h.


Constructor & Destructor Documentation

virtual Image::~Image (  )  [inline, virtual]

Definition at line 27 of file image.h.

Image::Image ( const BoxSize size  )  [protected]

Initialize base. Use AppWnd::newDocName() method to obtain image name.

Parameters:
size Desired size of image.

Image::Image ( const std::string &  fileName  )  [inline, protected]

Initialize base.

Parameters:
fileName File name for new image.

Definition at line 96 of file image.h.


Member Function Documentation

static Image* Image::readImageFromFile ( const char *  szFileName  )  [static]

Read image from file and create Image object.

Parameters:
szFileName Image file name.
Returns:
Pointer to Image object.

virtual void Image::save ( const std::string &  fileName  )  [pure virtual]

Save image to desired file.

Parameters:
fileName File name to save with.

Implemented in PluginImage, and PNGImage.

bool Image::bNew (  )  const [inline]

Returns:
Return true if image is not from file

Definition at line 38 of file image.h.

std::string Image::name (  )  const [inline]

Returns:
Return image file name.

Definition at line 43 of file image.h.

std::string Image::filePattern (  )  const

Returns:
Return file pattern for fl_file_chooser dialog argument.

void Image::name ( const std::string &  name  )  [inline]

Set image name.

Parameters:
name Desired name.

Definition at line 54 of file image.h.

Image& Image::operator<< ( Cmd pCmd  )  [inline]

Put command to history list and execute command. *pCmd object must by allocated on the heap and can never be destroyed. CmdHistory destroys it.

Parameters:
pCmd Pointer to command.
Returns:
Reference to this. Needed for << operator concatenation.

Reimplemented from CmdHistory.

Definition at line 62 of file image.h.

References Cmd::exec(), and CmdHistory::operator<<().


The documentation for this class was generated from the following file:
Generated on Wed Aug 29 00:01:04 2007 for GED 2006 by  doxygen 1.5.2