#include <qualattr.h>
Inheritance diagram for QualityAttribute:
Public Member Functions | |
QualityAttribute () | |
QualityAttribute (Quality NewQuality) | |
virtual void | Render (RenderRegion *pRegion, BOOL Temp=FALSE) |
Sets the quality attribute for the given render region. | |
virtual void | Restore (RenderRegion *, BOOL) |
Restores the quality attribute for the given render region. | |
virtual void | SimpleCopy (AttributeValue *) |
See AttributeValue::SimpleCopy. | |
virtual NodeAttribute * | MakeNode () |
Make a AttrQuality node from this line width attribute. | |
virtual BOOL | IsDifferent (AttributeValue *) |
See base class version. | |
Static Public Member Functions | |
static BOOL | Init () |
Registers quality attribute, and provides a default attribute. | |
Public Attributes | |
Quality | QualityValue |
Definition at line 121 of file qualattr.h.
|
Definition at line 125 of file qualattr.h.
|
|
Definition at line 126 of file qualattr.h. 00126 { QualityValue = NewQuality; }
|
|
Registers quality attribute, and provides a default attribute.
Reimplemented from SimpleCCObject. Definition at line 407 of file quality.cpp. 00408 { 00409 // Defaults to QUALITY_DEFAULT (not surprisingly) 00410 QualityAttribute *pAttr = new QualityAttribute; 00411 if (pAttr == NULL) 00412 return FALSE; 00413 00414 UINT32 ID = AttributeManager::RegisterDefaultAttribute(CC_RUNTIME_CLASS(NodeRenderableInk), 00415 pAttr); 00416 if (ID == ATTR_BAD_ID) 00417 return FALSE; 00418 ENSURE(ID == ATTR_QUALITY, "Incorrect ID for attribute!"); 00419 return TRUE; 00420 }
|
|
See base class version.
Reimplemented from AttributeValue. Definition at line 459 of file quality.cpp. 00460 { 00461 ENSURE(GetRuntimeClass() == pAttr->GetRuntimeClass(), 00462 "Different attribute types in AttributeValue::IsDifferent()"); 00463 return ((QualityAttribute *) pAttr)->QualityValue != QualityValue; 00464 }
|
|
Make a AttrQuality node from this line width attribute.
Reimplemented from AttributeValue. Definition at line 435 of file quality.cpp. 00436 { 00437 // Create new attribute node 00438 AttrQuality *pAttr = new AttrQuality(); 00439 00440 // Copy attribute value into the new node. 00441 pAttr->Value.SimpleCopy(this); 00442 00443 // Return the new node 00444 return pAttr; 00445 }
|
|
Sets the quality attribute for the given render region.
Implements AttributeValue. Definition at line 349 of file quality.cpp. 00350 { 00351 pRegion->SetQuality(this, Temp); 00352 }
|
|
Restores the quality attribute for the given render region.
Implements AttributeValue. Definition at line 370 of file quality.cpp. 00371 { 00372 pRegion->RestoreQuality(this, Temp); 00373 }
|
|
See AttributeValue::SimpleCopy.
Implements AttributeValue. Definition at line 389 of file quality.cpp. 00390 { 00391 QualityValue = ((QualityAttribute *) pValue)->QualityValue; 00392 }
|
|
Definition at line 134 of file qualattr.h. |