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