DSRegionObjectElement
The DSRegionObjectElement
class represents a basic element of a region object, including its type, location and reference to another element.
Definition
Assembly: DynamsoftCore.framework
- Objective-C
- Swift
@interface DSRegionObjectElement : NSObject
class RegionObjectElement : NSObject
Methods
Method | Description |
---|---|
getLocation |
Gets the location of the region object, represented as a quadrilateral. |
setLocation |
Sets the location of the region object. |
getReferencedElement |
Gets the referenced element that supports the capturing of this element. |
getRegionObjectElementType |
Gets the type of the region object element, defined by the enumeration DSRegionObjectElementType . |
getLocation
Gets the location of the region object, represented as a Quadrilateral
.
- Objective-C
- Swift
-(DSQuadrilateral*)getLocation;
func getLocation() -> DSQuadrilateral?
Return Value
The location info of the element that defined in DSQuadrilateral.
setLocation
Sets the location of the region object.
- Objective-C
- Swift
-(void)setLocation:(DSQuadrilateral *)location;
func setLocation(_ location: DSQuadrilateral?)
Parameters
location
: The location info of the element that defined in DSQuadrilateral.
getReferencedElement
Get the referenced element that supports the capturing of this element.
- Objective-C
- Swift
-(nullable DSRegionObjectElement*)getReferencedElement;
func getReferencedElement() -> RegionObjectElement?
Return Value
The referenced element that supports the capturing of this element.
getRegionObjectElementType
Gets the type of the region object element, defined by the enumeration DSRegionObjectElementType
.
- Objective-C
- Swift
-(DSRegionObjectElementType)getRegionObjectElementType;
func getRegionObjectElementType() -> RegionObjectElementType
Return Value
The type of the region object element.