Isis Developer 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
37class QDataStream;
38class QUuid;
39class QXmlStreamWriter;
40
41namespace 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
166 GuiCameraDisplayProperties *m_displayProperties;
167
168 QString m_instrumentId;
169
170 QString m_spacecraftNameShort;
171
172 QString m_spacecraftNameLong;
173
174 QString m_instrumentNameShort;
175
176 QString m_instrumentNameLong;
177 };
178
186 typedef QSharedPointer<GuiCamera> GuiCameraQsp;
187
188};
189
191
192#endif // GuiCamera_h
Q_DECLARE_METATYPE(Isis::GuiCameraQsp)
Definition Camera.h:236
The GUI communication mechanism for target body objects.
Definition GuiCameraDisplayProperties.h:76
Container class for GuiCamera.
Definition GuiCamera.h:72
QString instrumentNameLong()
Retrieves a long version for the name of the instrument.
Definition GuiCamera.cpp:325
QString spacecraftNameLong()
Retrieves the full name of the spacecraft.
Definition GuiCamera.cpp:343
QString spacecraftNameShort()
Retrieves an abbbreviated name for the spacecraft.
Definition GuiCamera.cpp:334
~GuiCamera()
The Destructor.
Definition GuiCamera.cpp:89
QString id() const
Output format:
Definition GuiCamera.cpp:298
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
const GuiCameraDisplayProperties * displayProperties() const
Retrieves the display properties of the camera.
Definition GuiCamera.cpp:133
QString instrumentNameShort()
Retrieves an abbreviated version for the name of the instrument.
Definition GuiCamera.cpp:316
QString instrumentId()
Retrieve the InstrumentId as appears in the original cube label.
Definition GuiCamera.cpp:307
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16
QSharedPointer< GuiCamera > GuiCameraQsp
GuiCameraQsp Represents a smart pointer to a GuiCamera object.
Definition GuiCamera.h:186