|
Isis 3 Programmer Reference
|
Go to the documentation of this file.
33 #include "XmlStackedHandler.h"
41 class QXmlStreamWriter;
52 class ImageDisplayProperties;
55 class XmlStackedHandlerReader;
110 explicit Image(QString imageFileName,
QObject *parent = 0);
129 const geos::geom::MultiPolygon *
footprint()
const;
130 void setId(QString
id);
147 void save(QXmlStreamWriter &stream,
const Project *project,
FileName newProjectRoot)
const;
176 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
177 const QString &qName,
const QXmlAttributes &atts);
179 virtual bool endElement(
const QString &namespaceURI,
const QString &localName,
180 const QString &qName);
Cube * m_cube
The cube associated with this Image.
Distance m_localRadius
Local radius of the image.
Angle m_phaseAngle
Phase angle for the image.
XmlHandler(Image *image, FileName imageFolder)
Create an XML Handler (reader) that can populate the Image class data.
Contains Pvl Groups and Pvl Objects.
QString serialNumber()
Returns the serial number of the Cube.
double m_resolution
Resolution of the image.
geos::geom::MultiPolygon * m_footprint
A 0-360 ocentric lon,lat degrees footprint of this Image.
double lineResolution() const
Get the line resolution of this image, as calculated and attached by camstats.
File name manipulation and expansion.
Image * m_image
Pointer to the Image.
QString m_spacecraftName
Spacecraft name associated with this Image.
ImageDisplayProperties * m_displayProperties
The GUI information for how this Image ought to be displayed.
void initQuickFootprint()
Creates a default ImagePolygon option which is read into the Cube.
bool initFootprint(QMutex *cameraMutex)
Calculate a footprint for this image.
QString fileName() const
Get the file name of the cube that this image represents.
Angle phaseAngle() const
Get the phase angle of this image, as calculated and attached by camstats.
FileName m_imageFolder
The Name/path of the image.
QUuid * m_id
A unique ID for this Image (useful for others to reference this Image when saving to disk).
QString m_characters
Character data storage found in the content of XML elements.
Manage a stack of content handlers for reading XML files.
Distance measurement, usually in meters.
The main project for ipce.
double resolution() const
Get the resolution of this image, as calculated and attached by camstats.
Distance localRadius() const
Get the local radius of this image, as calculated and attached by camstats.
QString m_observationNumber
The observation number for this image.
void deleteFromDisk()
Delete the image data from disk.
double aspectRatio() const
Get the aspect ratio of this image, as calculated and attached by camstats.
Angle northAzimuth() const
Get the north azimuth of this image, as calculated and attached by camstats.
geos::geom::MultiPolygon * createFootprint(QMutex *cameraMutex)
Calculates a footprint for an Image using the camera or projection information.
Angle m_northAzimuth
North Azimuth for the image.
void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
Write the Image properties out to an XML file.
geos::geom::MultiPolygon * footprint()
Get the footprint of this image (if available).
Cube * cube()
Get the Cube pointer associated with this display property.
void closeCube()
Cleans up the Cube pointer.
void fromPvl(const PvlObject &pvl)
Read the image settings from a Pvl.
bool isFootprintable() const
Test to see if it's possible to create a footprint from this image.
IO Handler for Isis Cubes.
double sampleResolution() const
Get the sample resolution of this image, as calculated and attached by camstats.
void copyToNewProjectRoot(const Project *project, FileName newProjectRoot)
Copy the cub/ecub files associated with this image into the new project.
This represents a cube in a project-based GUI interface.
virtual bool endElement(const QString &namespaceURI, const QString &localName, const QString &qName)
The XML reader invokes this method at the end of every element in the XML document.
Angle m_incidenceAngle
Incidence angle of the image.
Defines an angle and provides unit conversions.
virtual bool startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)
Read mage class attributes.
void updateFileName(Project *)
Change the on-disk file name for this cube to be where the image ought to be in the given project.
Image(QString imageFileName, QObject *parent=0)
Create an image from a cube file on disk.
ImageDisplayProperties * displayProperties()
Get the display (GUI) properties (information) associated with this image.
QString m_serialNumber
The serial number for this image.
Angle m_emissionAngle
Emmission angle of the image.
QString m_instrumentId
Instrument id associated with this Image.
QString id() const
Get a unique, identifying string associated with this image.
double m_lineResolution
Line resolution of the image.
virtual bool characters(const QString &ch)
This implementation of a virtual function calls QXmlDefaultHandler::characters(QString &ch) which in ...
XML Handler that parses XMLs in a stack-oriented way.
void initCamStats()
Checks to see if the Cube label contains Camera Statistics.
PvlObject toPvl() const
Convert this Image to PVL.
QString m_fileName
The on-disk file name of the cube associated with this Image.
Process XML in a stack-oriented fashion.
Angle incidenceAngle() const
Get the incidence angle of this image, as calculated and attached by camstats.
Angle emissionAngle() const
Get the emission angle of this image, as calculated and attached by camstats.
QString observationNumber()
Returns the observation number of the Cube.
~Image()
Clean up this image.
double m_sampleResolution
Sample resolution of the image.
void setId(QString id)
Override the automatically generated ID with the given ID.
This is free and unencumbered software released into the public domain.
SpiceInt * m_bodyCode
The NaifBodyCode value, if it exists in the labels.
Q_DECLARE_METATYPE(Isis::PlotWindow *)
We have plot windows as QVariant data types, so here it's enabled.
double m_aspectRatio
Aspect ratio of the image.
This is the GUI communication mechanism for cubes.