layout | title | description | keywords | needGenerateH3Content | needAutoGenerateSidebar | noTitleIndex |
---|---|---|---|---|---|---|
default-layout |
DSRegionObjectElement - Dynamsoft Core Module iOS Edition API Reference |
The class DSRegionObjectElement of Dynamsoft Core Module represents an element of a region object in 2D space, which provides the interface for region object elements. |
region object element, 2D space, objective-c, swift |
true |
true |
true |
The DSRegionObjectElement
class represents a basic element of a region object, including its type, location and reference to another element.
Assembly: DynamsoftCore.framework
>- Objective-C >- Swift > >1. ```objc @interface DSRegionObjectElement : NSObject ``` 2. ```swift class RegionObjectElement : NSObject ```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 ]({{ site.dcv_enumerations }}core/region-object-element-type.html?lang=objc,swift). |
Gets the location of the region object, represented as a [Quadrilateral
]({{ site.dcv_ios_api }}core/basic-structures/quadrilateral.html).
Return Value
The location info of the element that defined in DSQuadrilateral.
Sets the location of the region object.
>- Objective-C >- Swift > >1. ```objc -(void)setLocation:(DSQuadrilateral *)location; ``` 2. ```swift func setLocation(_ location: DSQuadrilateral?) ```Parameters
location
: The location info of the element that defined in DSQuadrilateral.
Get the referenced element that supports the capturing of this element.
>- Objective-C >- Swift > >1. ```objc -(nullable DSRegionObjectElement*)getReferencedElement; ``` 2. ```swift func getReferencedElement() -> RegionObjectElement? ```Return Value
The referenced element that supports the capturing of this element.
Gets the type of the region object element, defined by the enumeration [DSRegionObjectElementType
]({{ site.dcv_enumerations }}core/region-object-element-type.html?lang=objc,swift).
Return Value
The type of the region object element.