1#include "./AOI_Group.h"
5using namespace aur::PDF;
6using namespace aur::ACPL;
30AOI_Object_Group::SoftMask::SoftMask() :
33 mColorSpace( AOI_NoSpace ),
36 ::memset( mBackDrop, 0,
sizeof(mBackDrop) );
39AOI_Object_Group::SoftMask::SoftMask(
const SoftMask& sm )
47 mTransfer = sm.mTransfer;
48 mColorSpace = sm.mColorSpace;
49 mUsesAlpha = sm.mUsesAlpha;
50 ::memcpy( mBackDrop, sm.mBackDrop,
sizeof(mBackDrop) );
62 return GroupPtr(
this)->HasMask();
72 return GroupPtr(
this)->HasHardMask();
82 return GroupPtr(
this)->HasSoftMask();
95 *ContourPtr( ioContour ) = GroupPtr(
this )->hardMask();
108 GroupPtr g = GroupPtr(
this);
109 if( g->HasSoftMask() )
114 sm.
mColorSpace = AOI_ColorSpaceEnum( g->GetSoftMaskColorSpace() );
128 return GroupPtr(
this)->GetEOFill();
139 return GroupPtr(
this)->GetTransparencyGroup();
151 return GroupPtr(
this)->GetIsolated();
163 return GroupPtr(
this)->GetKnockOut();
190 return GroupPtr(
this)->InsertChild( ObjectPtr(child), index );
201 GroupPtr(
this)->AppendChild( ObjectPtr(child) );
211 return LayerPtr(
this)->GetName();
Base class for functions.
AOI_ColorSpaceEnum mColorSpace
defines how to interprete the number and content of these channels.
AOI_ObjectPtr mContent
Pointer to the object (tree) that defines the content of the softmask.
uint16_t mBackDrop[4]
mContent.
AOI_FunctionPtr mTransfer
mContent and the values that make-up the softmask
void AppendChild(AOI_ObjectPtr child)
AOI_ObjectPtr GetFirstChild() const
bool GetTransparencyGroup() const
void GetHardMask(AOI_ContourPtr) const
SoftMask GetSoftMask() const
int32_t InsertChild(AOI_ObjectPtr child, int32_t index)
const aur::ACPL::UString GetName() const
Base class for all graphic objects.