|
virtual eTilingMode | getTileMode () const =0 |
| Retrieves the tiling mode value of the visual brush.
|
|
virtual void | setTileMode (eTilingMode tm)=0 |
| Sets tiling mode value of the visual brush.
|
|
virtual eViewUnits | getViewBoxUnits () const =0 |
| Retrieves the viewbox units used by the image brush. Currently, only absolute units are supported.
|
|
virtual void | setViewBoxUnits (eViewUnits vu)=0 |
| Sets the viewbox units value of the image brush. Currently, only absolute units are supported.
|
|
virtual eViewUnits | getViewPortUnits () const =0 |
| Retrieves the viewport units value of the image brush. Currently, only absolute units are supported.
|
|
virtual void | setViewPortUnits (eViewUnits vu)=0 |
| Sets the viewport units used for the image brush. Currently, only absolute units are supported.
|
|
virtual const FRect & | getViewBox () const =0 |
| Retrieves the viewbox rectangle.
|
|
virtual void | setViewBox (const FRect &vb)=0 |
| Sets viewbox rectangle.
|
|
virtual const FRect & | getViewPort () const =0 |
| Retrieves the viewport rectangle.
|
|
virtual void | setViewPort (const FRect &vp)=0 |
| Sets the viewport rectangle.
|
|
virtual IDOMNodePtr | getVisual () const =0 |
| Retrieves smart pointer to the visual node (path, glyphs, group or canvas node) used to specify the source for the visual brush.
|
|
virtual void | setVisual (const IDOMNodePtr &ptrVisual)=0 |
| Sets the visual node (path, glyphs or canvas node) used to specify the source for the visual brush.
|
|
virtual IDOMTilingPatternBrushPtr | getEquivalentTilingBrush (IEDLClassFactory *pFactory)=0 |
| Gets an equivalent IDOMTilingPattern brush. If the receiver has a tile mode of eNoTile, this call will fail.
|
|
virtual IDOMVisualBrushPtr | getEquivalentSimpleVisualBrush (IEDLClassFactory *pFactory)=0 |
| Gets an equivalent visual brush where any flip tile mode is simplified to simple tiling. Useful for situations where flipping cannot be handled, but simple visual brushes can.
|
|
virtual const FMatrix & | getRenderTransform () const =0 |
| Retrieves the render transform matrix.
|
|
virtual void | setRenderTransform (const FMatrix &matrix)=0 |
| Sets the render transform matrix.
|
|
virtual eBrushType | getBrushType () const =0 |
| Retrieves the type of the brush.
|
|
virtual float | getOpacity () const =0 |
| Retrieves the opacity value of the brush element.
|
|
virtual void | setOpacity (float opc)=0 |
| Sets the opacity value of a brush element.
|
|
virtual IDOMBrushPtr | getAdjustedForUseInTransformedNode (IEDLClassFactory *pFactory, const FMatrix &nodeTransform) |
| Get a version of this brush adjusted for use inside a node with the given transform.
|
|
virtual const CClassID & | getClassID () const =0 |
| Returns class ID of IEDLObject.
|
|
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.
|
|
virtual bool | clone (IEDLObjectPtr &ptrObject, IEDLClassFactory *pFactory) |
| Create a copy of EDLObject.
|
|
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.
|
|
virtual int32 | getRefCount () const =0 |
| Retrieve the current reference count of the actual object pointed to.
|
|
A visual brush is used to fill a region with a vector drawing.
The drawing may be specified as either a visual brush property or as a resource reference. The drawing content may include exactly one Canvas, Path, or Glyphs node and that node's child and descendant nodes.
Visual brushes share a number of tile-related properties with image brushes.
- See also
- IDOMImageBrush
virtual const FRect & IDOMVisualBrush::getViewBox |
( |
| ) |
const |
|
pure virtual |
Retrieves the viewbox rectangle.
The viewbox specifies the portion of a source image or visual to be rendered to the page as a tile, whose size and location are determined by the image brush's viewport. The tile is then used to fill the geometry specified by the parent element according to the image brush's tile mode. The ViewBox can specify a region larger than the image itself, including negative values. The view box specifies the position and dimension of the brush's source content. It is specified by four comma-separated real numbers (x, y, width, height) where width and height are non-negative.
- Returns
- FRect The viewbox