AGI STK Graphics 11 Send comments on this topic.
InitializeWithDistances Method (IAgStkGraphicsDistanceToGlobeOverlayDisplayConditionFactory)
See Also 
GlobeOverlay
The globe overlay associated with this instance.
MinimumDistance
The minimum distance, in meters, of the inclusive distance interval.
MaximumDistance
The maximum distance, in meters, of the inclusive distance interval. Use Double.MaxValue to ignore checking the maximum distance.





Description

Initializes a distance display condition with the Globe Overlay and the inclusive distance interval [minimumDistance, maximumDistance]. When this display condition is assigned to an object, such as a primitive, the object is only rendered when the distance, in meters, from the camera to the Globe Overlay is within the interval.

Syntax

[Visual Basic .NET]
Public Function InitializeWithDistances( _
   ByVal GlobeOverlay As IAgStkGraphicsGlobeOverlay, _
   ByVal MinimumDistance As Double, _
   ByVal MaximumDistance As Double _
) As IAgStkGraphicsDistanceToGlobeOverlayDisplayCondition

[Unmanaged C++]
public: HRESULT InitializeWithDistances(
IAgStkGraphicsGlobeOverlay * GlobeOverlay,
double MinimumDistance,
double MaximumDistance,
IAgStkGraphicsDistanceToGlobeOverlayDisplayCondition ** ReturnValue
);

Parameters

GlobeOverlay
The globe overlay associated with this instance.
MinimumDistance
The minimum distance, in meters, of the inclusive distance interval.
MaximumDistance
The maximum distance, in meters, of the inclusive distance interval. Use Double.MaxValue to ignore checking the maximum distance.

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1