Isis Developer Reference
CameraPointInfo.h
Go to the documentation of this file.
1 #ifndef CameraPointInfo_h
2 #define CameraPointInfo_h
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 
10 #include <QString>
11 
12 namespace Isis {
13  class Camera;
14  class CubeManager;
15  class Cube;
16  class PvlGroup;
17 
18 
78 
79  public:
81  virtual ~CameraPointInfo();
82 
83  void SetCube(const QString &cubeFileName);
84  void SetCSVOutput(bool csvOutput);
85  PvlGroup *SetImage(const double sample, const double line,
86  const bool outside = false, const bool error = false);
87  PvlGroup *SetCenter(const bool outside = false, const bool error = false);
88  PvlGroup *SetSample(const double sample, const bool outside = false,
89  const bool error = false);
90  PvlGroup *SetLine(const double line, const bool outside = false,
91  const bool error = false);
92  PvlGroup *SetGround(const double latitude, const double longitude,
93  const bool outside = false, const bool error = false);
94 
95  protected:
96  Camera *camera();
97  Cube *cube();
98 
99  private:
100  bool CheckCube();
101  virtual PvlGroup *GetPointInfo(bool passed, bool outside, bool errors);
102  CubeManager *m_usedCubes;
103  Cube *m_currentCube;
104  Camera *m_camera;
105  bool m_csvOutput;
106  };
107 };
108 
109 #endif
110 
Isis::PixelToString
QString PixelToString(double d)
Takes a double pixel value and returns the name of the pixel type as a string.
Definition: SpecialPixel.h:371
Isis::CameraPointInfo::SetImage
PvlGroup * SetImage(const double sample, const double line, const bool outside=false, const bool error=false)
SetImage sets a sample, line image coordinate in the camera so data can be accessed.
Definition: CameraPointInfo.cpp:94
CameraPointInfo.h
Cube.h
Isis::TProjection::ToPositiveWest
static double ToPositiveWest(const double lon, const int domain)
This method converts a longitude into the positive west direction.
Definition: TProjection.cpp:587
Isis::PvlKeyword
A single keyword-value pair.
Definition: PvlKeyword.h:82
Isis::CameraPointInfo::SetCenter
PvlGroup * SetCenter(const bool outside=false, const bool error=false)
SetCenter sets the image coordinates to the center of the image.
Definition: CameraPointInfo.cpp:115
Isis::PvlContainer::addKeyword
void addKeyword(const PvlKeyword &keyword, const InsertMode mode=Append)
Add a keyword to the container.
Definition: PvlContainer.cpp:202
SpecialPixel.h
Isis::CameraPointInfo::SetCSVOutput
void SetCSVOutput(bool csvOutput)
Set the output format (true is CSV, false is PVL)
Definition: CameraPointInfo.cpp:50
Isis::IException::Unknown
@ Unknown
A type of error that cannot be classified as any of the other error types.
Definition: IException.h:118
Isis::PvlKeyword::addValue
void addValue(QString value, QString unit="")
Adds a value with units.
Definition: PvlKeyword.cpp:252
PvlGroup.h
Isis::CameraPointInfo
CameraPointInfo provides quick access to the majority of information avaliable from a camera on a poi...
Definition: CameraPointInfo.h:77
Longitude.h
Isis::CameraPointInfo::SetGround
PvlGroup * SetGround(const double latitude, const double longitude, const bool outside=false, const bool error=false)
SetGround sets a latitude, longitude grrund coordinate in the camera so data can be accessed.
Definition: CameraPointInfo.cpp:187
Isis::CameraPointInfo::cube
Cube * cube()
Retrieves a pointer to the current cube.
Definition: CameraPointInfo.cpp:636
Isis::Camera
Definition: Camera.h:236
Isis::Brick
Buffer for containing a three dimensional section of an image.
Definition: Brick.h:45
Isis::toString
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
Isis::Distance
Distance measurement, usually in meters.
Definition: Distance.h:34
Isis::CubeManager
Class for quick re-accessing of cubes based on file name.
Definition: CubeManager.h:70
Isis::CameraPointInfo::SetLine
PvlGroup * SetLine(const double line, const bool outside=false, const bool error=false)
SetLine sets the image coordinates to the center sample and the given line.
Definition: CameraPointInfo.cpp:162
Isis::PvlGroup
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Isis::CameraPointInfo::camera
Camera * camera()
Retrieves a pointer to the camera.
Definition: CameraPointInfo.cpp:626
Isis::PvlKeyword::addComment
void addComment(QString comment)
Add a comment to the PvlKeyword.
Definition: PvlKeyword.cpp:376
Isis::CameraPointInfo::SetSample
PvlGroup * SetSample(const double sample, const bool outside=false, const bool error=false)
SetSample sets the image coordinates to the center line and the given sample.
Definition: CameraPointInfo.cpp:138
CameraFocalPlaneMap.h
Isis::Cube
IO Handler for Isis Cubes.
Definition: Cube.h:167
Isis::IException
Isis exception class.
Definition: IException.h:91
Isis::TProjection::To180Domain
static double To180Domain(const double lon)
This method converts a longitude into the -180 to 180 domain.
Definition: TProjection.cpp:657
Isis::PvlKeyword::setValue
void setValue(QString value, QString unit="")
Sets new values.
Definition: PvlKeyword.cpp:155
TProjection.h
Camera.h
Isis::CameraPointInfo::SetCube
void SetCube(const QString &cubeFileName)
SetCube opens the given cube in a CubeManager.
Definition: CameraPointInfo.cpp:75
Brick.h
IException.h
Isis::IException::Programmer
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
std
Namespace for the standard library.
Isis::IsValidPixel
bool IsValidPixel(const double d)
Returns if the input pixel is valid.
Definition: SpecialPixel.h:223
Isis::TProjection::ToPlanetographic
double ToPlanetographic(const double lat) const
This method converts a planetocentric latitude to a planetographic latitude.
Definition: TProjection.cpp:463
Isis::PvlContainer::keywords
int keywords() const
Returns the number of keywords contained in the PvlContainer.
Definition: PvlContainer.h:86
iTime.h
Isis::PvlContainer::findKeyword
PvlKeyword & findKeyword(const QString &name)
Find a keyword with a specified name.
Definition: PvlContainer.cpp:62
Distance.h
CubeManager.h
Isis::CameraPointInfo::CameraPointInfo
CameraPointInfo()
Constructor, initializes CubeManager and other variables for use.
Definition: CameraPointInfo.cpp:36
Isis::CameraPointInfo::~CameraPointInfo
virtual ~CameraPointInfo()
Destructor, deletes CubeManager object used.
Definition: CameraPointInfo.cpp:60
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16