StkAttitudeFile Class |
Reads from and writes to STK attitude (.a) files. STK attitude files can express orientation and angular velocity, and are useful for getting this type of data into and out of STK.
To read an STK attitude file, call the ReadFrom(String) method to read the data into memory, and then call the CreateAxes method to create a time-varying Axes representing the attitude data in the file.
You can also build an StkAttitudeFile instance by calling the various Configure... methods such as ConfigureFromAxesInterpolator(AxesInterpolator). Once you've built an appropriate StkAttitudeFile instance, you can save it to a file or another stream by calling WriteTo(TextWriter).
Namespace: AGI.Foundation.Stk
The StkAttitudeFile type exposes the following members.
Name | Description | |
---|---|---|
StkAttitudeFile | Initializes a new instance. |
Name | Description | |
---|---|---|
Data |
Gets or sets the attitude data.
| |
Properties |
Gets a dictionary of key and value pairs in the STK attitude file.
| |
PropertiesWithUnsupportedValues |
Gets a dictionary of property names and values for the properties with values specified in the file that
are not supported by the StkAttitudeFile reader. Any information contained in these
properties may not be captured by the reader.
| |
UnsupportedProperties |
Gets a dictionary of property names and values for the properties that are contained in the file but that
are not supported by the StkAttitudeFile reader. Any information contained in these properties
may not be captured by the reader.
| |
Version |
Gets or sets the attitude file version.
|
Name | Description | |
---|---|---|
ConfigureFromAxes |
Configures this instance with values computed by sampling an Axes over an interval with
a fixed step. The Data property is replaced with a new instance of StkAttitudeFileAttitudeTimeQuaternions,
or StkAttitudeFileAttitudeTimeQuatAngVels (depending on the value of the
order property) and any existing information stored in that instance is lost.
The Properties are not modified, but values pulled from Axes will take precedence
over values in the Properties collection when writing this instance using WriteTo(TextWriter).
The Interpolator property is not configured, so you may want to call
ConfigureInterpolation(InterpolationAlgorithm, Int32) after calling this method.
| |
ConfigureFromAxesInterpolator |
Configures the instance to represent the attitude and interpolation stored in an AxesInterpolator.
The Data property is replaced with a new instance of StkAttitudeFileAttitudeTimeQuaternions,
or StkAttitudeFileAttitudeTimeQuatAngVels (depending on the number of derivatives
available from the AxesInterpolator) and any existing information stored in that instance
is lost. The Properties are not modified, but values pulled from AxesInterpolator
will take precedence over values in the Properties collection when writing this instance using
WriteTo(TextWriter).
| |
ConfigureInterpolation |
Configures the Interpolator to use the specified interpolation algorithm
and polynomial degree. The Data property must be set before calling this method.
| |
CreateAxes |
Creates an Axes whose time-varying orientation is computed by interpolating
over the attitude data held by this instance.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ReadFrom(String) |
Reads an STK attitude (.a) file from a specified file. See the
Remarks section of the
documentation of ReadFrom(TextReader, StkAttitudeFileOptions) for detailed information.
| |
ReadFrom(TextReader) |
Reads an STK attitude (.a) file from a TextReader. The
TextReader can be a StreamReader for reading
from a file, a StringReader for reading from a string,
or any number of other types. See the Remarks section of the
documentation of ReadFrom(TextReader, StkAttitudeFileOptions) for detailed information.
| |
ReadFrom(String, StkAttitudeFileOptions) |
Reads an STK attitude (.a) file from a specified file. See the
Remarks section of the
documentation of ReadFrom(TextReader, StkAttitudeFileOptions) for detailed information.
| |
ReadFrom(TextReader, StkAttitudeFileOptions) |
Reads an STK attitude (.a) file from a TextReader. The
TextReader can be a StreamReader for reading
from a file, a StringReader for reading from a string,
or any number of other types. See the
Remarks section for more information.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
WriteTo(TextWriter) |
Writes this instance to a TextWriter in the STK attitude file (.a) format.
The TextWriter can be a StreamWriter for writing to a file,
a StringWriter for writing to a string, or any number of other types.
| |
WriteTo(TextWriter, Boolean) |
Writes this instance to a TextWriter in the STK attitude file (.a) format.
The TextWriter can be a StreamWriter for writing to a file,
a StringWriter for writing to a string, or any number of other types.
|