USGS

Isis 3.0 Application Source Code Reference

Home

SpkSegment Class Reference

Maintain a SPK SPICE kernel segment for conversions and export. More...

#include <SpkSegment.h>

List of all members.

Public Types

typedef SpiceSegment::SVector SVector
 1-D Buffer
typedef SpiceSegment::SMatrix SMatrix
 2-D buffer

Public Member Functions

 SpkSegment ()
 Default constructor.
 SpkSegment (const std::string &fname)
 Constructor from ISIS cube file by name of the cube.
 SpkSegment (Cube &cube)
 Constructor from ISIS cube object.
virtual ~SpkSegment ()
void import (Cube &cube)
 Load and process SPICE data from an ISIS cube object.
int size () const
 Returns the number of elements in the vectors.
int BodyCode () const
 Returns SPK segment reference frame.
int CenterCode () const
 NAIF SPICE instrument code.
std::string ReferenceFrame () const
 Returns CK segment reference frame.
SVector Epochs () const
 Get times of each entry.
const SMatrixStates () const
 Returns instance of quaternions.
int Degree () const
bool HasVelocityVectors () const
std::string getComment () const
 Returns a comment summarizing the segment.

Detailed Description

Maintain a SPK SPICE kernel segment for conversions and export.

This class is designed to read SPICE data from ISIS cube blobs and convert them to proper formats for export to NAIF formatted SPK SPICE kernel files. This particular implementation supports NAIF SPK kernel types 9 and 13.

Author:
2011-02-12 Kris Becker

Definition at line 57 of file SpkSegment.h.


Member Typedef Documentation

1-D Buffer

Reimplemented from SpiceSegment.

Definition at line 59 of file SpkSegment.h.

2-D buffer

Reimplemented from SpiceSegment.

Definition at line 60 of file SpkSegment.h.


Constructor & Destructor Documentation

SpkSegment (  ) 

Default constructor.

Definition at line 51 of file SpkSegment.cpp.

SpkSegment ( const std::string &  fname  ) 

Constructor from ISIS cube file by name of the cube.

Definition at line 56 of file SpkSegment.cpp.

SpkSegment ( Cube cube  ) 

Constructor from ISIS cube object.

Definition at line 65 of file SpkSegment.cpp.

virtual ~SpkSegment (  )  [inline, virtual]

Definition at line 65 of file SpkSegment.h.


Member Function Documentation

void import ( Cube cube  ) 

Load and process SPICE data from an ISIS cube object.

This method extracts SPK SPICE date from an ISIS cube object. This object must have been spiceinit'ed at a minimum and, by definition, have a supporting camera model.

SPK data is extracted from the SpicePosition object via the Table it provides of this information. The SPICE position state vectors are potentially trasformed to the proper state for target body, center body and reference frame.

Author:
kbecker (5/2/2011)
Parameters:
cube Cube to generate SPICE segment from

Definition at line 91 of file SpkSegment.cpp.

int size (  )  const [inline]

Returns the number of elements in the vectors.

Reimplemented from SpiceSegment.

Definition at line 70 of file SpkSegment.h.

int BodyCode (  )  const [inline]

Returns SPK segment reference frame.

Definition at line 73 of file SpkSegment.h.

int CenterCode (  )  const [inline]

NAIF SPICE instrument code.

Definition at line 75 of file SpkSegment.h.

std::string ReferenceFrame (  )  const [inline]

Returns CK segment reference frame.

Reimplemented from SpiceSegment.

Definition at line 77 of file SpkSegment.h.

SVector Epochs (  )  const [inline]

Get times of each entry.

Definition at line 79 of file SpkSegment.h.

const SMatrix& States (  )  const [inline]

Returns instance of quaternions.

Definition at line 81 of file SpkSegment.h.

int Degree (  )  const [inline]

Definition at line 83 of file SpkSegment.h.

bool HasVelocityVectors (  )  const [inline]

Definition at line 85 of file SpkSegment.h.

std::string getComment (  )  const

Returns a comment summarizing the segment.

Construct a comment for the given segment.

Author:
kbecker (5/2/2011)
Returns:
std::string Comment string for the segment

Reimplemented from SpiceSegment.

Definition at line 298 of file SpkSegment.cpp.


The documentation for this class was generated from the following files: