AGI STK Objects 11 Send comments on this topic.
GetAccessToObject Method (IAgStkObject)
See Also  Example
pObject
The IAgStkObject to compute access to.





Description

Returns an IAgStkAccess object.

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
);

[Java]
public IAgStkAccess getAccessToObject(
IAgStkObject pObject
);

[Unmanaged C++]
public: HRESULT GetAccessToObject(
IAgStkObject * pObject,
IAgStkAccess ** ReturnValue
);

Parameters

pObject
The IAgStkObject to compute access to.

Example

Compute an access between two STK Objects (using IAgStkObject interface)
[C#] Copy Code
// 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] Copy Code
' Get access by STK Object
Dim access As IAgStkAccess = stkObject1.GetAccessToObject(stkObject2)

' Compute access
access.ComputeAccess()

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1