Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

IMG_CanvasRGBA32Action Class Reference

Base class for actions on RGBA32 pixmaps. More...

#include <IMG_CanvasRGBA32Action.h>

Inheritance diagram for IMG_CanvasRGBA32Action:

List of all members.

Public Methods

 IMG_CanvasRGBA32Action (GEN_String &name,IMG_CanvasRGBA32 *canvas,IMG_PixmapRGBA32 *undoPixmap,IMG_Rect &undoBnds)
 Constructor. More...

void setDirtyHackImagePointer (void *dirtyHackImagePointer)
 Dirty hack to store the Blender image. More...

void* getDirtyHackImagePointer ()
 Dirty hack to return the Blender image. More...


Protected Methods

virtual ~IMG_CanvasRGBA32Action ()
 Destructor. More...

virtual void doApply ()
 Apply the action on the canvas. More...

virtual void doUndo ()
 Implementations should overload this method to provide the undo functionality.


Protected Attributes

IMG_CanvasRGBA32m_canvas
 The image on which the action should be applied (or undone).

IMG_PixmapRGBA32m_undoPixmap
 The pixels that are pasted to undo the action.

IMG_PixmapRGBA32m_redoPixmap
 The pixels that are pasted to redo the action.

IMG_Rect m_canvasBnds
 The area in the image that is affected by this action.

IMG_Rect m_undoBnds
 The bounds of the undo and redo pixmaps.

void* m_dirtyHackImagePointer
 Storage for dirty hack image data needed temporarily for Blender.


Detailed Description

Base class for actions on RGBA32 pixmaps.

Author(s):
Maarten Gribnau
Date:
April 24, 2001


Constructor & Destructor Documentation

IMG_CanvasRGBA32Action::IMG_CanvasRGBA32Action ( GEN_String & name,
IMG_CanvasRGBA32 * canvas,
IMG_PixmapRGBA32 * undoPixmap,
IMG_Rect & undoBnds )
 

Constructor.

Parameters:
name   The name of the action.
canvas   The canvas on which the action should be applied (or undone). The action is supposed to be applied already.
undoPixmap   The pixels of the canvas before the action was applied. This pixmap should have the same dimensions as the canvas itself. The pixels of this pixmap are copied and stored locally.
undoBnds   The area in the canvas that is affected by this action.

IMG_CanvasRGBA32Action::~IMG_CanvasRGBA32Action ( ) [protected, virtual]
 

Destructor.

The destructor is protected because actions should be deleted by decrementing the reference count.


Member Function Documentation

void IMG_CanvasRGBA32Action::doApply ( ) [protected, virtual]
 

Apply the action on the canvas.

Overloaded.

void * IMG_CanvasRGBA32Action::getDirtyHackImagePointer ( ) [inline]
 

Dirty hack to return the Blender image.

Returns:
Pointer to Blender image.

void IMG_CanvasRGBA32Action::setDirtyHackImagePointer ( void * dirtyHackImagePointer ) [inline]
 

Dirty hack to store the Blender image.

Parameters:
dirtyHackImagePointer   Pointer to Blender image.


The documentation for this class was generated from the following files:
Generated at Thu May 3 17:29:38 2001 for ImgLib by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000