STK Graphics PrimitivesSend comments on this topic.
InitializeWithReferenceFrameAndDistances Method (IAgStkGraphicsDistanceToPositionDisplayConditionFactory)
See Also
ReferenceFrame
The reference frame of the position.
Position
An array containing the position (in the order x, y, z) used to compute the distance from the camera.
MinimumDistance
The minimum distance of the inclusive distance interval.
MaximumDistance
The maximum distance of the inclusive distance interval. Use Double.MaxValue to ignore checking the maximum distance.
Windows





Windows & Linux

Description

Initializes a distance display condition with 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 from the camera to the position is within the interval.

Syntax

[Visual Basic .NET]
Public Function InitializeWithReferenceFrameAndDistances( _
    ByVal ReferenceFrame As IAgCrdnSystem, _
    ByVal Position As System.Array, _
    ByVal MinimumDistance As Double, _
    ByVal MaximumDistance As Double _
) As IAgStkGraphicsDistanceToPositionDisplayCondition
[C#]
public IAgStkGraphicsDistanceToPositionDisplayCondition InitializeWithReferenceFrameAndDistances(
    IAgCrdnSystem ReferenceFrame,
    System.Array Position,
    double MinimumDistance,
    double MaximumDistance
);
[Managed C++]
public: IAgStkGraphicsDistanceToPositionDisplayCondition^ InitializeWithReferenceFrameAndDistances(
    IAgCrdnSystem ^ ReferenceFrame,
    System::Array ^ Position,
    double MinimumDistance,
    double MaximumDistance
);
[Unmanaged C++]
public: HRESULT InitializeWithReferenceFrameAndDistances(
    IAgCrdnSystem * ReferenceFrame,
    SAFEARRAY * * Position,
    double MinimumDistance,
    double MaximumDistance,
    IAgStkGraphicsDistanceToPositionDisplayCondition ** ppRetVal
);
[Java]
public IAgStkGraphicsDistanceToPositionDisplayCondition initializeWithReferenceFrameAndDistances(
    IAgCrdnSystem ReferenceFrame,
    AgSafeArray Position,
    double MinimumDistance,
    double MaximumDistance
);
[Python - STK API ]
def InitializeWithReferenceFrameAndDistances(self, ReferenceFrame:"IAgCrdnSystem", Position:list, MinimumDistance:float, MaximumDistance:float) -> "IAgStkGraphicsDistanceToPositionDisplayCondition":

Parameters

ReferenceFrame
The reference frame of the position.
Position
An array containing the position (in the order x, y, z) used to compute the distance from the camera.
MinimumDistance
The minimum distance of the inclusive distance interval.
MaximumDistance
The maximum distance of the inclusive distance interval. Use Double.MaxValue to ignore checking the maximum distance.

See Also

Example

Shows the format of the Position parameter when creating a distance to position display condition.
[C#]
Array position = new object[] 
{ 
    6700,
    0,
    0
};

IAgStkGraphicsDistanceToPositionDisplayCondition condition = sceneManager.Initializers.DistanceToPositionDisplayCondition.InitializeWithDistances(
    ref position,
    0,
    10000);
Shows the format of the Position parameter when creating a distance to position display condition.
[Visual Basic .NET]
Dim position As Array = New Object() {6700, 0, 0}

Dim condition As IAgStkGraphicsDistanceToPositionDisplayCondition = sceneManager.Initializers.DistanceToPositionDisplayCondition.InitializeWithDistances(position, 0, 10000)
© 2024 Analytical Graphics, Inc. All Rights Reserved.