29class QXmlStreamWriter;
43 class ShapeDisplayProperties;
75 explicit Shape(QString shapeFileName,
QObject *parent = 0);
93 const geos::geom::MultiPolygon *
footprint()
const;
94 void setId(QString
id);
111 void save(QXmlStreamWriter &stream,
const Project *project,
FileName newProjectRoot)
const;
120 void initMemberData();
126 geos::geom::MultiPolygon *createFootprint(QMutex *cameraMutex);
127 void initQuickFootprint();
130 SpiceInt *m_bodyCode;
144 ShapeType m_shapeType;
157 QString m_serialNumber;
161 QString m_instrumentId;
165 QString m_spacecraftName;
169 geos::geom::MultiPolygon *m_footprint;
176 double m_aspectRatio;
178 Angle m_emissionAngle;
179 Angle m_incidenceAngle;
180 double m_lineResolution;
182 Angle m_northAzimuth;
184 double m_sampleResolution;
187 QString m_targetName;
188 QString m_projectionName;
195 double m_pixelResolution;
Q_DECLARE_METATYPE(Isis::Shape *)
Defines an angle and provides unit conversions.
Definition Angle.h:45
IO Handler for Isis Cubes.
Definition Cube.h:168
Distance measurement, usually in meters.
Definition Distance.h:34
File name manipulation and expansion.
Definition FileName.h:100
This class is designed to encapsulate the concept of a Latitude.
Definition Latitude.h:51
This class is designed to encapsulate the concept of a Longitude.
Definition Longitude.h:40
The main project for ipce.
Definition Project.h:287
Contains Pvl Groups and Pvl Objects.
Definition PvlObject.h:61
This is the GUI communication mechanism for shape objects.
Definition ShapeDisplayProperties.h:58
This represents a shape in a project-based GUI interface.
Definition Shape.h:66
~Shape()
Clean up this shape.
Definition Shape.cpp:73
Shape(QString shapeFileName, QObject *parent=0)
Create an Shape from a cube file on disk.
Definition Shape.cpp:44
void closeCube()
Cleans up the Cube *.
Definition Shape.cpp:326
PvlObject toPvl() const
Convert this Shape to PVL.
Definition Shape.cpp:252
bool isFootprintable() const
Test to see if it's possible to create a footprint from this shape.
Definition Shape.cpp:278
Distance localRadius() const
Get the local radius of this shape, as calculated and attached by camstats.
Definition Shape.cpp:498
Angle phaseAngle() const
Get the phase angle of this shape, as calculated and attached by camstats.
Definition Shape.cpp:520
void updateFileName(Project *)
Change the on-disk file name for this cube to be where the shape ought to be in the given project.
Definition Shape.cpp:606
double resolution() const
Get the resolution of this shape, as calculated and attached by camstats.
Definition Shape.cpp:454
QString serialNumber()
Get the serial number.
Definition Shape.cpp:369
double sampleResolution() const
Get the sample resolution of this shape, as calculated and attached by camstats.
Definition Shape.cpp:531
ShapeDisplayProperties * displayProperties()
Get the display (GUI) properties (information) associated with this shape.
Definition Shape.cpp:339
double lineResolution() const
Get the line resolution of this shape, as calculated and attached by camstats.
Definition Shape.cpp:487
void deleteFromDisk()
Delete the shape data from disk.
Definition Shape.cpp:575
Angle emissionAngle() const
Get the emission angle of this shape, as calculated and attached by camstats.
Definition Shape.cpp:465
QString id() const
Get a unique, identifying string associated with this shape.
Definition Shape.cpp:443
void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
Output format:
Definition Shape.cpp:815
double aspectRatio() const
Get the aspect ratio of this shape, as calculated and attached by camstats.
Definition Shape.cpp:433
QString fileName() const
Get the file name of the cube that this shape represents.
Definition Shape.cpp:360
Cube * cube()
Get the Cube * associated with this display property.
Definition Shape.cpp:308
Angle incidenceAngle() const
Get the incidence angle of this shape, as calculated and attached by camstats.
Definition Shape.cpp:476
void copyToNewProjectRoot(const Project *project, FileName newProjectRoot)
Copy the cub/ecub files associated with this shape into the new project.
Definition Shape.cpp:539
ControlPoint::RadiusSource::Source radiusSource()
Definition Shape.cpp:198
bool initFootprint(QMutex *cameraMutex)
Calculate a footprint for this shape.
Definition Shape.cpp:405
void fromPvl(const PvlObject &pvl)
Read the shape settings from a Pvl.
Definition Shape.cpp:220
ShapeType shapeType()
Definition Shape.cpp:203
ShapeType
Definition Shape.h:69
@ Unknown
Definition Shape.h:73
@ Unprojected
Definition Shape.h:72
@ Dem
Definition Shape.h:70
@ Basemap
Definition Shape.h:71
void setId(QString id)
Override the automatically generated ID with the given ID.
Definition Shape.cpp:386
Angle northAzimuth() const
Get the north azimuth of this shape, as calculated and attached by camstats.
Definition Shape.cpp:509
ControlPoint::SurfacePointSource::Source surfacePointSource()
Definition Shape.cpp:193
geos::geom::MultiPolygon * footprint()
Get the footprint of this shape (if available).
Definition Shape.cpp:378
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16
Source
Definition ControlPoint.h:453
Source
Definition ControlPoint.h:442