LineOfSight class final
This base class contains common functionality for all LineOfSight analysis objects.
The LineOfSight analysis result is a line rendered between the observer and target with distinct colors representing visible and obstructed segments.
When at least one of the two ends (the observer and the target) of the line is placed outside the view, the colors of the visible part of the line may not accurately represent the hidden part. In such cases, the line is rendered gray. To display the color, move both the observer and the target into the view.
- Inheritance
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isVisible ↔ bool
-
Whether or not an Analysis is visible.
getter/setter pairinherited
-
onTargetVisibilityChanged
→ Stream<
LineOfSightTargetVisibility> -
Sets the callback to invoke when the LineOfSight target visibility
changes.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- targetVisibility → LineOfSightTargetVisibility
-
The target visibility state.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getLineWidth(
) → double - Gets the line width used to render LineOfSight analysis results.
-
getObstructedColor(
) → Color - Gets the color used to render segments that are not visible along LineOfSight analysis results.
-
getVisibleColor(
) → Color - Gets the color used to render segments that are visible along LineOfSight analysis results.
-
setLineWidth(
double lineWidth) → void - Sets the line width used to render LineOfSight analysis results.
-
setObstructedColor(
Color obstructedColor) → void - Sets the color used to render segments that are not visible along LineOfSight analysis results.
-
setVisibleColor(
Color visibleColor) → void - Sets the color used to render segments that are visible along LineOfSight analysis results.