#include <fillval.h>
Inheritance diagram for TranspFillMappingAttribute:
Public Member Functions | |
TranspFillMappingAttribute () | |
Constructor for transp mapping attributes. | |
virtual void | Restore (RenderRegion *, BOOL) |
Restores the fill type attribute for the given render region. i.e. all paths filled will now be filled with this fill attribute. | |
virtual void | Render (RenderRegion *, BOOL Temp=FALSE) |
Sets the fill type attribute for the given render region. i.e. all paths filled will now be filled with this fill attribute. | |
virtual void | SimpleCopy (AttributeValue *) |
See AttributeValue::SimpleCopy. | |
virtual FillMappingAttribute * | MakeSimilarNonTranspFillMapping (void) |
virtual BOOL | IsDifferent (AttributeValue *) |
Compare two AttributeValue objects. The base class version always returns TRUE - derived classes should override this function to provide functionality. | |
virtual TranspFillMappingAttribute & | operator= (TranspFillMappingAttribute &Attrib) |
virtual INT32 | operator== (const TranspFillMappingAttribute &Attrib) |
Static Public Member Functions | |
static BOOL | Init () |
Registers fill mapping attribute, and provides a default attribute to give linear graduations. | |
Public Attributes | |
INT32 | Repeat |
Definition at line 1781 of file fillval.h.
|
Constructor for transp mapping attributes.
Definition at line 8358 of file fillval.cpp. 08359 { 08360 Repeat = 2; 08361 }
|
|
Registers fill mapping attribute, and provides a default attribute to give linear graduations.
Reimplemented from SimpleCCObject. Definition at line 8377 of file fillval.cpp. 08378 { 08379 // Default to simple linear mapping (ignored for flat fills, obviously) 08380 TranspFillMappingAttribute *pAttr = new TranspFillMappingLinearAttribute; 08381 if (pAttr==NULL) 08382 // error message has already been set by new 08383 return FALSE; 08384 08385 UINT32 ID = AttributeManager::RegisterDefaultAttribute(CC_RUNTIME_CLASS(NodeRenderableInk), 08386 pAttr); 08387 ERROR2IF(ID == ATTR_BAD_ID, FALSE, "Bad ID when Initialising TranspFillMappingAttribute"); 08388 ERROR2IF(ID != ATTR_TRANSPFILLMAPPING, FALSE, "Incorrect ID for TranspFillMappingAttribute"); 08389 08390 return TRUE; 08391 }
|
|
Compare two AttributeValue objects. The base class version always returns TRUE - derived classes should override this function to provide functionality.
Reimplemented from AttributeValue. Definition at line 8451 of file fillval.cpp. 08452 { 08453 if (pVal->GetRuntimeClass() != GetRuntimeClass()) 08454 return TRUE; 08455 08456 return (Repeat != ((TranspFillMappingAttribute*)pVal)->Repeat); 08457 }
|
|
Reimplemented in TranspFillMappingLinearAttribute, and TranspFillMappingSinAttribute. Definition at line 8478 of file fillval.cpp. 08479 { 08480 FillMappingAttribute *pNewAttr = new FillMappingAttribute; 08481 if (pNewAttr != NULL) 08482 { 08483 pNewAttr->Repeat = Repeat; 08484 } 08485 08486 return pNewAttr; 08487 }
|
|
Definition at line 8459 of file fillval.cpp.
|
|
Definition at line 8466 of file fillval.cpp. 08467 { 08468 if (Attrib.GetRuntimeClass() != GetRuntimeClass()) 08469 return FALSE; 08470 08471 return (Repeat == Attrib.Repeat); 08472 }
|
|
Sets the fill type attribute for the given render region. i.e. all paths filled will now be filled with this fill attribute.
Implements AttributeValue. Definition at line 8424 of file fillval.cpp. 08425 { 08426 pRegion->SetTranspFillMapping(this, Temp); 08427 }
|
|
Restores the fill type attribute for the given render region. i.e. all paths filled will now be filled with this fill attribute.
Implements AttributeValue. Definition at line 8446 of file fillval.cpp. 08447 { 08448 pRegion->RestoreTranspFillMapping(this, Temp); 08449 }
|
|
See AttributeValue::SimpleCopy.
Implements AttributeValue. Definition at line 8404 of file fillval.cpp. 08405 { 08406 Repeat = ((TranspFillMappingAttribute *) pValue)->Repeat; 08407 }
|
|
|