Mako 7.3.0 API
IDOMShadingPatternType1Brush Class Referenceabstract

IDOMShadingBrush provides a way of representing a PS style type 1 shading pattern. More...

#include <idombrush.h>

Inheritance diagram for IDOMShadingPatternType1Brush:

Classes

class  Data
 Initialization data. More...
 

Public Member Functions

virtual void setDomain (float domain[4])=0
 Sets the domain range. More...
 
virtual const float * getDomain () const =0
 Gets the domain range. More...
 
virtual void setMatrix (const FMatrix &matrix)=0
 Sets the Type 1 shade matrix. More...
 
virtual const FMatrixgetMatrix ()=0
 Gets the Type 1 shade matrix. More...
 
- Public Member Functions inherited from IDOMShadingPatternBrush
virtual uint8 getShadingType () const =0
 Retrieves the shading type. More...
 
virtual bool getBBox (FBox &bBox) const =0
 Retrieves the bounding box for the shade. More...
 
virtual void setBBox (const FBox &bBox)=0
 Sets the bounding box for the shade. More...
 
virtual void setBackgroundColor (const IDOMColorPtr &color)=0
 Sets the background color to use before painting the shade. More...
 
virtual IDOMColorPtr getBackgroundColor () const =0
 Gets the background color to use before painting the shade. If the return is NULL then the background is not painted before applying the shade. More...
 
virtual void setColorSpace (const IDOMColorSpacePtr &colorSpace)=0
 Sets the colorspace to use for painting the shade. More...
 
virtual IDOMColorSpacePtr getColorSpace () const =0
 Gets the colorspace object to be used when painting the shading. More...
 
virtual void setColorSpace (IEDLClassFactory *pFactory, const IDOMColorSpacePtr &colorSpace, eRenderingIntent intent, eBlackPointCompensation bpc)=0
 Set the colorspace of the shading brush, performing color conversion to that target space. This will also convert the background color if present, whereas the alternate setColorSpace() above will not. More...
 
virtual void deIndex (IEDLClassFactory *pFactory)=0
 If the shading brush uses an Indexed color space, reduce it to its base color space. More...
 
virtual void setAntiAlias (bool antiAlias)=0
 Sets anti aliasing flag. More...
 
virtual bool getAntiAlias () const =0
 Gets anti aliasing flag. More...
 
virtual void setFunction (const IDOMFunctionPtr &function)=0
 Sets the shade function. More...
 
virtual IDOMFunctionPtr getFunction () const =0
 Gets the shade function object. More...
 
- Public Member Functions inherited from IDOMTransformableBrush
virtual const FMatrixgetRenderTransform () const =0
 Retrieves the render transform matrix. More...
 
virtual void setRenderTransform (const FMatrix &matrix)=0
 Sets the render transform matrix. More...
 
- Public Member Functions inherited from IDOMBrush
virtual eBrushType getBrushType () const =0
 Retrieves the type of the brush. More...
 
virtual float getOpacity () const =0
 Retrieves the opacity value of the brush element. More...
 
virtual void setOpacity (float opc)=0
 Sets the opacity value of a brush element. More...
 
virtual IDOMBrushPtr getAdjustedForUseInTransformedNode (IEDLClassFactory *pFactory, const FMatrix &nodeTransform)
 Get a version of this brush adjusted for use inside a node with the given transform. More...
 
- Public Member Functions inherited from IEDLObject
virtual const CClassIDgetClassID () const =0
 Returns class ID of IEDLObject. More...
 
virtual bool init (CClassParams *pData)
 The init() method is called to perform any post-construction initialization of an IEDLObject that has been created by the EDL class factory, before it is actually returned by the factory. More...
 
virtual bool clone (IEDLObjectPtr &ptrObject, IEDLClassFactory *pFactory)
 Create a copy of EDLObject. More...
 
- Public Member Functions inherited from IRCObject
virtual void addRef () const =0
 Increases the reference count of the actual object pointed to. This would take place during an assignment or copying.
 
