116 Kernels(
const QString &filename);
125 int size()
const {
return (_kernels.size()); }
129 bool Add(
const QString &kfile);
140 int Load(
const QString &ktype);
143 int UnLoad(
const QString &ktype);
172 typedef std::vector<KernelFile> KernelList;
176 typedef std::vector<KernelFile *> KernelFileList;
185 const QString &iktype =
"UNKNOWN")
const;
191 std::vector<KernelFile>
findKernels(
Pvl &pvl,
const QString &kname,
192 const bool &manage =
true);
197 QString getKernelType(
const QString &kname)
const;
198 void loadKernel(
const QString &ktype =
"");
int UnLoad()
Unloads all kernels from the NAIF pool.
void addKernels(const KernelList &klist)
Add a list of kernel files to internal storage.
Kernels & operator=(const Kernels &kernels)
Copy constructor for existing Kernels objecr.
KernelFile * findByName(const QString &kfile)
Search kernel file list of a particular pattern.
QStringList getLoadedList(const QString &ktypes="") const
Returns list of kernel currently loaded according to status.
bool IsNaifType(const QString &ktype) const
Determine if the type is a NAIF supported kernel type.
QStringList getKernelList(const QString &ktype="") const
Provide a list of all the kernels found.
void UnManage()
Set each kernels' management state to unmanaged.
void Manage()
Set each kernels management status to managed.
QStringList getKernelTypes() const
Return list of types in kernel list.
TypeList categorizeByType() const
Categorizes the kernel list by type.
Determine SPICE kernels defined in an ISIS file.
void Clear()
Remove all kernel files from internal list.
bool IsManaged() const
Determine if all kernels are managed by this object.
KernelFile examine(const QString &fname, const bool &manage=true) const
Determine type of NAIF kernel file.
int Load()
Load all kernels in list.
virtual ~Kernels()
Destructor always unloads the kernels from the pool.
int Discover()
Determine which NAIF kernels are currently loaded in the pool.
bool Add(const QString &kfile)
Add a new kernel to the list.
int CameraVersion() const
Returns the ISIS camera model version number.
QString resolveTypeByExt(const QString &kfile, const QString &iktype="UNKNOWN") const
Check kernel type by file extension and special ISIS kernels.
void InitializeNaifKernelPool()
Initialize the NAIF kernel keeper pool.
Collector/container for arbitrary items.
Container for cube-like labels.
QStringList getMissingList() const
Returns list of kernels that were not found to exist.
QString resolveType(const QString &kfile) const
Determines type of NAIF/ISIS kernel we're dealing with.
std::vector< KernelFile > findKernels(Pvl &pvl, const QString &kname, const bool &manage=true)
Retrieve contents of keyword.
Namespace for ISIS/Bullet specific routines.
Kernels()
Default Constructor.
QStringList getTypes(const QString &ktypes) const
Get a vector of comma separated types from a string.
int Missing() const
Return count of missing kernel files.
int getCameraVersion(Pvl &pvl) const
Determine the ISIS camera model version number.
void Init(Pvl &pvl)
Determine Spice kernels in an ISIS label.
int UpdateLoadStatus()
Determine the load status of all kernels known to this object.
int UpdateManagedStatus()
Update the managed state of the kernel file list.
int Merge(const Kernels &other)
Merge the contents of another Kernels object.
int size() const
Returns the number of kernels found and/or loaded.
IO Handler for Isis Cubes.