#include <bfxbase.h>
Inheritance diagram for BitmapEffectBase:
Public Member Functions | |
BitmapEffectBase () | |
Default constructor for bitmap effect object. | |
virtual | ~BitmapEffectBase () |
Default constructor for bitmap effect object. | |
virtual BOOL | SetParameters () |
Sets the bitmap effect params up to the default. | |
virtual BOOL | SetSourceImage (KernelBitmap *theSource) |
Sets up the effect to use a chosen bitmap. | |
virtual BOOL | GetEffectInfo (UINT32 *pOrderBitmap, UINT32 *pOrderEffect, UINT32 *pPlotEstimate) |
Gets information about the given effect. | |
virtual BOOL | GetDestinationInfo (UINT32 *pDestinationSize, INT32 *pDestinationDepth, UINT32 *pDestinationWidth, UINT32 *pDestinationHeight) |
Gets information about the given effect. | |
virtual BOOL | UseDestinationBitmap (KernelBitmap *theDestination) |
Indicates the Run method should use this bitmap for output. | |
virtual BOOL | Run () |
Runs a transform! | |
virtual KernelBitmap * | GetDestination () |
Returns a pointer to the destination image. | |
virtual BOOL | IsSourceSpecified () |
Indicates whether or a source image has been specified yet. | |
virtual BOOL | IsAbleToRun () |
Indicates whether you've done enough setting up to do a Run. | |
Static Public Member Functions | |
static BOOL | Init () |
Initialises the bitmap effect subsystem. | |
static BOOL | DeInit () |
Initialises the bitmap effect subsystem. | |
static void | TestGD () |
Protected Attributes | |
KernelBitmap * | Source |
KernelBitmap * | Destination |
Static Protected Attributes | |
static BfxALU * | ALU = NULL |
Private Member Functions | |
CC_DECLARE_DYNCREATE (BitmapEffectBase) |
Definition at line 120 of file bfxbase.h.
|
Default constructor for bitmap effect object.
Definition at line 142 of file bfxbase.cpp. 00143 { 00144 Source = NULL; 00145 Destination = NULL; 00146 // Monitor = NULL; 00147 00148 if (!(SetParameters())) /* virtual */ 00149 { 00150 ERROR3("Bitmap effect default parameter set failed in constructor"); 00151 } 00152 }
|
|
Default constructor for bitmap effect object.
Definition at line 173 of file bfxbase.cpp. 00174 { 00175 ERROR3IF((Destination!=NULL),"Bitmap effect destructor called when destination exists"); 00176 // Unforunately we habe to use ERROR3 not ERROR2 as we can't return a flag 00177 }
|
|
|
|
Initialises the bitmap effect subsystem.
Definition at line 224 of file bfxbase.cpp. 00225 { 00226 if ( (ALU) && (ALU->DeInit()) ) 00227 { 00228 delete(ALU); 00229 ALU=NULL; 00230 return TRUE; 00231 } 00232 else return FALSE; 00233 }
|
|
Returns a pointer to the destination image.
Definition at line 405 of file bfxbase.cpp. 00406 { 00407 return (Destination); 00408 }
|
|
Gets information about the given effect.
Definition at line 340 of file bfxbase.cpp. 00344 { 00345 00346 ERROR2IF(!Source,FALSE,"No source for bitmap effect"); 00347 00348 if (pDestinationSize) *pDestinationSize=0; 00349 if (pDestinationDepth) *pDestinationDepth=0; 00350 if (pDestinationWidth) *pDestinationWidth=0; 00351 if (pDestinationHeight) *pDestinationHeight=0; 00352 00353 return(TRUE); 00354 }
|
|
Gets information about the given effect.
Any parameters passed as NULL will not be filled Definition at line 306 of file bfxbase.cpp. 00308 { 00309 00310 if (pOrderBitmap) *pOrderBitmap=0; 00311 if (pOrderEffect) *pOrderEffect=0; 00312 if (pPlotEstimate) *pPlotEstimate=0; 00313 return(TRUE); 00314 }
|
|
Initialises the bitmap effect subsystem.
Reimplemented from SimpleCCObject. Definition at line 196 of file bfxbase.cpp.
|
|
Indicates whether you've done enough setting up to do a Run.
Definition at line 451 of file bfxbase.cpp. 00452 { 00453 return IsSourceSpecified(); 00454 }
|
|
Indicates whether or a source image has been specified yet.
Definition at line 428 of file bfxbase.cpp.
|
|
Runs a transform!
Reimplemented in BitmapEffectSILT, and TestBitmapEffect. Definition at line 473 of file bfxbase.cpp. 00474 { 00475 ERROR2IF(!IsAbleToRun(),FALSE,"BitmapEffectRun called at inappropriate time"); 00476 return TRUE; 00477 }
|
|
Sets the bitmap effect params up to the default.
Definition at line 253 of file bfxbase.cpp. 00254 { 00255 return TRUE; 00256 }
|
|
Sets up the effect to use a chosen bitmap.
Definition at line 275 of file bfxbase.cpp.
|
|
Definition at line 202 of file bfxbase.cpp.
|
|
Indicates the Run method should use this bitmap for output.
This routine can also be called with NULL to indicate that responsibility for an output image after a run has been assumed by the caller. The object won't destruct when it has a destination bitmap. Definition at line 381 of file bfxbase.cpp. 00382 { 00383 Destination = theDestination; 00384 return TRUE; 00385 }
|
|
|
|
|
|
|