STK ObjectsSend comments on this topic.
GetAccessToObject Method (IAgStkObject)
See Also
pObject
The IAgStkObject to compute access to.
Windows





Windows & Linux

Description

Returns an IAgStkAccess object associated with this STK object and another STK object. See remarks section for more info.

Syntax

[Visual Basic .NET]
Public Function GetAccessToObject( _
    ByVal pObject As IAgStkObject _
) As IAgStkAccess
[C#]
public IAgStkAccess GetAccessToObject(
    IAgStkObject pObject
);
[Managed C++]
public: IAgStkAccess^ GetAccessToObject(
    IAgStkObject ^ pObject
);
[Unmanaged C++]
public: HRESULT GetAccessToObject(
    IAgStkObject * pObject,
    IAgStkAccess ** ppIAgStkAccess
);
[Java]
public IAgStkAccess getAccessToObject(
    IAgStkObject pObject
);
[Python - STK API ]
def GetAccessToObject(self, pObject:"IAgStkObject") -> "IAgStkAccess":

Parameters

pObject
The IAgStkObject to compute access to.

Remarks

If the access from this object (“A”) to the other object (“B”) exists, returns the existing IAgStkAccess object for that access.
If the access from A to B does not exist, there are two cases:
  1. If the access from B to A exists and (1) is not already computed or (2) is computed and has light time delay <= 1.0 sec, returns existing IAgStkAccess object for B to A.
  2. Otherwise, returns a new IAgStkAccess object for A to B that has not yet been computed.

See Also

Example

Compute an access between two STK Objects (using IAgStkObject interface)
[C#]
// Get access by STK Object
IAgStkAccess access = stkObject1.GetAccessToObject(stkObject2);

// Compute access
access.ComputeAccess();
Compute an access between two STK Objects (using IAgStkObject interface)
[Visual Basic .NET]
' Get access by STK Object
Dim access As IAgStkAccess = stkObject1.GetAccessToObject(stkObject2)

' Compute access
access.ComputeAccess()
© 2024 Analytical Graphics, Inc. All Rights Reserved.