XPFCBevel Class Reference

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

#include <xpfcaps.h>

Inheritance diagram for XPFCBevel:

XPFCComplexClass XPFCapability List of all members.

Public Member Functions

 XPFCBevel (XPFConvertType ConvertType, XPFProp Type, XPFProp Side)
virtual ~XPFCBevel ()

Protected Member Functions

virtual BOOL DoesNodeMatch (Node *pNode)

Protected Attributes

XPFProp m_Type
XPFProp m_Side

Private Member Functions

 CC_DECLARE_MEMDUMP (XPFCBevel)

Detailed Description

This is the class for Bevel capabilities.

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

Definition at line 426 of file xpfcaps.h.


Constructor & Destructor Documentation

XPFCBevel::XPFCBevel XPFConvertType  ConvertType,
XPFProp  Type,
XPFProp  Side
[inline]
 

Definition at line 432 of file xpfcaps.h.

00433         : XPFCComplexClass(CC_RUNTIME_CLASS(NodeBevelController), ConvertType)
00434     {
00435         m_Type = Type;
00436         m_Side = Side;
00437     }

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

Definition at line 438 of file xpfcaps.h.

00439     {
00440     }


Member Function Documentation

XPFCBevel::CC_DECLARE_MEMDUMP XPFCBevel   )  [private]
 

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

Reimplemented from XPFCComplexClass.

Definition at line 406 of file xpfcaps.cpp.

00407 {
00408     // If we aren't the correct type of node then return
00409     if (!XPFCComplexClass::DoesNodeMatch(pNode))
00410         return(FALSE);
00411 
00412     NodeBevelController* pCont = (NodeBevelController*)pNode;
00413 
00414     // Now test the property attributes
00415     if (m_Type != XPFP_UNKNOWN && pCont->m_BevelType != m_Type)
00416         return(FALSE);
00417 
00418     if (m_Side != XPFP_UNKNOWN)
00419     {
00420         XPFProp Side = (pCont->m_bOuter) ? XPFP_BEVELSIDE_OUTER : XPFP_BEVELSIDE_INNER;
00421         if (m_Side != Side)
00422             return(FALSE);
00423     }
00424 
00425     return(TRUE);
00426 }


Member Data Documentation

XPFProp XPFCBevel::m_Side [protected]
 

Definition at line 447 of file xpfcaps.h.

XPFProp XPFCBevel::m_Type [protected]
 

Definition at line 446 of file xpfcaps.h.


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