#include <clipattr.h>
Inheritance diagram for ClipRegionAttribute:
Public Member Functions | |
ClipRegionAttribute () | |
~ClipRegionAttribute () | |
virtual void | Render (RenderRegion *pRender, BOOL Temp=FALSE) |
virtual void | Restore (RenderRegion *pRender, BOOL Temp) |
virtual void | GoingOutOfScope (RenderRegion *pRender) |
virtual void | SimpleCopy (AttributeValue *pSource) |
Make this attribute into a straight copy of the given attribute. | |
virtual NodeAttribute * | MakeNode () |
This method is here so that an AttributeValue can build and return a corresponding NodeAttribute, for insertion into the tree. We don't do this, as we're not linked with NodeAttributes at all. | |
virtual BOOL | IsDifferent (AttributeValue *pOther) |
Path * | GetClipPath () const |
void | SetClipPath (Path *pClipPath) |
void | SetResponsibleForGrouping (BOOL starts) |
BOOL | IsResponsibleForGrouping () |
Static Public Member Functions | |
static BOOL | Init () |
Private Attributes | |
Path * | m_pClipPath |
BOOL | m_bResponsibleForGrouping |
Definition at line 120 of file clipattr.h.
|
Definition at line 133 of file clipattr.cpp. 00134 { 00135 m_pClipPath = NULL; 00136 m_bResponsibleForGrouping = FALSE; 00137 }
|
|
Definition at line 155 of file clipattr.cpp. 00156 { 00157 if (m_pClipPath != NULL) 00158 m_pClipPath = NULL; 00159 }
|
|
Definition at line 142 of file clipattr.h. 00142 { return m_pClipPath; }
|
|
Reimplemented from AttributeValue. Definition at line 229 of file clipattr.cpp. 00230 { 00231 // DEBUG: 00232 // TRACEUSER( "MarkH", _T("ClipRegionAttribute::GoingOutOfScope; 0x%x with path 0x%x\n"), (DWORD)this, 00233 // (DWORD)m_pClipPath); 00234 }
|
|
Reimplemented from SimpleCCObject. Definition at line 321 of file clipattr.cpp. 00322 { 00323 ClipRegionAttribute* pAttrVal = NULL; 00324 pAttrVal = new ClipRegionAttribute; 00325 if (pAttrVal == NULL) 00326 return FALSE; 00327 00328 UINT32 ID = AttributeManager::RegisterDefaultAttribute(CC_RUNTIME_CLASS(NodeRenderableInk), 00329 pAttrVal); 00330 00331 if (ID == ATTR_BAD_ID) 00332 return FALSE; 00333 00334 ERROR3IF(ID != ATTR_CLIPREGION, "Incorrect ID for attribute!"); 00335 return TRUE; 00336 }
|
|
Reimplemented from AttributeValue. Definition at line 296 of file clipattr.cpp. 00297 { 00298 // DEBUG: 00299 // TRACEUSER( "Karim", _T("ClipRegionAttribute::IsDifferent; we are 0x%x\n"), (DWORD)this); 00300 ERROR2IF( GetRuntimeClass() != pOther->GetRuntimeClass(), TRUE, 00301 "Attribute difference comparison must be between same types" ); 00302 return (m_pClipPath != ((ClipRegionAttribute*)pOther)->GetClipPath()); 00303 }
|
|
Definition at line 149 of file clipattr.h. 00149 { return m_bResponsibleForGrouping; }
|
|
This method is here so that an AttributeValue can build and return a corresponding NodeAttribute, for insertion into the tree. We don't do this, as we're not linked with NodeAttributes at all.
Reimplemented from AttributeValue. Definition at line 275 of file clipattr.cpp. 00276 { 00277 return NULL; 00278 }
|
|
Implements AttributeValue. Definition at line 177 of file clipattr.cpp. 00178 { 00179 // DEBUG: 00180 // TRACEUSER( "Karim", _T("ClipRegionAttribute::Render; 0x%x with path 0x%x\n"), (DWORD)this, 00181 // (DWORD)m_pClipPath); 00182 // TRACEUSER( "Karim", _T("pClipAttr 0x%x Render()'ed by RR 0x%x\n"), 00183 // (DWORD)this, (DWORD)pRender); 00184 pRender->SetClipRegion(this, Temp); 00185 }
|
|
Implements AttributeValue. Definition at line 203 of file clipattr.cpp. 00204 { 00205 // DEBUG: 00206 // TRACEUSER( "Karim", _T("ClipRegionAttribute::Restore; 0x%x with path 0x%x\n"), (DWORD)this, 00207 // (DWORD)m_pClipPath); 00208 // TRACEUSER( "Karim", _T("pClipAttr 0x%x Restore()'ed by RR 0x%x\n"), 00209 // (DWORD)this, (DWORD)pRender); 00210 pRender->RestoreClipRegion(this, Temp); 00211 }
|
|
Definition at line 143 of file clipattr.h. 00143 { m_pClipPath = pClipPath; }
|
|
Definition at line 148 of file clipattr.h. 00148 { m_bResponsibleForGrouping = starts; }
|
|
Make this attribute into a straight copy of the given attribute.
Implements AttributeValue. Definition at line 253 of file clipattr.cpp. 00254 { 00255 // DEBUG: 00256 // TRACEUSER( "Karim", _T("ClipRegionAttribute::SimpleCopy; 0x%x with path 0x%x\n"), (DWORD)this, 00257 // (DWORD)m_pClipPath); 00258 m_pClipPath = ((ClipRegionAttribute*)pSource)->m_pClipPath; 00259 }
|
|
Definition at line 155 of file clipattr.h. |
|
Definition at line 154 of file clipattr.h. |