#include <fillval.h>
Inheritance diagram for FillMappingAttribute:
Public Member Functions | |
FillMappingAttribute () | |
Constructor for 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 BOOL | IsDifferent (AttributeValue *) |
Compare two AttributeValue objects. The base class version always returns TRUE - derived classes should override this function to provide functionality. | |
virtual FillMappingAttribute & | operator= (FillMappingAttribute &Attrib) |
virtual INT32 | operator== (const FillMappingAttribute &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 1621 of file fillval.h.
|
Constructor for mapping attributes.
Definition at line 7942 of file fillval.cpp. 07943 { 07944 Repeat = 2; 07945 }
|
|
Registers fill mapping attribute, and provides a default attribute to give linear graduations.
Reimplemented from SimpleCCObject. Definition at line 7961 of file fillval.cpp. 07962 { 07963 // Default to simple linear mapping (ignored for flat fills, obviously) 07964 FillMappingAttribute *pAttr = new FillMappingLinearAttribute; 07965 if (pAttr==NULL) 07966 // error message has already been set by new 07967 return FALSE; 07968 07969 UINT32 ID = AttributeManager::RegisterDefaultAttribute(CC_RUNTIME_CLASS(NodeRenderableInk), 07970 pAttr); 07971 07972 ERROR2IF(ID == ATTR_BAD_ID, FALSE, "Bad ID when Initialising FillMappingAttribute"); 07973 ERROR2IF(ID != ATTR_FILLMAPPING, FALSE, "Incorrect ID for FillMappingAttribute"); 07974 07975 return TRUE; 07976 }
|
|
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 8036 of file fillval.cpp. 08037 { 08038 if (pVal->GetRuntimeClass() != GetRuntimeClass()) 08039 return TRUE; 08040 08041 return (Repeat != ((FillMappingAttribute*)pVal)->Repeat); 08042 }
|
|
Definition at line 8044 of file fillval.cpp.
|
|
Definition at line 8051 of file fillval.cpp. 08052 { 08053 if (Attrib.GetRuntimeClass() != GetRuntimeClass()) 08054 return FALSE; 08055 08056 return (Repeat == Attrib.Repeat); 08057 }
|
|
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 8009 of file fillval.cpp. 08010 { 08011 pRegion->SetFillMapping(this, Temp); 08012 }
|
|
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 8031 of file fillval.cpp. 08032 { 08033 pRegion->RestoreFillMapping(this, Temp); 08034 }
|
|
See AttributeValue::SimpleCopy.
Implements AttributeValue. Definition at line 7989 of file fillval.cpp. 07990 { 07991 Repeat = ((FillMappingAttribute *) pValue)->Repeat; 07992 }
|
|
|