ArcGIS Runtime SDK for iOS
100.15
|
Analysis of visibility along a line between two locations.
Instances of this class represent an analysis object that evaluates visibility along a line defined by observer and target locations.
The result of the analysis is a line between the observer and the target locations (each using Point geometry). Visible and obstructed portions of the line are displayed with unique colors (green and red by default).
Instance Methods | |
(instancetype) | - initWithObserverLocation:targetLocation: |
Class Methods | |
(instancetype) | + lineOfSightWithObserverLocation:targetLocation: |
(CGFloat) | + lineWidth |
(AGSColor *) | + obstructedColor |
(void) | + setLineWidth: |
(void) | + setObstructedColor: |
(void) | + setVisibleColor: |
(AGSColor *) | + visibleColor |
Properties | |
AGSPoint * | observerLocation |
AGSPoint * | targetLocation |
AGSLineOfSightTargetVisibility | targetVisibility |
BOOL | visible |
- (instancetype) initWithObserverLocation: | (AGSPoint *) | observerLocation | |
targetLocation: | (AGSPoint *) | targetLocation | |
Intialize the analysis with the provided observer and target locations. As a result of the analysis, a line is rendered between the observer and target with distinct colors representing visible and obstructed segments.
observerLocation | defining the observer's location |
targetLocation | defining the target's location |
+ (instancetype) lineOfSightWithObserverLocation: | (AGSPoint *) | observerLocation | |
targetLocation: | (AGSPoint *) | targetLocation | |
Intialize the analysis with the provided observer and target locations. As a result of the analysis, a line is rendered between the observer and target with distinct colors representing visible and obstructed segments.
observerLocation | defining the observer's location |
targetLocation | defining the target's location |
+ (CGFloat) lineWidth |
The line width used to render analysis results. This setting is applied to all line of sight analyses in the view.
+ (AGSColor *) obstructedColor |
The color used to render segments that are not visible along the analysis results. Sections of the line between the observer and the target that are obstructed (not visible) are drawn with the specified color. This setting is applied to all line of sight analyses in the view.
+ (void) setLineWidth: | (CGFloat) | lineWidth |
Sets the line width used to render analysis results. This setting is applied to all line of sight analyses in the view.
lineWidth | in points |
+ (void) setObstructedColor: | (AGSColor *) | obstructedColor |
Sets the color used to render segments that are not visible along the analysis results. Sections of the line between the observer and the target that are obstructed (not visible) are drawn with the specified color. This setting is applied to all line of sight analyses in the view.
obstructedColor | used to render segments that are not visible |
+ (void) setVisibleColor: | (AGSColor *) | visibleColor |
Sets the color used to render segments that are visible along the analysis results. Sections of the line between the observer and the target that are visible are drawn with the specified color. This setting is applied to all line of sight analyses in the view.
visibleColor | used to render segments that are visible |
+ (AGSColor *) visibleColor |
The color used to render segments that are visible along the analysis results. Sections of the line between the observer and the target that are visible are drawn with the specified color. This setting is applied to all line of sight analyses in the view.
|
readwritenonatomicstrong |
The location representing the observer
|
readwritenonatomicstrong |
The location representing the target
|
readnonatomicassigninherited |
Indicates state of the target's visbility.
|
readwritenonatomicassigninherited |
Indicates whether the results of this analysis should be visible or not. Visibility can be controlled for individual analyses as well as for the analysis overlay that contains them.