CRegionObjectElement
The CRegionObjectElement
class represents an element of a region object in 2D space. It is an abstract class that provides the interface for region object elements.
Definition
Namespace: dynamsoft::intermediate_results
Assembly: DynamsoftCore
class CRegionObjectElement
Methods Summary
Method | Description |
---|---|
GetLocation |
Get the location of the region object element. |
GetReferencedElement |
Get a pointer to a referenced region object element. |
GetElementType |
Get the type of the region object element. |
SetLocation |
Set the location of the region object element. |
Clone |
Clone the region object element. |
Retain |
Increases the reference count of the CRegionObjectElement object. |
Release |
Decreases the reference count of the CRegionObjectElement object. |
GetLocation
Get the location of the region object element.
CQuadrilateral GetLocation() const
Return value
Returns a CQuadrilateral
object which represents the location of the region object element.
See Also
GetReferencedElement
Get a pointer to a referenced region object element.
const CRegionObjectElement* GetReferencedElement() const
Return value
Returns a const pointer to a referenced CRegionObjectElement
object.
See Also
GetElementType
Get the type of the region object element.
RegionObjectElementType GetElementType() const
Return value
Returns a RegionObjectElementType
enum value which represents the type of the region object element.
See Also
SetLocation
Set the location of the region object element.
virtual int SetLocation(const CQuadrilateral& location) = 0;
Parameters
location
The location of the region object element.
Return value
Returns 0 if success, otherwise an error code.
Clone
Clone the region object element.
virtual CRegionObjectElement* Clone() const = 0;
Return value
Returns a pointer to a copy of the region object element.
Retain
Increases the reference count of the CRegionObjectElement
object.
virtual CRegionObjectElement* Retain() = 0;
Return value
An object of CRegionObjectElement
.
Release
Decreases the reference count of the CRegionObjectElement
object.
virtual void Release() = 0;