Skip to content

Latest commit

 

History

History
123 lines (96 loc) · 3.03 KB

File metadata and controls

123 lines (96 loc) · 3.03 KB
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

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 > >1. ```objc @interface DSRegionObjectElement : NSObject ``` 2. ```swift 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]({{ site.dcv_enumerations }}core/region-object-element-type.html?lang=objc,swift).

getLocation

Gets the location of the region object, represented as a [Quadrilateral]({{ site.dcv_ios_api }}core/basic-structures/quadrilateral.html).

>- Objective-C >- Swift > >1. ```objc -(DSQuadrilateral*)getLocation; ``` 2. ```swift 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 > >1. ```objc -(void)setLocation:(DSQuadrilateral *)location; ``` 2. ```swift 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 > >1. ```objc -(nullable DSRegionObjectElement*)getReferencedElement; ``` 2. ```swift 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]({{ site.dcv_enumerations }}core/region-object-element-type.html?lang=objc,swift).

>- Objective-C >- Swift > >1. ```objc -(DSRegionObjectElementType)getRegionObjectElementType; ``` 2. ```swift func getRegionObjectElementType() -> RegionObjectElementType ```

Return Value

The type of the region object element.