File failed to load: https://isis.astrogeology.usgs.gov/6.0.0/Object/assets/jax/output/NativeMML/config.js
 |
Isis Developer Reference
|
Go to the documentation of this file.
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;
153 geos::geom::MultiPolygon *createFootprint(QMutex *cameraMutex);
155 void initQuickFootprint();
176 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
177 const QString &qName,
const QXmlAttributes &atts);
178 virtual bool characters(
const QString &ch);
179 virtual bool endElement(
const QString &namespaceURI,
const QString &localName,
180 const QString &qName);
183 Q_DISABLE_COPY(XmlHandler);
187 QString m_characters;
195 SpiceInt *m_bodyCode;
221 QString m_instrumentId;
226 QString m_observationNumber;
231 QString m_serialNumber;
236 QString m_spacecraftName;
241 geos::geom::MultiPolygon *m_footprint;
247 double m_aspectRatio;
249 Angle m_emissionAngle;
250 Angle m_incidenceAngle;
251 double m_lineResolution;
252 double m_sampleResolution;
254 Angle m_northAzimuth;
@ Degrees
Degrees are generally considered more human readable, 0-360 is one circle, however most math does not...
Definition: Angle.h:56
virtual QString fileName() const
Returns the opened cube's filename.
Definition: Cube.cpp:1563
@ Io
A type of error that occurred when performing an actual I/O operation.
Definition: IException.h:155
Contains Pvl Groups and Pvl Objects.
Definition: PvlObject.h:61
void print() const
Prints a string representation of this exception to stderr.
Definition: IException.cpp:445
void fromPvl(const PvlObject &pvl)
Definition: DisplayProperties.cpp:54
A single keyword-value pair.
Definition: PvlKeyword.h:82
QString serialNumber()
Returns the serial number of the Cube.
Definition: Image.cpp:361
QString Type() const
Accessor method that returns a string containing the Blob type.
Definition: Blob.cpp:124
QString name() const
Returns the name of the file excluding the path and the attributes in the file name.
Definition: FileName.cpp:162
double lineResolution() const
Get the line resolution of this image, as calculated and attached by camstats.
Definition: Image.cpp:485
File name manipulation and expansion.
Definition: FileName.h:100
@ Unknown
A type of error that cannot be classified as any of the other error types.
Definition: IException.h:118
ImagePolygon readFootprint() const
Read the footprint polygon for the Cube.
Definition: Cube.cpp:866
virtual void pushContentHandler(XmlStackedHandler *newHandler)
Push a contentHandler and maybe continue parsing...
Definition: XmlStackedHandlerReader.cpp:55
Blob toBlob() const
Serialize the ImagePolygon to a Blob.
Definition: ImagePolygon.cpp:1347
static QString Compose(Pvl &label, bool def2filename=false)
Compose a SerialNumber from a PVL.
Definition: SerialNumber.cpp:38
Cube * copy(FileName newFile, const CubeAttributeOutput &newFileAttributes)
Copies the cube to the new fileName.
Definition: Cube.cpp:276
virtual bool startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)
Definition: XmlStackedHandler.cpp:44
Container for cube-like labels.
Definition: Pvl.h:119
void Create(Cube &cube, int sinc=1, int linc=1, int ss=1, int sl=1, int ns=0, int nl=0, int band=1, bool increasePrecision=false)
Create a Polygon from given cube.
Definition: ImagePolygon.cpp:217
bool initFootprint(QMutex *cameraMutex)
Calculate a footprint for this image.
Definition: Image.cpp:409
int objects() const
Returns the number of objects.
Definition: PvlObject.h:219
Manipulate and parse attributes of output cube filenames.
Definition: CubeAttribute.h:473
static geos::geom::GeometryFactory::Ptr globalFactory
Definition: PolygonTools.h:51
QString fileName() const
Get the file name of the cube that this image represents.
Definition: Image.cpp:340
Create cube polygons, read/write polygons to blobs.
Definition: ImagePolygon.h:153
Angle phaseAngle() const
Get the phase angle of this image, as calculated and attached by camstats.
Definition: Image.cpp:515
PvlObject & object(const int index)
Return the object at the specified index.
Definition: PvlObject.cpp:489
QString imageDataRoot() const
Accessor for the root directory of the image data.
Definition: Project.cpp:2077
Manage a stack of content handlers for reading XML files.
Definition: XmlStackedHandlerReader.h:30
bool IsSpecial(const double d)
Returns if the input pixel is special.
Definition: SpecialPixel.h:197
QString Name() const
Accessor method that returns a string containing the Blob name.
Definition: Blob.cpp:133
Distance measurement, usually in meters.
Definition: Distance.h:34
The main project for ipce.
Definition: Project.h:289
double resolution() const
Get the resolution of this image, as calculated and attached by camstats.
Definition: Image.cpp:455
Distance localRadius() const
Get the local radius of this image, as calculated and attached by camstats.
Definition: Image.cpp:495
FileName externalCubeFileName() const
If this is an external cube label file, this will give you the cube dn file that this label reference...
Definition: Cube.cpp:1535
void deleteFromDisk()
Delete the image data from disk.
Definition: Image.cpp:586
double aspectRatio() const
Get the aspect ratio of this image, as calculated and attached by camstats.
Definition: Image.cpp:436
const int ReadWrite
Definition: Process.h:24
@ Meters
The distance is being specified in meters.
Definition: Distance.h:43
Q_DECLARE_METATYPE(Isis::Image *)
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
Angle northAzimuth() const
Get the north azimuth of this image, as calculated and attached by camstats.
Definition: Image.cpp:505
int lineCount() const
Definition: Cube.cpp:1734
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
QDir dir() const
Returns the path of the file's parent directory as a QDir object.
Definition: FileName.cpp:465
bool isNamed(const QString &match) const
Returns whether the given string is equal to the container name or not.
Definition: PvlContainer.h:72
void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
Write the Image properties out to an XML file.
Definition: Image.cpp:626
bool hasKeyword(const QString &kname, FindOptions opts) const
See if a keyword is in the current PvlObject, or deeper inside other PvlObjects and Pvlgroups within ...
Definition: PvlObject.cpp:236
geos::geom::MultiPolygon * footprint()
Get the footprint of this image (if available).
Definition: Image.cpp:374
Cube * cube()
Get the Cube pointer associated with this display property.
Definition: Image.cpp:287
PvlObjectIterator findObject(const QString &name, PvlObjectIterator beg, PvlObjectIterator end)
Find the index of object with a specified name, between two indexes.
Definition: PvlObject.h:274
bool isValid() const
Test if this distance has been initialized or not.
Definition: Distance.cpp:192
int sampleCount() const
Definition: Cube.cpp:1807
void closeCube()
Cleans up the Cube pointer.
Definition: Image.cpp:307
QString newProjectRoot() const
Get the top-level folder of the new project.
Definition: Project.cpp:1675
QString displayName() const
Returns the display name.
Definition: DisplayProperties.cpp:88
void fromPvl(const PvlObject &pvl)
Read the image settings from a Pvl.
Definition: Image.cpp:194
static QString Compose(Pvl &label, bool def2filename=false)
Compose a ObservationNumber from a PVL.
Definition: ObservationNumber.cpp:31
bool isFootprintable() const
Test to see if it's possible to create a footprint from this image.
Definition: Image.cpp:253
IO Handler for Isis Cubes.
Definition: Cube.h:167
virtual bool endElement(const QString &namespaceURI, const QString &localName, const QString &qName)
Definition: XmlStackedHandler.cpp:55
double sampleResolution() const
Get the sample resolution of this image, as calculated and attached by camstats.
Definition: Image.cpp:525
void copyToNewProjectRoot(const Project *project, FileName newProjectRoot)
Copy the cub/ecub files associated with this image into the new project.
Definition: Image.cpp:534
This represents a cube in a project-based GUI interface.
Definition: Image.h:107
Isis exception class.
Definition: IException.h:91
Defines an angle and provides unit conversions.
Definition: Angle.h:45
QString toString() const
Returns a QString of the full file name including the file path, excluding the attributes with any Is...
Definition: FileName.cpp:515
QString projectRoot() const
Get the top-level folder of the project.
Definition: Project.cpp:1666
const double Null
Value for an Isis Null pixel.
Definition: SpecialPixel.h:95
void updateFileName(Project *)
Change the on-disk file name for this cube to be where the image ought to be in the given project.
Definition: Image.cpp:691
Image(QString imageFileName, QObject *parent=0)
Create an image from a cube file on disk.
Definition: Image.cpp:42
ImageDisplayProperties * displayProperties()
Get the display (GUI) properties (information) associated with this image.
Definition: Image.cpp:320
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
bool isValid() const
This indicates whether we have a legitimate angle stored or are in an unset, or invalid,...
Definition: Angle.cpp:95
bool storesDnData() const
This method returns a boolean value.
Definition: Cube.cpp:1904
Pvl * label() const
Returns a pointer to the IsisLabel object associated with the cube.
Definition: Cube.cpp:1701
QString id() const
Get a unique, identifying string associated with this image.
Definition: Image.cpp:445
PvlObject toPvl() const
Convert to Pvl for project files.
Definition: DisplayProperties.cpp:68
double meters() const
Get the distance in meters.
Definition: Distance.cpp:85
XML Handler that parses XMLs in a stack-oriented way.
Definition: XmlStackedHandler.h:118
PvlObject toPvl() const
Convert this Image to PVL.
Definition: Image.cpp:226
Adds specific functionality to C++ strings.
Definition: IString.h:165
Angle incidenceAngle() const
Get the incidence angle of this image, as calculated and attached by camstats.
Definition: Image.cpp:475
void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
Output format:
Definition: DisplayProperties.cpp:159
Angle emissionAngle() const
Get the emission angle of this image, as calculated and attached by camstats.
Definition: Image.cpp:465
FileName setExtension(const QString &extension) const
Sets all current file extensions to a new extension in the file name.
Definition: FileName.cpp:265
QString observationNumber()
Returns the observation number of the Cube.
Definition: Image.cpp:349
static QString imageDataRoot(QString projectRoot)
Appends the root directory name 'images' to the project .
Definition: Project.cpp:2067
~Image()
Clean up this image.
Definition: Image.cpp:161
geos::geom::MultiPolygon * Polys()
Return a geos Multipolygon.
Definition: ImagePolygon.h:210
void setId(QString id)
Override the automatically generated ID with the given ID.
Definition: Image.cpp:383
QString path() const
Returns the path of the file name.
Definition: FileName.cpp:103
@ Radians
Radians are generally used in mathematical equations, 0-2*PI is one circle, however these are more di...
Definition: Angle.h:63
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
QString ToQt() const
Retuns the object string as a QString.
Definition: IString.cpp:869
@ User
A type of error that could only have occurred due to a mistake on the user's part (e....
Definition: IException.h:126
This is the GUI communication mechanism for cubes.
Definition: ImageDisplayProperties.h:85
double radians() const
Convert an angle to a double.
Definition: Angle.h:226