XPFCLineTrans Class Reference

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

#include <xpfcaps.h>

Inheritance diagram for XPFCLineTrans:

XPFCapability List of all members.

Public Member Functions

 XPFCLineTrans (XPFConvertType ConvertType, XPFProp Type)
virtual ~XPFCLineTrans ()

Protected Member Functions

virtual BOOL DoAttributesMatch (RenderRegion *pRegion)

Protected Attributes

XPFProp m_Type

Private Member Functions

 CC_DECLARE_MEMDUMP (XPFCLineTrans)

Detailed Description

This is the class for LineTrans capabilities.

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

Definition at line 918 of file xpfcaps.h.


Constructor & Destructor Documentation

XPFCLineTrans::XPFCLineTrans XPFConvertType  ConvertType,
XPFProp  Type
[inline]
 

Definition at line 924 of file xpfcaps.h.

00925         : XPFCapability(ConvertType)
00926     {
00927         m_Type = Type;
00928     }

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

Definition at line 929 of file xpfcaps.h.

00930     {
00931     }


Member Function Documentation

XPFCLineTrans::CC_DECLARE_MEMDUMP XPFCLineTrans   )  [private]
 

BOOL XPFCLineTrans::DoAttributesMatch RenderRegion pRegion  )  [protected, virtual]
 

Reimplemented from XPFCapability.

Definition at line 1019 of file xpfcaps.cpp.

01020 {
01021     // If this item specifies the type property
01022     if (m_Type != XPFB_UNKNOWN)
01023     {
01024         StrokeColourAttribute* pStrokeCol = (StrokeColourAttribute*)(pRegion->GetCurrentAttribute(ATTR_STROKECOLOUR));
01025         BOOL bNoStroke = pStrokeCol->Colour.IsTransparent();
01026 
01027         // Get the transp attribute from the render region
01028         StrokeTranspAttribute* pTrans = (StrokeTranspAttribute*)(pRegion->GetCurrentAttribute(ATTR_STROKETRANSP));
01029         // Get the type
01030         INT32 Type = pTrans->GetTranspType();
01031         // If we have no stroke colour or are mix and 0% trans
01032         if (bNoStroke || (Type == TT_Mix && *(pTrans->GetStartTransp()) == 0))
01033         {
01034             // We are actually type none
01035             Type = TT_NoTranspType;
01036         }
01037         if (m_Type != Type)
01038             return(FALSE);
01039     }
01040 
01041     return(TRUE);
01042 }


Member Data Documentation

XPFProp XPFCLineTrans::m_Type [protected]
 

Definition at line 938 of file xpfcaps.h.


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