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