#include <attrval.h>
Inheritance diagram for DrawingModeAttribute:
Public Member Functions | |
DrawingModeAttribute () | |
DrawingModeAttribute (DrawModeType NewDrawingMode) | |
virtual void | Restore (RenderRegion *, BOOL) |
Restores the drawing mode attribute for the given render region. i.e. all objects drawn will now be drawn using this drawing mode. | |
virtual void | Render (RenderRegion *, BOOL Temp=FALSE) |
Sets the drawing mode attribute for the given render region. i.e. all objects drawn will now be drawn using this drawing mode. | |
virtual void | SimpleCopy (AttributeValue *) |
See AttributeValue::SimpleCopy. | |
virtual NodeAttribute * | MakeNode () |
Used when restoring attributes from the render region's context stack.Used when a render region needs to change a particular rendering attribute.This function provides a way of copying the contents of an AttributeValue derived class to another. It is assumed that the source object is the same class as the destination object. The data from the object pointed to by pAttr is copied into this object. This is primarily used when cloning render regions - the context stack must be copied, and if it points to any temporary objects, then they must be copied too, to avoid multiple deletion errors. Given an AttributeValue object, construct the appropriate NodeAttribute object which can be put into a document tree. This should be over-ridden for all derived AttributeValue classes, except those that cannot be put into the document tree (e.g. DrawingModeAttribute). The base class version (i.e. this one) will always ENSURE because it should not be called. | |
BOOL | IsDifferent (AttributeValue *pAttr) |
Compare two AttributeValue objects. The base class version always returns TRUE - derived classes should override this function to provide functionality. | |
Public Attributes | |
DrawModeType | DrawingMode |
Static Public Attributes | |
static UINT32 | ID = ATTR_BAD_ID |
Definition at line 460 of file attrval.h.
|
Definition at line 464 of file attrval.h.
|
|
Definition at line 465 of file attrval.h. 00465 { DrawingMode = NewDrawingMode; }
|
|
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 1718 of file attr.cpp. 01719 { 01720 ENSURE(GetRuntimeClass() == pAttr->GetRuntimeClass(), 01721 "Different attribute types in AttributeValue::IsDifferent()"); 01722 return TRUE; 01723 }
|
|
Used when restoring attributes from the render region's context stack.Used when a render region needs to change a particular rendering attribute.This function provides a way of copying the contents of an AttributeValue derived class to another. It is assumed that the source object is the same class as the destination object. The data from the object pointed to by pAttr is copied into this object. This is primarily used when cloning render regions - the context stack must be copied, and if it points to any temporary objects, then they must be copied too, to avoid multiple deletion errors. Given an AttributeValue object, construct the appropriate NodeAttribute object which can be put into a document tree. This should be over-ridden for all derived AttributeValue classes, except those that cannot be put into the document tree (e.g. DrawingModeAttribute). The base class version (i.e. this one) will always ENSURE because it should not be called.
Reimplemented from AttributeValue. Definition at line 1725 of file attr.cpp. 01726 { 01727 return NULL; 01728 }
|
|
Sets the drawing mode attribute for the given render region. i.e. all objects drawn will now be drawn using this drawing mode.
Implements AttributeValue. Definition at line 1672 of file attr.cpp. 01673 { 01674 pRegion->SetDrawingMode(this, Temp); 01675 }
|
|
Restores the drawing mode attribute for the given render region. i.e. all objects drawn will now be drawn using this drawing mode.
Implements AttributeValue. Definition at line 1694 of file attr.cpp. 01695 { 01696 pRegion->RestoreDrawingMode(this, Temp); 01697 }
|
|
See AttributeValue::SimpleCopy.
Implements AttributeValue. Definition at line 1713 of file attr.cpp. 01714 { 01715 DrawingMode = ((DrawingModeAttribute *) pValue)->DrawingMode; 01716 }
|
|
|
|
|