XPFCPolygon Class Reference

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

#include <xpfcaps.h>

Inheritance diagram for XPFCPolygon:

XPFCComplexClass XPFCapability List of all members.

Public Member Functions

 XPFCPolygon (XPFConvertType ConvertType, XPFBOOL bRounded, XPFBOOL bStellated, XPFBOOL bReformed)
virtual ~XPFCPolygon ()

Protected Member Functions

virtual BOOL DoesNodeMatch (Node *pNode)

Protected Attributes

XPFBOOL m_bRounded
XPFBOOL m_bStellated
XPFBOOL m_bReformed

Private Member Functions

 CC_DECLARE_MEMDUMP (XPFCPolygon)

Detailed Description

This is the class for Polygon capabilities.

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

Definition at line 612 of file xpfcaps.h.


Constructor & Destructor Documentation

XPFCPolygon::XPFCPolygon XPFConvertType  ConvertType,
XPFBOOL  bRounded,
XPFBOOL  bStellated,
XPFBOOL  bReformed
[inline]
 

Definition at line 618 of file xpfcaps.h.

00619         : XPFCComplexClass(CC_RUNTIME_CLASS(NodeRegularShape), ConvertType)
00620     {
00621         m_bRounded = bRounded;
00622         m_bStellated = bStellated;
00623         m_bReformed = bReformed;
00624     }

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

Definition at line 625 of file xpfcaps.h.

00626     {
00627     }


Member Function Documentation

XPFCPolygon::CC_DECLARE_MEMDUMP XPFCPolygon   )  [private]
 

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

Reimplemented from XPFCComplexClass.

Definition at line 587 of file xpfcaps.cpp.

00588 {
00589     // If we aren't the correct type of node then return
00590     if (!XPFCComplexClass::DoesNodeMatch(pNode))
00591         return(FALSE);
00592 
00593     NodeRegularShape* pShape = (NodeRegularShape*)pNode;
00594 
00595     if (CXaraFileRegularShape::IsEllipse(pShape) || CXaraFileRegularShape::IsRectangle(pShape))
00596         return(FALSE);
00597 
00598     // Now test the property attributes
00599     if (m_bRounded != XPFB_UNKNOWN && CXaraFileRegularShape::IsRounded(pShape) != m_bRounded)
00600         return(FALSE);
00601 
00602     if (m_bStellated != XPFB_UNKNOWN && CXaraFileRegularShape::IsStellated(pShape) != m_bStellated)
00603         return(FALSE);
00604 
00605     if (m_bReformed != XPFB_UNKNOWN && CXaraFileRegularShape::IsReformed(pShape) != m_bReformed)
00606         return(FALSE);
00607 
00608     return(TRUE);
00609 }


Member Data Documentation

XPFBOOL XPFCPolygon::m_bReformed [protected]
 

Definition at line 635 of file xpfcaps.h.

XPFBOOL XPFCPolygon::m_bRounded [protected]
 

Definition at line 633 of file xpfcaps.h.

XPFBOOL XPFCPolygon::m_bStellated [protected]
 

Definition at line 634 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