|
Isis Developer Reference
|
Go to the documentation of this file.
4 #include <QAbstractGraphicsShapeItem>
6 class QGraphicsPolygonItem;
17 class MosaicSceneWidget;
21 class UniversalGroundMap;
54 virtual void paint(QPainter *painter,
55 const QStyleOptionGraphicsItem *option,
60 QGraphicsSimpleTextItem *
getLabel()
const {
return m_label; }
63 bool contains(
const QPointF &)
const;
85 void lostCubeDisplay();
92 void updateChildren();
97 geos::geom::MultiPolygon *m_mp;
98 geos::geom::MultiPolygon *m_180mp;
102 void setupFootprint();
103 void drawImage(QPainter *painter,
const QStyleOptionGraphicsItem *option);
105 double getPixelValue(
int sample,
int line);
112 bool m_ignoreCubeDisplayChanged;
114 QGraphicsSimpleTextItem *m_label;
void setSelected(bool)
Change the selected state associated with this cube.
Definition: ImageDisplayProperties.cpp:82
@ ShowOutline
True if the cube should be outlined (bool)
Definition: ImageDisplayProperties.h:105
void SetMinimum(const double value)
Definition: Stretch.h:142
@ Zooming
Data ignored. Tells if the cube supports the zoomFit action.
Definition: ImageDisplayProperties.h:107
Universal Ground Map.
Definition: UniversalGroundMap.h:69
Definition: Directory.h:271
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Re-paints the item.
Definition: MosaicSceneItem.cpp:140
void SetLis(const double value)
Sets the mapping for LIS pixels.
Definition: Stretch.h:105
void read(Blob &blob, const std::vector< PvlKeyword > keywords=std::vector< PvlKeyword >()) const
This method will read data from the specified Blob object.
Definition: Cube.cpp:807
virtual double Sample() const
Returns the current sample number.
Definition: Camera.cpp:2690
@ Unknown
A type of error that cannot be classified as any of the other error types.
Definition: IException.h:118
void SetMaximum(const double value)
Definition: Stretch.h:145
Pixel value mapper.
Definition: Stretch.h:58
void cubeDisplayChanged()
Someone changed something in the cube display properties, re-read the whole thing.
Definition: MosaicSceneItem.cpp:423
QList< QAction * > supportedActions(DataType data)
Returns a list of supported actions for a WorkOrder.
Definition: Directory.h:345
QGraphicsSimpleTextItem * getLabel() const
Definition: MosaicSceneItem.h:60
void mosaicCubeClosed(Image *)
void append(Image *const &value)
Appends an image to the image list.
Definition: ImageList.cpp:153
Definition: DisplayProperties.h:34
void addSupport(int property)
Call this with every property you support, otherwise they will not communicate properly between widge...
Definition: DisplayProperties.cpp:108
@ Selected
The selection state of this cube (bool)
Definition: ImageDisplayProperties.h:97
void SetHrs(const double value)
Sets the mapping for HRS pixels.
Definition: Stretch.h:138
Project * project() const
Gets the Project for this directory.
Definition: Directory.cpp:1311
virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
The user right clicked on us (or otherwise requested a context menu).
Definition: MosaicSceneItem.cpp:556
bool contains(const QPointF &) const
Test if we contain the point.
Definition: MosaicSceneItem.cpp:494
void reproject()
Called anytime the user reprojects the cube.
Definition: MosaicSceneItem.cpp:189
Isis::Camera * Camera() const
Return the camera associated with the ground map (NULL implies none)
Definition: UniversalGroundMap.h:136
Property
This is a list of properties and actions that are possible.
Definition: ImageDisplayProperties.h:91
@ ShowLabel
True if the cube should show its display name (bool)
Definition: ImageDisplayProperties.h:103
MosaicSceneItem(Image *image, MosaicSceneWidget *parent)
MosaicSceneItem constructor.
Definition: MosaicSceneItem.cpp:47
Buffer for containing a three dimensional section of an image.
Definition: Brick.h:45
void SetLrs(const double value)
Sets the mapping for LRS pixels.
Definition: Stretch.h:116
void updateSelection(bool)
Update the selected state.
Definition: MosaicSceneItem.cpp:516
bool IsSpecial(const double d)
Returns if the input pixel is special.
Definition: SpecialPixel.h:197
void SetHis(const double value)
Sets the mapping for HIS pixels.
Definition: Stretch.h:127
The main project for ipce.
Definition: Project.h:289
@ ZOrdering
Data ignored. Tells if the cube supports the "move*" actions.
Definition: ImageDisplayProperties.h:109
Internalizes a list of images and allows for operations on the entire list.
Definition: ImageList.h:55
virtual double WorldY() const
This returns the world Y coordinate provided SetGround, SetCoordinate, SetUniversalGround,...
Definition: Projection.cpp:544
QList< QAction * > supportedActions(Project *project=NULL)
Gets a list of pre-connected actions that have to do with display.
Definition: ImageList.cpp:565
bool InCube()
This returns true if the current Sample() or Line() value is outside of the cube (meaning the point m...
Definition: Camera.cpp:2619
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
@ Color
The color of the cube, default randomized (QColor)
Definition: ImageDisplayProperties.h:95
Image * image()
Definition: MosaicSceneItem.h:59
Base class for Map TProjections.
Definition: TProjection.h:166
QColor color() const
Definition: MosaicSceneItem.cpp:413
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
void AddPair(const double input, const double output)
Adds a stretch pair to the list of pairs.
Definition: Stretch.cpp:48
QString displayName() const
Returns the display name.
Definition: DisplayProperties.cpp:88
virtual double WorldX() const
This returns the world X coordinate provided SetGround, SetCoordinate, SetUniversalGround,...
Definition: Projection.cpp:524
This represents a cube in a project-based GUI interface.
Definition: Image.h:107
Isis exception class.
Definition: IException.h:91
bool Has180Domain() const
This indicates if the longitude domain is -180 to 180 (as opposed to 0 to 360).
Definition: TProjection.cpp:632
const double Null
Value for an Isis Null pixel.
Definition: SpecialPixel.h:95
ImageDisplayProperties * displayProperties()
Get the display (GUI) properties (information) associated with this image.
Definition: Image.cpp:320
@ ShowDNs
True if the cube should show DN values if possible (bool)
Definition: ImageDisplayProperties.h:99
Isis::Projection * Projection() const
Return the projection associated with the ground map (NULL implies none)
Definition: UniversalGroundMap.h:131
void changed(const QList< QRectF > &)
void SetNull(const double value)
Sets the mapping for NULL pixels.
Definition: Stretch.h:94
virtual bool SetGround(const double lat, const double lon)
This method is used to set the latitude/longitude (assumed to be of the correct LatitudeType,...
Definition: TProjection.cpp:760
PixelType pixelType() const
Definition: Cube.cpp:1758
A single cube in the mosaic scene.
Definition: MosaicSceneItem.h:47
@ ShowFill
True if the cube should show a fill area if possible (bool)
Definition: ImageDisplayProperties.h:101
virtual bool sceneEvent(QEvent *event)
This filters out events that happen within our polygons.
Definition: MosaicSceneItem.cpp:451
bool SetUniversalGround(double lat, double lon)
Returns whether the lat/lon position was set successfully in the camera model or projection.
Definition: UniversalGroundMap.cpp:102
virtual double Line() const
Returns the current line number.
Definition: Camera.cpp:2710
This is free and unencumbered software released into the public domain.
Definition: Calculator.h:18
double YCoord() const
This returns the projection Y provided SetGround, SetCoordinate, SetUniversalGround,...
Definition: Projection.cpp:400
QVariant getValue(int property) const
Get a property's associated data.
Definition: DisplayProperties.cpp:147
double XCoord() const
This returns the projection X provided SetGround, SetCoordinate, SetUniversalGround,...
Definition: Projection.cpp:387
void scenePropertiesChanged()
Definition: MosaicSceneItem.h:66
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
@ User
A type of error that could only have occurred due to a mistake on the user's part (e....
Definition: IException.h:126
virtual bool SetCoordinate(const double x, const double y)=0
virtual QRectF boundingRect() const
Definition: MosaicSceneItem.cpp:113
This is the GUI communication mechanism for cubes.
Definition: ImageDisplayProperties.h:85
~MosaicSceneItem()
Mosaic Item destructor.
Definition: MosaicSceneItem.cpp:103