Isis 3 Programmer Reference
GuiCamera.h
Go to the documentation of this file.
1 #ifndef GuiCamera_h
2 #define GuiCamera_h
3 
27 #include <vector>
28 #include <QList>
29 #include <QObject>
30 #include <QSharedPointer>
31 #include <QString>
32 #include <SpiceUsr.h>
33 #include <SpiceZfc.h>
34 #include <SpiceZmc.h>
35 #include "XmlStackedHandler.h"
36 
37 class QDataStream;
38 class QUuid;
39 class QXmlStreamWriter;
40 
41 namespace Isis {
42 
43  class Camera;
44  class FileName;
45  class GuiCameraDisplayProperties;
46  class Project; // TODO: does xml stuff need project???
47  class PvlObject;
48  class XmlStackedHandlerReader;
49 
72  class GuiCamera : public QObject {
73  Q_OBJECT
74  public:
75  GuiCamera(Camera *camera, QObject *parent = 0);
76 // GuiCamera(Project *project, XmlStackedHandlerReader *xmlReader,
77 // QObject *parent = 0); // TODO: does xml stuff need project???
78  ~GuiCamera();
79 
80  bool operator==(const GuiCamera &srcGuiCamera) const;
81 
82  //GuiCameraDisplayProperties *displayProperties();
84 
85  QString id() const;
86 
87  QString instrumentId();
88 
89  QString instrumentNameShort();
90  QString instrumentNameLong();
91  QString spacecraftNameShort();
92  QString spacecraftNameLong();
93 
94 // void deleteFromDisk();
95 
96 // SpiceInt naifBodyCode() const;
97 // Distance radiusA() const;
98 // Distance radiusB() const;
99 // Distance radiusC() const;
100 // Distance meanRadius() const;
101 // Distance sigmaRadiusA() const;
102 // Distance sigmaRadiusB() const;
103 // Distance sigmaRadiusC() const;
104 // Distance sigmaMeanRadius() const;
105 
106 // void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const;
107 // TODO: does xml stuff need project and newRoot???
108 // void save(QXmlStreamWriter &stream, const Project *project) const;
109 // TODO: does xml stuff need project???
110 
111 // QDataStream &write(QDataStream &stream) const;
112 // QDataStream &read(QDataStream &stream);
113 
114 
115  private:
122 // class XmlHandler : public XmlStackedHandler {
123 // public:
124 // XmlHandler(GuiCamera *GuiCamera, Project *project); // TODO: does xml stuff need project???
125 // ~XmlHandler();
126 
127 // virtual bool startElement(const QString &namespaceURI, const QString &localName,
128 // const QString &qName, const QXmlAttributes &atts);
129 // virtual bool characters(const QString &ch);
130 // virtual bool endElement(const QString &namespaceURI, const QString &localName,
131 // const QString &qName);
132 
133 // private:
134 // Q_DISABLE_COPY(XmlHandler);
135 
136 // GuiCamera *m_xmlHandlerGuiCamera;
137 // Project *m_xmlHandlerProject; // TODO: does xml stuff need project???
138 // QString m_xmlHandlerCharacters;
139 // };
140 
141  private:
142  GuiCamera(const GuiCamera &other); // NOTE: copy constructor & assignment operators
143  GuiCamera &operator=(const GuiCamera &src); // are private so compiler will generate error
144  // if trying to use them (because parent is
145  // QObject which uses Q_DISABLE_COPY macro
146 
151  QUuid *m_id;
152 
156 // Camera *m_camera;
157 
161 // std::vector<Distance> m_sigmaRadii;
162 
167 
168  QString m_instrumentId;
169 
171 
173 
175 
177  };
178 
187 
188 };
189 
191 
192 #endif // GuiCamera_h
QString m_spacecraftNameLong
The full spacecraft name.
Definition: GuiCamera.h:172
QString spacecraftNameLong()
Retrieves the full name of the spacecraft.
Definition: GuiCamera.cpp:343
QString m_spacecraftNameShort
An abbreviated name for the spacecraft.
Definition: GuiCamera.h:170
Q_DECLARE_METATYPE(Isis::Cube *)
This allows Cube *&#39;s to be stored in a QVariant.
QString m_instrumentNameShort
The abbreviated instrument name.
Definition: GuiCamera.h:174
QString instrumentId()
Retrieve the InstrumentId as appears in the original cube label.
Definition: GuiCamera.cpp:307
Container class for GuiCamera.
Definition: GuiCamera.h:72
QString spacecraftNameShort()
Retrieves an abbbreviated name for the spacecraft.
Definition: GuiCamera.cpp:334
~GuiCamera()
The Destructor.
Definition: GuiCamera.cpp:89
QUuid * m_id
A unique ID for this GuiCamera object (useful for others to reference this object when saving to disk...
Definition: GuiCamera.h:151
QString id() const
Output format:
Definition: GuiCamera.cpp:298
QString m_instrumentId
The InstrumentId as it appears on the cube.
Definition: GuiCamera.h:168
GuiCamera(Camera *camera, QObject *parent=0)
The constructor for this class.
Definition: GuiCamera.cpp:25
bool operator==(const GuiCamera &srcGuiCamera) const
Compares two Target Body objects to see if they are equal.
Definition: GuiCamera.cpp:113
QString instrumentNameShort()
Retrieves an abbreviated version for the name of the instrument.
Definition: GuiCamera.cpp:316
QSharedPointer< GuiCamera > GuiCameraQsp
GuiCameraQsp Represents a smart pointer to a GuiCamera object.
Definition: GuiCamera.h:186
The GUI communication mechanism for target body objects.
QString instrumentNameLong()
Retrieves a long version for the name of the instrument.
Definition: GuiCamera.cpp:325
QString m_instrumentNameLong
The full instrument name.
Definition: GuiCamera.h:176
const GuiCameraDisplayProperties * displayProperties() const
Retrieves the display properties of the camera.
Definition: GuiCamera.cpp:133
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
GuiCameraDisplayProperties * m_displayProperties
Camera.
Definition: GuiCamera.h:166