AttrBitmapChange Class Reference

Change Bitmap Attribute class. This Attribute never exists in the Tree. It is used for changing a Bitmap Fill. More...

#include <fillattr2.h>

Inheritance diagram for AttrBitmapChange:

AttrValueChange AttrFillGeometry NodeAttribute NodeRenderable Node CCObject SimpleCCObject AttrBitmapDpiChange AttrBitmapTessChange List of all members.

Public Member Functions

 AttrBitmapChange ()
virtual UINT32 GetAttrNameID (void)
 Returns a string resource ID describing the attribute.
virtual AttributeValueGetAttributeValue ()
virtual AttrFillGeometryMutateFill (AttrFillGeometry *FillToMutate)
 Changes the bitmap for a fill.

Protected Attributes

BitmapFillAttribute Value

Detailed Description

Change Bitmap Attribute class. This Attribute never exists in the Tree. It is used for changing a Bitmap Fill.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
8/8/94
See also:
AttrFillGeometry

Definition at line 204 of file fillattr2.h.


Constructor & Destructor Documentation

AttrBitmapChange::AttrBitmapChange  )  [inline]
 

Definition at line 209 of file fillattr2.h.

00209 : AttrValueChange() {}


Member Function Documentation

virtual AttributeValue* AttrBitmapChange::GetAttributeValue  )  [inline, virtual]
 

Implements AttrValueChange.

Definition at line 213 of file fillattr2.h.

00213 { return &Value; }

UINT32 AttrBitmapChange::GetAttrNameID void   )  [virtual]
 

Returns a string resource ID describing the attribute.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
3/01/95
Returns:
Attribute description ID

Reimplemented from AttrValueChange.

Reimplemented in AttrBitmapTessChange, and AttrBitmapDpiChange.

Definition at line 4389 of file fillattr.cpp.

04390 {
04391     return (_R(IDS_BITMAP_CHANGE));
04392 }                                  

AttrFillGeometry * AttrBitmapChange::MutateFill AttrFillGeometry FillToMutate  )  [virtual]
 

Changes the bitmap for a fill.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
13/12/94
Parameters:
The fill that is to be changed. [INPUTS]

Reimplemented from AttrValueChange.

Reimplemented in AttrBitmapTessChange, and AttrBitmapDpiChange.

Definition at line 4110 of file fillattr.cpp.

04111 { 
04112 #if !defined(EXCLUDE_FROM_RALPH)
04113     // Make a copy of this Fill to change
04114     AttrFillGeometry* NewFill = (AttrFillGeometry*)FillToMutate->SimpleCopy();
04115     if (NewFill == NULL)
04116         return NULL;
04117 
04118 /*
04119     INT32 OldBPP;
04120     
04121     if (NewFill->GetBitmap())
04122         OldBPP = NewFill->GetBitmap()->GetBPP();
04123     else
04124         OldBPP = 24;
04125 
04126     INT32 NewBPP = this->GetBitmap()->GetBPP();
04127 
04128     if (OldBPP <= 8 && NewBPP > 8)
04129     {
04130         // Remove the end point blobs if necessary
04131         FillToMutate->DrawEndBlobs();
04132     }
04133 */
04134 
04135     NewFill->CopyBitmap(GetBitmap());
04136 
04137     return NewFill; 
04138 #else
04139     return NULL;
04140 #endif
04141 }


Member Data Documentation

BitmapFillAttribute AttrBitmapChange::Value [protected]
 

Definition at line 217 of file fillattr2.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:50:06 2007 for Camelot by  doxygen 1.4.4