XPFCRectangle Class Reference

This is the class for Rectangle capabilities. More...

#include <xpfcaps.h>

Inheritance diagram for XPFCRectangle:

XPFCComplexClass XPFCapability List of all members.

Public Member Functions

 XPFCRectangle (XPFConvertType ConvertType, XPFBOOL bComplex, XPFBOOL bRounded, XPFBOOL bStellated, XPFBOOL bReformed)
virtual ~XPFCRectangle ()

Protected Member Functions

virtual BOOL DoesNodeMatch (Node *pNode)

Protected Attributes

XPFBOOL m_bComplex
XPFBOOL m_bRounded
XPFBOOL m_bStellated
XPFBOOL m_bReformed

Private Member Functions

 CC_DECLARE_MEMDUMP (XPFCRectangle)

Detailed Description

This is the class for Rectangle capabilities.

Author:
Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/01/05

Definition at line 540 of file xpfcaps.h.


Constructor & Destructor Documentation

XPFCRectangle::XPFCRectangle XPFConvertType  ConvertType,
XPFBOOL  bComplex,
XPFBOOL  bRounded,
XPFBOOL  bStellated,
XPFBOOL  bReformed
[inline]
 

Definition at line 546 of file xpfcaps.h.

00547         : XPFCComplexClass(CC_RUNTIME_CLASS(NodeRegularShape), ConvertType)
00548     {
00549         m_bComplex = bComplex;
00550         m_bRounded = bRounded;
00551         m_bStellated = bStellated;
00552         m_bReformed = bReformed;
00553     }

virtual XPFCRectangle::~XPFCRectangle  )  [inline, virtual]
 

Definition at line 554 of file xpfcaps.h.

00555     {
00556     }


Member Function Documentation

XPFCRectangle::CC_DECLARE_MEMDUMP XPFCRectangle   )  [private]
 

BOOL XPFCRectangle::DoesNodeMatch Node pNode  )  [protected, virtual]
 

Reimplemented from XPFCComplexClass.

Definition at line 536 of file xpfcaps.cpp.

00537 {
00538     // If we aren't the correct type of node then return
00539     if (!XPFCComplexClass::DoesNodeMatch(pNode))
00540         return(FALSE);
00541 
00542     NodeRegularShape* pShape = (NodeRegularShape*)pNode;
00543 
00544     if (!CXaraFileRegularShape::IsRectangle(pShape))
00545         return(FALSE);
00546 
00547     // Now test the property attributes
00548     if (m_bComplex != XPFB_UNKNOWN && CXaraFileRegularShape::IsSimple(pShape) == m_bComplex)
00549         return(FALSE);
00550 
00551     if (m_bRounded != XPFB_UNKNOWN)
00552     {
00553         BOOL bVal = (CXaraFileRegularShape::IsRounded(pShape) != 0);
00554         if (bVal != m_bRounded)
00555             return(FALSE);
00556     }
00557 
00558     if (m_bStellated != XPFB_UNKNOWN && CXaraFileRegularShape::IsStellated(pShape) != m_bStellated)
00559         return(FALSE);
00560 
00561     if (m_bReformed != XPFB_UNKNOWN && CXaraFileRegularShape::IsReformed(pShape) != m_bReformed)
00562         return(FALSE);
00563 
00564     return(TRUE);
00565 }


Member Data Documentation

XPFBOOL XPFCRectangle::m_bComplex [protected]
 

Definition at line 562 of file xpfcaps.h.

XPFBOOL XPFCRectangle::m_bReformed [protected]
 

Definition at line 565 of file xpfcaps.h.

XPFBOOL XPFCRectangle::m_bRounded [protected]
 

Definition at line 563 of file xpfcaps.h.

XPFBOOL XPFCRectangle::m_bStellated [protected]
 

Definition at line 564 of file xpfcaps.h.


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