Mako 7.3.0 API
IDOMTilingPatternBrush Class Referenceabstract

IDOMTilingPatternBrush provides a way of representing a PS style tiling pattern. More...

#include <idombrush.h>

Inheritance diagram for IDOMTilingPatternBrush:

Classes

class  Data
 Initialization data. More...
 

Public Member Functions

virtual uint8 getPatternType () const =0
 Retrieves the pattern type. More...
 
virtual const FBoxgetBBox () const =0
 Retrieves the bounding box for the pattern. More...
 
virtual void setBBox (const FBox &bBox)=0
 Sets the bounding box for the pattern. More...
 
virtual void getTilingStep (float &xstep, float &ystep) const =0
 Retrieves the tiling step for the pattern. More...
 
virtual void setTilingStep (float xstep, float ystep)=0
 Sets the tiling step for the pattern. More...
 
virtual void setPaintType (uint8 paintType)=0
 Sets the paint type for the pattern. More...
 
virtual uint8 getPaintType () const =0
 Gets the paint type for the pattern. More...
 
virtual void setTilingType (uint8 tilingType)=0
 Sets the tiling type for the pattern. More...
 
virtual uint8 getTilingType () const =0
 Gets the tiling type for the pattern. More...
 
virtual void setPatternColor (const IDOMColorPtr &color)=0
 Sets the pattern color for uncolored pattern (paint type is 2) More...
 
virtual IDOMColorPtr getPatternColor () const =0
 Gets the pattern color for uncolored pattern (paint type is 2) More...
 
virtual IDOMNodePtr getVisual () const =0
 Retrieves smart pointer to visual (path, glyphs, group, canvas) node. More...
 
virtual void setVisual (const IDOMNodePtr &ptrVisual)=0
 Sets visual node. More...
 
virtual IDOMVisualBrushPtr getEquivalentVisualBrush (IEDLClassFactory *pFactory)=0
 Gets an equivalent IDOMVisualBrush brush. If the brush has overlapping tiles, this cannot be done. 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...
 

Static Public Member Functions

static EDL_API IDOMTilingPatternBrushPtr create (IEDLClassFactory *pFactory, const IDOMNodePtr &visual, const FRect &bBox, uint8 paintType, const IDOMColorPtr &color, float xStep, float yStep, uint8 tilingType=1, const FMatrix &renderTransform=FMatrix())
 Simplified creator for a tiling 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

IDOMTilingPatternBrush provides a way of representing a PS style tiling pattern.

Member Function Documentation

◆ classID()

static const CClassID& IDOMTilingPatternBrush::classID ( )
inlinestatic

Retrieves class id of IDOM.

Returns
CClassID Class id of the element

◆ create()

static EDL_API IDOMTilingPatternBrushPtr IDOMTilingPatternBrush::create ( IEDLClassFactory pFactory,
const IDOMNodePtr &  visual,
const FRect &  bBox,
uint8  paintType,
const IDOMColorPtr &  color,
float  xStep,
float  yStep,
uint8  tilingType = 1,
const FMatrix renderTransform = FMatrix() 
)
static

Simplified creator for a tiling brush. Throws an IEDLError on failure.

Parameters
pFactoryThe factory to use.
visualThe node or node tree representing the pattern's content.
bBoxthe bounding box of the pattern's content.
paintTypeThe paint type, either 1 (colored) or 2 (uncolored)
colorThe color to use. Must be NULL for paintType 1. For paintType 2, if NULL, A DeviceGray black will be used.
xStepThe tiling step in X
yStepThe tiling step in Y
tilingTypeThe tiling type; 1 for constant spacing, 2 for no distortion, 3 for constant spacing and faster tiling.
renderTransformThe desired render transform.
Returns
IDOMTilingPatternBrushPtr The new brush.

◆ getBBox()

virtual const FBox& IDOMTilingPatternBrush::getBBox ( ) const
pure virtual

Retrieves the bounding box for the pattern.

Returns
FBox The bounding box

◆ getEquivalentVisualBrush()

virtual IDOMVisualBrushPtr IDOMTilingPatternBrush::getEquivalentVisualBrush ( IEDLClassFactory pFactory)
pure virtual

Gets an equivalent IDOMVisualBrush brush. If the brush has overlapping tiles, this cannot be done.

Parameters
pFactoryA pointer to an EDL class factory
Returns
IDOMVisualBrushPtr The resulting visual brush, or NULL if this brush cannot be expressed as a visual brush. This brush will be cached, so do not edit; make a clone if the returned brush needs to be changed.

◆ getPaintType()

virtual uint8 IDOMTilingPatternBrush::getPaintType ( ) const
pure virtual

Gets the paint type for the pattern.

Returns
int32 The paint type (1 for colored tiling pattern, 2 for uncolored)

◆ getPatternColor()

virtual IDOMColorPtr IDOMTilingPatternBrush::getPatternColor ( ) const
pure virtual

Gets the pattern color for uncolored pattern (paint type is 2)

Returns
IDOMColorPtr The color, or NULL for paint type 1

◆ getPatternType()

virtual uint8 IDOMTilingPatternBrush::getPatternType ( ) const
pure virtual

Retrieves the pattern type.

Returns
int Returns pattern type, 1 for tiling pattern

◆ getTilingStep()

virtual void IDOMTilingPatternBrush::getTilingStep ( float &  xstep,
float &  ystep 
) const
pure virtual

Retrieves the tiling step for the pattern.

Parameters
xstepReference to xstep
ystepReference to ystep

◆ getTilingType()

virtual uint8 IDOMTilingPatternBrush::getTilingType ( ) const
pure virtual

Gets the tiling type for the pattern.

Returns
int32 The tiling type (1 for constant spacing, 2 for no distortion, 3 for constant spacing and faster tiling)

◆ getVisual()

virtual IDOMNodePtr IDOMTilingPatternBrush::getVisual ( ) const
pure virtual

Retrieves smart pointer to visual (path, glyphs, group, canvas) node.

Returns
IDOMNodePtr The visual

◆ setBBox()

virtual void IDOMTilingPatternBrush::setBBox ( const FBox bBox)
pure virtual

Sets the bounding box for the pattern.

Parameters
bBoxThe box to use

◆ setPaintType()

virtual void IDOMTilingPatternBrush::setPaintType ( uint8  paintType)
pure virtual

Sets the paint type for the pattern.

Parameters
paintTypeThe paint type (1 for colored tiling pattern, 2 for uncolored)

◆ setPatternColor()

virtual void IDOMTilingPatternBrush::setPatternColor ( const IDOMColorPtr &  color)
pure virtual

Sets the pattern color for uncolored pattern (paint type is 2)

Parameters
colorReference to the desired color to use.

◆ setTilingStep()

virtual void IDOMTilingPatternBrush::setTilingStep ( float  xstep,
float  ystep 
)
pure virtual

Sets the tiling step for the pattern.

Parameters
xstepReference to xstep
ystepReference to ystep

◆ setTilingType()

virtual void IDOMTilingPatternBrush::setTilingType ( uint8  tilingType)
pure virtual

Sets the tiling type for the pattern.

Parameters
tilingTypeThe tiling type (1 for constant spacing, 2 for no distortion, 3 for constant spacing and faster tiling)

◆ setVisual()

virtual void IDOMTilingPatternBrush::setVisual ( const IDOMNodePtr &  ptrVisual)
pure virtual

Sets visual node.

Parameters
ptrVisualSmart pointer to the visual node

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