ISVGObject¶
Base interface for all elements that have a user matrix and/or have bounds.
Unit: BVE.SVG2Intf ยท Extends: ISVGElement
Methods¶
BufferInvalidate¶
Drops the persistent buffer of this element and of every element rendering it, so the next render draws them again.
Note
Only has an effect under sroPersistentBuffers. An element whose content changed is not enough on its own: the elements above it composited it into their own buffers, and those would otherwise be re-applied unchanged. The walk goes up the render tree rather than the document, because a referenced element - the target of a use, a gradient, a marker - is rendered somewhere other than where it is declared.
CalcBBox¶
Calculates the Bounding box in user coordinates of the element
CalcBBoxCTM¶
CalcBBoxCTM calculates the bounding box of the element transformed by the current transformation matrix.
CalcBBoxCTMClipped¶
function CalcBBoxCTMClipped(
aRoot: ISVGRoot;
const aBoundsInclusion: TSVGBoundsInclusionSet): TSVGRect;
CalcBBoxCTMClipped takes the result of CalcBBoxCTM and calculates the resulting bounding box after clipping
CalcBBoxScreen¶
function CalcBBoxScreen(
aRoot: ISVGRoot;
aParentCache: ISVGObjectCache;
const aBoundsInclusion: TSVGBoundsInclusionSet): TSVGRect;
CalcBBoxScreen calculates the absolute axis aligned bounding box of the element including it's child elements in screen coords. Elements that are not rendered directly return RectUndefined.
CalcBBoxScreenIndirect¶
function CalcBBoxScreenIndirect(
aRoot: ISVGRoot;
aParentCache: ISVGObjectCache;
const aBoundsInclusion: TSVGBoundsInclusionSet): TSVGRect;
CalcBBoxScreenIndirect updates the current transformation matrix and evalutes if the element should be visible according to its style settings. If visible it then calls CalcBBoxCTMClipped, else it returns RectFUndefined.
CalcChildrenSize¶
Calculates the combined size of the elements children
CalcContentMatrix¶
Calculates the matrix that is to be applied to the objects children
CalcSizeScreen¶
CalcSizeScreen calculates the size of the element including it's child elements in screen coords. Elements that are not rendered directly return RectUndefined.
CalcSizeScreenIndirect¶
CalcSizeScreenIndirect updates the current transformation matrix and evalutes if the element should be visible according to its style settings. If visible it then calls CalcSizeCTMClipped, else it returns RectFUndefined.
CalcUserMatrix¶
Calculates the user matrix from the transform attribute
CalcViewPort¶
No description yet.
EventCapture¶
No description yet.
EventCaptureIndirect¶
No description yet.
GetBuffer¶
No description yet.
GetCacheList¶
No description yet.
GetClipping¶
No description yet.
GetCurCache¶
No description yet.
GetHasBuffer¶
No description yet.
GetHitTest¶
No description yet.
GetIsRendered¶
No description yet.
GetTransform¶
No description yet.
InitBuffers¶
No description yet.
ObjectAtPt¶
function ObjectAtPt(
aRoot: ISVGRoot;
aParentCache: ISVGObjectCache;
const aPt: TSVGPoint;
const aIfHitTest: Boolean): ISVGObject;
No description yet.
ObjectAtPtIndirect¶
function ObjectAtPtIndirect(
aRoot: ISVGRoot;
aParentCache: ISVGObjectCache;
const aPt: TSVGPoint;
const aIfHitTest: Boolean): ISVGObject;
No description yet.
ObjectCacheClear¶
ObjectCacheClear clears the cache that references the supplied aParentCache.
ObjectCacheInvalidate¶
Invalidate the cache
Paint¶
Paint paints the element if it can be rendered directly (not div, clipPath, mask, etc), it then calls PaintIndirect
PaintChildren¶
PaintChildren calls Paint on the elements children
PaintContent¶
PaintContent paints the element content
PaintElement¶
No description yet.
PaintIndirect¶
PaintIndirect paints the element unless conditional attributes prevent painting. It applies the element style and user matrix and calls PaintClipped.
PaintTestRect¶
PaintTestRect paints a test rectangle to check bounds
PointInFill¶
PointInFill returns True if the point aPt is in the fill of the element
PointInOutline¶
No description yet.
PointInStroke¶
PointInFill returns True if the point aPt is in the stroke of the element
SetHitTest¶
No description yet.
SetTransform¶
No description yet.
UpdateCTM¶
No description yet.
UpdateCTMContent¶
No description yet.
UpdateViewport¶
Calculates and sets the nieuw viewport from the current viewport settings and the current style attributes
Properties¶
Buffer¶
No description yet.
CacheList¶
No description yet.
CurCache¶
No description yet.
HitTest¶
No description yet.
Transform¶
No description yet.