XPFCEllipse Class Reference

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

#include <xpfcaps.h>

Inheritance diagram for XPFCEllipse:

XPFCComplexClass XPFCapability List of all members.

Public Member Functions

 XPFCEllipse (XPFConvertType ConvertType, XPFBOOL bComplex)
virtual ~XPFCEllipse ()

Protected Member Functions

virtual BOOL DoesNodeMatch (Node *pNode)

Protected Attributes

XPFBOOL m_bComplex

Private Member Functions

 CC_DECLARE_MEMDUMP (XPFCEllipse)

Detailed Description

This is the class for Ellipse capabilities.

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

Definition at line 579 of file xpfcaps.h.


Constructor & Destructor Documentation

XPFCEllipse::XPFCEllipse XPFConvertType  ConvertType,
XPFBOOL  bComplex
[inline]
 

Definition at line 585 of file xpfcaps.h.

00586         : XPFCComplexClass(CC_RUNTIME_CLASS(NodeRegularShape), ConvertType)
00587     {
00588         m_bComplex = bComplex;
00589     }

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

Definition at line 590 of file xpfcaps.h.

00591     {
00592     }


Member Function Documentation

XPFCEllipse::CC_DECLARE_MEMDUMP XPFCEllipse   )  [private]
 

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

Reimplemented from XPFCComplexClass.

Definition at line 568 of file xpfcaps.cpp.

00569 {
00570     // If we aren't the correct type of node then return
00571     if (!XPFCComplexClass::DoesNodeMatch(pNode))
00572         return(FALSE);
00573 
00574     NodeRegularShape* pShape = (NodeRegularShape*)pNode;
00575 
00576     if (!CXaraFileRegularShape::IsEllipse(pShape))
00577         return(FALSE);
00578 
00579     // Now test the property attributes
00580     if (m_bComplex != XPFB_UNKNOWN && CXaraFileRegularShape::IsSimple(pShape) == m_bComplex)
00581         return(FALSE);
00582 
00583     return(TRUE);
00584 }


Member Data Documentation

XPFBOOL XPFCEllipse::m_bComplex [protected]
 

Definition at line 598 of file xpfcaps.h.


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