104 double et = inst[
"EphemerisTime"];
111 double sampleDetectors = inst[
"SampleDetectors"];
112 double lineDetectors = inst[
"LineDetectors"];
117 int xDependency = inst[
"FocalPlaneXDependency"];
125 if (inst.
hasKeyword(
"TransX")) xdir = inst[
"TransX"];
126 if (inst.
hasKeyword(
"TransY")) ydir = inst[
"TransY"];
143 keyval[0] = inst[
"TransX0"];
147 keyval[yDependency] = 0.;
152 pdpool_c(
"IDEAL_TRANSX", 3, keyval);
162 keyval[0] = inst[
"TransY0"];
166 keyval[xDependency] = 0.;
171 pdpool_c(
"IDEAL_TRANSY", 3, keyval);
181 keyval[0] = inst[
"TransS0"];
184 keyval[xDependency] = 1 /
PixelPitch() * sdir;
185 keyval[yDependency] = 0.;
190 pdpool_c(
"IDEAL_TRANSS", 3, keyval);
200 keyval[0] = inst[
"TransL0"];
203 keyval[yDependency] = 1 /
PixelPitch() * ldir;
204 keyval[xDependency] = 0.0;
209 pdpool_c(
"IDEAL_TRANSL", 3, keyval);
213 QString type = (QString) inst[
"InstrumentType"];
214 if (type.toUpper() ==
"FRAMING") {
219 lineDetectors / 2.0 + 0.5);
227 else if (type.toUpper() ==
"LINESCAN") {
241 QString msg =
"Unknown InstrumentType [" +
242 (QString) inst[
"InstrumentType"] +
"]";
259 string msg =
"No CK Frame ID for Ideal Camera class";
271 string msg =
"No CK Reference ID for Ideal Camera class";
283 string msg =
"No SPK Target ID for Ideal Camera class";
295 string msg =
"No SPK Center ID for Ideal Camera class";
307 string msg =
"No SPK Reference ID for Ideal Camera class";
void SetFocalLength()
Reads the focal length from the instrument kernel.
bool hasKeyword(const QString &name) const
Check to see if a keyword exists.
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
QString m_instrumentNameShort
Shortened instrument name.
void SetPixelPitch()
Reads the Pixel Pitch from the instrument kernel.
Namespace for the standard library.
The x value of the focal plane maps to a sample.
void SetDetectorOrigin(const double sample, const double line)
Set the detector origin.
double toDouble(const QString &string)
Global function to convert from a string to a double.
virtual int SpkReferenceId() const
SPK Reference ID.
Convert between undistorted focal plane and ground coordinates.
Convert between parent image coordinates and detector coordinates.
Convert between undistorted focal plane and ground coordinates.
virtual QString spacecraftNameLong() const
This method returns the full spacecraft name.
Convert between distorted focal plane and detector coordinates.
Contains multiple PvlContainers.
#define _FILEINFO_
Macro for the filename and line number.
A type of error that could only have occurred due to a mistake on the user's part (e...
Isis::Camera * IdealCameraPlugin(Isis::Cube &cube)
External C function for createing the camera plugin.
Distort/undistort focal plane coordinates.
double PixelPitch() const
Returns the pixel pitch.
virtual int SpkCenterId() const
SPK Center ID.
QString m_instrumentNameLong
Full instrument name.
virtual int CkReferenceId() const
CK Reference ID.
void setTime(const iTime &time)
By setting the time you essential set the position of the spacecraft and body as indicated in the cla...
virtual QString instrumentNameLong() const
This method returns the full instrument name.
Convert between undistorted focal plane and ra/dec coordinates.
void LoadCache()
This loads the spice cache big enough for this image.
virtual int CkFrameId() const
CK frame ID.
Pvl * label() const
Returns a pointer to the IsisLabel object associated with the cube.
bool p_framing
true if framing camera
QString m_spacecraftNameLong
Full spacecraft name.
~IdealCamera()
Destroys the IdealCamera object.
static void CheckErrors(bool resetNaif=true)
This method looks for any naif errors that might have occurred.
Namespace for ISIS/Bullet specific routines.
Convert between undistorted focal plane and ra/dec coordinates.
virtual int SpkTargetId() const
SPK Target ID.
virtual QString instrumentNameShort() const
This method returns the shortened instrument name.
virtual double exposureDuration() const
Return the exposure duration for the pixel that the camera is set to.
QVariant readValue(QString key, SpiceValueType type, int index=0)
This should be used for reading ALL text naif kernel values.
The x value of the focal plane maps to a line.
Convert between parent image coordinates and detector coordinates.
QString m_spacecraftNameShort
Shortened spacecraft name.
virtual QString spacecraftNameShort() const
This method returns the shortened spacecraft name.
IO Handler for Isis Cubes.