|
virtual IDOMImagePtr | getAsImage (const ISessionPtr &session, bool bUseTempFileForImage) const =0 |
| Return in image an 1-bit-per-pixel DeviceGray image representation of this shape.
|
|
virtual IDOMPathGeometryPtr | getAsGeometry (IEDLClassFactory *factory) const =0 |
| Get the shape as path geometry.
|
|
virtual FRect | getBounds () const =0 |
| Get the bounds (in pixels) of the shape. The bounds is always integral.
|
|
virtual IntRect | getIntBounds () const =0 |
| Get the bounds (in pixels) of the shape as an integer rect.
|
|
virtual float | getResolution () const =0 |
| Get the resolution of the shape.
|
|
virtual bool | getIsEmpty () const =0 |
| Detect an empty shape.
|
|
virtual bool | getIsRect () const =0 |
| Detect if a shape is a rectangle.
|
|
virtual bool | isEqualTo (const IDOMShapePtr &ptrShape) const =0 |
| Check this shape for equality to another shape.
|
|
virtual void | unite (const IDOMShapePtr &ptrShape)=0 |
| Unite this shape with another.
|
|
virtual void | intersect (const IDOMShapePtr &ptrShape)=0 |
| Reduce this shape to its intersection with another shape.
|
|
virtual void | difference (const IDOMShapePtr &ptrShape)=0 |
| Reduce this shape by subtracting another shape.
|
|
virtual void | offset (int32 offsetX, int32 offsetY)=0 |
| Offset the shape by the given numbers of pixels.
|
|
virtual bool | intersects (const IDOMShapePtr &ptrShape) const =0 |
| Detect if this shape intersects with another.
|
|
virtual bool | completelyContainsShape (const IDOMShapePtr &ptrShape) const =0 |
| Detect if another shape fits completely inside this shape.
|
|
virtual CShapeDetails | getShapeDetails () const =0 |
| Fetch the regions that comprise the shape.
|
|
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.
|
|
virtual | ~IDOMHashable () |
| Virtual destructor.
|
|
virtual bool | hash (uint64 &hash)=0 |
| Retrieve a hash for this object.
|
|
virtual uint64 | hashE () |
| As hash(), but throws an exception if the operation fails.
|
|
|
static const CClassID & | classID () |
| Retrieves class id of IDOMShape.
|
|
static EDL_API IDOMShapePtr | createRect (IEDLClassFactory *pFactory, float resolution, const FRect &rect) |
| Create a rectangular shape.
|
|
static EDL_API IDOMShapePtr | createRectPixels (IEDLClassFactory *pFactory, float resolution, const IntRect &rect) |
| As per createRect(), but the rectangle is pixels. The shape will be tagged with the given resolution, however the dimensions of the shape will not change.
|
|
Interface to an IDOMShape.
A shape describes a scan-converted path. That is, a path that has been scanned to find which pixels would be affected by the path.
This is useful for a number of things. Once a shape has been made from a path it may be compared to other shapes to test for things like intersection and occulsion using higher accuracy than can be obtained by simply comparing bounding boxes.
A shape may be compared only with another shape scan-converted at the same resolution.
As of current this interface does not allow access to the low level details of the scan converted result. Rather it is intended to allow for simple comparisons.