XPFCBlend Class Reference

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

#include <xpfcaps.h>

Inheritance diagram for XPFCBlend:

XPFCComplexClass XPFCapability List of all members.

Public Member Functions

 XPFCBlend (XPFConvertType ConvertType, XPFProp Effect, XPFBOOL bOnCurve, XPFProp bObjProfile, XPFProp bAttrProfile)
virtual ~XPFCBlend ()

Protected Member Functions

virtual BOOL DoesNodeMatch (Node *pNode)

Protected Attributes

XPFProp m_Effect
XPFBOOL m_bOnCurve
XPFProp m_bObjProfile
XPFProp m_bAttrProfile

Private Member Functions

 CC_DECLARE_MEMDUMP (XPFCBlend)

Detailed Description

This is the class for Blend capabilities.

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

Definition at line 461 of file xpfcaps.h.


Constructor & Destructor Documentation

XPFCBlend::XPFCBlend XPFConvertType  ConvertType,
XPFProp  Effect,
XPFBOOL  bOnCurve,
XPFProp  bObjProfile,
XPFProp  bAttrProfile
[inline]
 

Definition at line 467 of file xpfcaps.h.

00472         : XPFCComplexClass(CC_RUNTIME_CLASS(NodeBlend), ConvertType)
00473     {
00474         m_Effect = Effect;
00475         m_bOnCurve = bOnCurve;
00476         m_bObjProfile = bObjProfile;
00477         m_bAttrProfile = bAttrProfile;
00478     }

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

Definition at line 479 of file xpfcaps.h.

00480     {
00481     }


Member Function Documentation

XPFCBlend::CC_DECLARE_MEMDUMP XPFCBlend   )  [private]
 

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

Reimplemented from XPFCComplexClass.

Definition at line 429 of file xpfcaps.cpp.

00430 {
00431     // If we aren't the correct type of node then return
00432     if (!XPFCComplexClass::DoesNodeMatch(pNode))
00433         return(FALSE);
00434 
00435     NodeBlend* pBlend = (NodeBlend*)pNode;
00436 
00437     // Now test the property attributes
00438     if (m_Effect != XPFP_UNKNOWN && pBlend->GetColourBlendType() != m_Effect)
00439         return(FALSE);
00440 
00441     if (m_bOnCurve != XPFB_UNKNOWN && pBlend->IsOnACurve() != m_bOnCurve)
00442         return(FALSE);
00443 
00444     CProfileBiasGain DefaultProfile;
00445     
00446     if (m_bObjProfile != XPFB_UNKNOWN)
00447     {
00448         BOOL bBlend = (*(pBlend->GetObjectProfile()) == DefaultProfile);
00449         if (bBlend == m_bObjProfile)
00450             return(FALSE);
00451     }
00452 
00453     if (m_bAttrProfile != XPFB_UNKNOWN)
00454     {
00455         BOOL bBlend = (*(pBlend->GetAttrProfile()) == DefaultProfile);
00456         if (bBlend == m_bAttrProfile)
00457             return(FALSE);
00458     }
00459 
00460     return(TRUE);
00461 }


Member Data Documentation

XPFProp XPFCBlend::m_bAttrProfile [protected]
 

Definition at line 490 of file xpfcaps.h.

XPFProp XPFCBlend::m_bObjProfile [protected]
 

Definition at line 489 of file xpfcaps.h.

XPFBOOL XPFCBlend::m_bOnCurve [protected]
 

Definition at line 488 of file xpfcaps.h.

XPFProp XPFCBlend::m_Effect [protected]
 

Definition at line 487 of file xpfcaps.h.


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