#include <xpfcaps.h>
Inheritance diagram for XPFCPolygon:
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) |
Definition at line 612 of file xpfcaps.h.
|
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 }
|
|
Definition at line 625 of file xpfcaps.h.
|
|
|
|
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 }
|
|
|
|
|
|
|