Container class for GuiCamera. More...
#include <GuiCamera.h>
Public Member Functions | |
GuiCamera (Camera *camera, QObject *parent=0) | |
The constructor for this class. More... | |
~GuiCamera () | |
The Destructor. More... | |
bool | operator== (const GuiCamera &srcGuiCamera) const |
Compares two Target Body objects to see if they are equal. More... | |
const GuiCameraDisplayProperties * | displayProperties () const |
Retrieves the display properties of the camera. More... | |
QString | id () const |
This returns the NAIF body code of the target. More... | |
QString | instrumentNameShort () |
Retrieves an abbreviated version for the name of the instrument. More... | |
QString | instrumentNameLong () |
Retrieves a long version for the name of the instrument. More... | |
QString | spacecraftNameShort () |
Retrieves an abbbreviated name for the spacecraft. More... | |
QString | spacecraftNameLong () |
Retrieves the full name of the spacecraft. More... | |
Private Member Functions | |
GuiCamera (const GuiCamera &other) | |
GuiCamera & | operator= (const GuiCamera &src) |
Private Attributes | |
QUuid * | m_id |
A unique ID for this GuiCamera object (useful for others to reference this object when saving to disk). More... | |
GuiCameraDisplayProperties * | m_displayProperties |
Camera. More... | |
QString | m_spacecraftNameShort |
An abbreviated name for the spacecraft. More... | |
QString | m_spacecraftNameLong |
The full spacecraft name. More... | |
QString | m_instrumentNameShort |
The abbreviated instrument name. More... | |
QString | m_instrumentNameLong |
The full instrument name. More... | |
Container class for GuiCamera.
This class represents a camera in a project-based GUI interface. It encapsulates ideas about a camera such as it's display name, how it should be viewed, where it is on disk, etc.
2015-06-23 Ken Edmundson - Original version.
2015-10-14 Jeffrey Covington - Declared GuiCameraQsp as a Qt metatype for use with QVariant.
2016-06-08 Tyler Wilson - Added documentation to some functions and corrected the formatting. Fixes #3997.
Definition at line 70 of file GuiCamera.h.
The constructor for this class.
camera | A traditional Isis::Camera object which we are wrapping in this class. |
parent | A pointer to the object instantiating this object. |
Definition at line 29 of file GuiCamera.cpp.
References Isis::Camera::instrumentNameLong(), Isis::Camera::instrumentNameShort(), m_displayProperties, m_id, m_instrumentNameLong, m_instrumentNameShort, m_spacecraftNameLong, m_spacecraftNameShort, Isis::Camera::spacecraftNameLong(), and Isis::Camera::spacecraftNameShort().
Isis::GuiCamera::~GuiCamera | ( | ) |
|
private |
const GuiCameraDisplayProperties * Isis::GuiCamera::displayProperties | ( | ) | const |
Retrieves the display properties of the camera.
Definition at line 135 of file GuiCamera.cpp.
References m_displayProperties.
Referenced by operator==(), and Isis::SensorInfoWidget::SensorInfoWidget().
QString Isis::GuiCamera::id | ( | ) | const |
This returns the NAIF body code of the target.
<image id="..." filename="..."> ... </image>
(fileName attribute is just the base name) Create an XML Handler (reader) that can populate the BundleSettings class data. See BundleSettings::save() for the expected format.
bundleSettings | The image we're going to be initializing |
imageFolder | The folder that contains the Cube Handle an XML start element. This expects <image> and <displayProperties> elements. |
Definition at line 411 of file GuiCamera.cpp.
References m_id.
QString Isis::GuiCamera::instrumentNameLong | ( | ) |
Retrieves a long version for the name of the instrument.
Definition at line 427 of file GuiCamera.cpp.
References m_instrumentNameLong.
QString Isis::GuiCamera::instrumentNameShort | ( | ) |
Retrieves an abbreviated version for the name of the instrument.
Definition at line 419 of file GuiCamera.cpp.
References m_instrumentNameShort.
bool Isis::GuiCamera::operator== | ( | const GuiCamera & | srcGuiCamera | ) | const |
Compares two Target Body objects to see if they are equal.
srcGuiCamera | GuiCamera object to compare against |
Definition at line 115 of file GuiCamera.cpp.
References Isis::DisplayProperties::displayName(), displayProperties(), and m_displayProperties.
QString Isis::GuiCamera::spacecraftNameLong | ( | ) |
Retrieves the full name of the spacecraft.
Definition at line 443 of file GuiCamera.cpp.
References m_spacecraftNameLong.
Referenced by Isis::SensorInfoWidget::SensorInfoWidget().
QString Isis::GuiCamera::spacecraftNameShort | ( | ) |
Retrieves an abbbreviated name for the spacecraft.
Definition at line 435 of file GuiCamera.cpp.
References m_spacecraftNameShort.
|
private |
target radii sigmas The GUI information for how this camera will be displayed.
Definition at line 165 of file GuiCamera.h.
Referenced by displayProperties(), GuiCamera(), and operator==().
|
private |
A unique ID for this GuiCamera object (useful for others to reference this object when saving to disk).
Definition at line 150 of file GuiCamera.h.
Referenced by GuiCamera(), id(), and ~GuiCamera().
|
private |
The full instrument name.
Definition at line 178 of file GuiCamera.h.
Referenced by GuiCamera(), and instrumentNameLong().
|
private |
The abbreviated instrument name.
Definition at line 175 of file GuiCamera.h.
Referenced by GuiCamera(), and instrumentNameShort().
|
private |
The full spacecraft name.
Definition at line 172 of file GuiCamera.h.
Referenced by GuiCamera(), and spacecraftNameLong().
|
private |
An abbreviated name for the spacecraft.
Definition at line 169 of file GuiCamera.h.
Referenced by GuiCamera(), and spacecraftNameShort().
U.S. Department of the Interior | U.S. Geological Survey ISIS | Privacy & Disclaimers | Astrogeology Research Program To contact us, please post comments and questions on the ISIS Support Center File Modified: 07/12/2023 23:51:06 |