virtual bool decRef () const =0
 Decreases the reference count of the actual object pointed to. When the reference count falls to Zero, it deletes the actual object pointed to. More...
 
virtual int32 getRefCount () const =0
 Retrieve the current reference count of the actual object pointed to. More...
 
- Public Member Functions inherited from IDOMHashable
virtual ~IDOMHashable ()
 Virtual destructor.
 
virtual bool hash (uint64 &hash)=0
 Retrieve a hash for this object. More...
 
virtual uint64 hashE ()
 As hash(), but throws an exception if the operation fails. More...
 

Static Public Member Functions

static EDL_API IDOMShadingPatternType1BrushPtr create (IEDLClassFactory *pFactory, const IDOMColorSpacePtr &colorSpace, float domain[4], const IDOMFunctionPtr &function, bool hasBBox=false, const FBox &bBox=FBox(), const IDOMColorPtr &background=IDOMColorPtr(), const FMatrix &matrix=FMatrix(), const FMatrix &renderTransform=FMatrix(), bool antiAlias=false, float opacity=1.0f)
 Simplified creator for a type 1 shading pattern brush Throws an IEDLError on failure. More...
 
static const CClassIDclassID ()
 Retrieves class id of IDOM. More...
 

Additional Inherited Members

- Public Types inherited from IDOMBrush
enum  eBrushType {
  eSolidColor , eLinearGradient , eRadialGradient , eImage ,
  eMasked , eVisual , eSoftMask , eTilingPattern ,
  eType1ShadingPattern , eType2ShadingPattern , eType3ShadingPattern , eType4567ShadingPattern ,
  eNull
}
 Brush type enumeration. More...
 
- Protected Member Functions inherited from IRCObject
virtual ~IRCObject ()
 Virtual destructor.
 

Detailed Description

IDOMShadingBrush provides a way of representing a PS style type 1 shading pattern.

Member Function Documentation

◆ classID()

static const CClassID& IDOMShadingPatternType1Brush::classID ( )
inlinestatic

Retrieves class id of IDOM.

Returns
CClassID Class id of the element

◆ create()

static EDL_API IDOMShadingPatternType1BrushPtr IDOMShadingPatternType1Brush::create ( IEDLClassFactory pFactory,
const IDOMColorSpacePtr &  colorSpace,
float  domain[4],
const IDOMFunctionPtr &  function,
bool  hasBBox = false,
const FBox bBox = FBox(),
const IDOMColorPtr &  background = IDOMColorPtr(),
const FMatrix matrix = FMatrix(),
const FMatrix renderTransform = FMatrix(),
bool  antiAlias = false,
float  opacity = 1.0f 
)
static

Simplified creator for a type 1 shading pattern brush Throws an IEDLError on failure.

Parameters
pFactoryThe factory to use.
colorSpaceThe color space for the shading pattern
domainThe domain of the matrix x and y axis of the shade
functionThe function describing the color of the shade over the range of the domain
hasBBoxtrue if the bBox parameter should be used
bBoxThe shading bounding box
backgroundThe background color to use, or NULL for no background
matrixThe shading matrix to use
renderTransformThe desired render transform.
antiAliasWhether anti-aliasing should be used for this shade or not
opacityThe opacity to use
Returns
IDOMVisualBrushPtr The new visual brush.

◆ getDomain()

virtual const float* IDOMShadingPatternType1Brush::getDomain ( ) const
pure virtual

Gets the domain range.

Returns
Pointer to an array of four floats representing the domain

◆ getMatrix()

virtual const FMatrix& IDOMShadingPatternType1Brush::getMatrix ( )
pure virtual

Gets the Type 1 shade matrix.

Returns
FMatrix the matrix

◆ setDomain()

virtual void IDOMShadingPatternType1Brush::setDomain ( float  domain[4])
pure virtual

Sets the domain range.

Parameters
domainArray of 4 floats

◆ setMatrix()

virtual void IDOMShadingPatternType1Brush::setMatrix ( const FMatrix matrix)
pure virtual

Sets the Type 1 shade matrix.

Parameters
matrixReference to a matrix object

The documentation for this class was generated from the following file: