ClipRegionAttribute Class Reference

See also:. More...

#include <clipattr.h>

Inheritance diagram for ClipRegionAttribute:

AttributeValue CCObject SimpleCCObject List of all members.

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 NodeAttributeMakeNode ()
 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)
PathGetClipPath () const
void SetClipPath (Path *pClipPath)
void SetResponsibleForGrouping (BOOL starts)
BOOL IsResponsibleForGrouping ()

Static Public Member Functions

static BOOL Init ()

Private Attributes

Pathm_pClipPath
BOOL m_bResponsibleForGrouping

Detailed Description

See also:.

Author:
Karim_MacDonald (Xara Group Ltd) <camelotdev@xara.com>
Date:
20 March 2000

Definition at line 120 of file clipattr.h.


Constructor & Destructor Documentation

ClipRegionAttribute::ClipRegionAttribute  ) 
 

Author:
Karim_MacDonald (Xara Group Ltd) <camelotdev@xara.com>
Date:
20 March 2000
Parameters:
[INPUTS] 
[OUTPUTS] 
Returns:

Errors: See also:

Definition at line 133 of file clipattr.cpp.

00134 {
00135     m_pClipPath = NULL;
00136     m_bResponsibleForGrouping = FALSE;
00137 }

ClipRegionAttribute::~ClipRegionAttribute  ) 
 

Author:
Karim_MacDonald (Xara Group Ltd) <camelotdev@xara.com>
Date:
20 March 2000
Parameters:
[INPUTS] 
[OUTPUTS] 
Returns:

Errors: See also:

Definition at line 155 of file clipattr.cpp.

00156 {
00157     if (m_pClipPath != NULL)
00158         m_pClipPath = NULL;
00159 }


Member Function Documentation

Path* ClipRegionAttribute::GetClipPath  )  const [inline]
 

Definition at line 142 of file clipattr.h.

00142 { return m_pClipPath; }

void ClipRegionAttribute::GoingOutOfScope RenderRegion pRender  )  [virtual]
 

Author:
Karim_MacDonald (Xara Group Ltd) <camelotdev@xara.com>
Date:
20 March 2000
Parameters:
[INPUTS] 
[OUTPUTS] 
Returns:

Errors: See also:

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 }

BOOL ClipRegionAttribute::Init void   )  [static]
 

Author:
Karim_MacDonald (Xara Group Ltd) <camelotdev@xara.com>
Date:
20 March 2000
Parameters:
[INPUTS] 
[OUTPUTS] 
Returns:

Errors: See also:

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 }

BOOL ClipRegionAttribute::IsDifferent AttributeValue pOther  )  [virtual]
 

Author:
Karim_MacDonald (Xara Group Ltd) <camelotdev@xara.com>
Date:
20 March 2000
Parameters:
[INPUTS] 
[OUTPUTS] 
Returns:

Errors: See also:

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 }

BOOL ClipRegionAttribute::IsResponsibleForGrouping  )  [inline]
 

Definition at line 149 of file clipattr.h.

00149 { return m_bResponsibleForGrouping; }

NodeAttribute * ClipRegionAttribute::MakeNode  )  [virtual]
 

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.

Author:
Karim_MacDonald (Xara Group Ltd) <camelotdev@xara.com>
Date:
12 April 2000
Returns:
NULL always.

Reimplemented from AttributeValue.

Definition at line 275 of file clipattr.cpp.

00276 {
00277     return NULL;
00278 }

void ClipRegionAttribute::Render RenderRegion pRender,
BOOL  Temp = FALSE
[virtual]
 

Author:
Karim_MacDonald (Xara Group Ltd) <camelotdev@xara.com>
Date:
20 March 2000
Parameters:
[INPUTS] 
[OUTPUTS] 
Returns:

Errors: See also:

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 }

void ClipRegionAttribute::Restore RenderRegion pRender,
BOOL  Temp
[virtual]
 

Author:
Karim_MacDonald (Xara Group Ltd) <camelotdev@xara.com>
Date:
20 March 2000
Parameters:
[INPUTS] 
[OUTPUTS] 
Returns:

Errors: See also:

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 }

void ClipRegionAttribute::SetClipPath Path pClipPath  )  [inline]
 

Definition at line 143 of file clipattr.h.

00143 { m_pClipPath = pClipPath; }

void ClipRegionAttribute::SetResponsibleForGrouping BOOL  starts  )  [inline]
 

Definition at line 148 of file clipattr.h.

00148 { m_bResponsibleForGrouping = starts; }

void ClipRegionAttribute::SimpleCopy AttributeValue pSource  )  [virtual]
 

Make this attribute into a straight copy of the given attribute.

Author:
Karim_MacDonald (Xara Group Ltd) <camelotdev@xara.com>
Date:
20 March 2000
Parameters:
pSource the ClipRegionAttribute to copy. [INPUTS]
This ClipRegionAttribute becomes a copy of pSource. [OUTPUTS]
Notes: Note that NO error checking is done in this routine (bad?), so MAKE SURE that the pointer you pass in as pSource is a VALID ClipRegionAttribute.

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 }


Member Data Documentation

BOOL ClipRegionAttribute::m_bResponsibleForGrouping [private]
 

Definition at line 155 of file clipattr.h.

Path* ClipRegionAttribute::m_pClipPath [private]
 

Definition at line 154 of file clipattr.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:52:35 2007 for Camelot by  doxygen 1.4.4