|
Isis Developer Reference
|
Go to the documentation of this file. 1 #ifndef MosaicSceneWidget_H
2 #define MosaicSceneWidget_H
9 template <
typename A>
class QList;
11 class QGraphicsPolygonItem;
14 class QGraphicsSceneContextMenuEvent;
26 class MosaicGraphicsView;
27 class MosaicSceneItem;
158 bool showTools,
bool internalizeToolBarsAndProgress,
163 return m_graphicsView;
167 return m_graphicsScene;
175 return *m_mosaicSceneItems;
183 using QWidget::contextMenuEvent;
189 return m_cubesSelectable;
196 return m_userToolControl;
218 double moveDownOne(
Image *);
222 double moveToBottom(
Image *);
226 double moveUpOne(
Image *);
230 double moveToTop(
Image *);
234 double moveZ(
Image *image,
double newZ,
bool newZValueMightExist =
true);
239 template <
typename DataType>
300 void onSelectionChanged();
301 void onQueuedSelectionChanged();
303 void configProjectionParameters();
304 void quickConfigProjectionParameters();
305 void sendVisibleRectChanged();
313 void reprojectItems();
316 void recalcSceneRect();
338 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
339 const QString &qName,
const QXmlAttributes &atts);
340 virtual bool characters(
const QString &ch);
341 virtual bool endElement(
const QString &namespaceURI,
const QString &localName,
342 const QString &qName);
345 Q_DISABLE_COPY(XmlHandler);
347 QString m_characterData;
350 int m_scrollBarXValue;
351 int m_scrollBarYValue;
360 bool m_cubesSelectable;
361 bool m_customRubberBandEnabled;
362 QRubberBand *m_customRubberBand;
363 QPoint *m_rubberBandOrigin;
371 QToolButton *m_mapButton;
385 bool m_blockingSelectionChanged;
386 bool m_userToolControl;
387 bool m_ownProjection;
388 bool m_queuedSelectionChanged;
389 bool m_shouldRequeueSelectionChanged;
391 double m_currentMinimumFootprintZ;
392 double m_currentMaximumFootprintZ;
static PvlGroup radiiGroup(QString target)
Creates a Pvl Group with keywords TargetName, EquitorialRadius, and PolarRadius.
Definition: Target.cpp:403
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
Definition: PvlObject.h:129
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
Definition: Directory.h:271
A single keyword-value pair.
Definition: PvlKeyword.h:82
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
Definition: ProgressBar.h:15
void setName(const QString &name)
Set the name of the container.
Definition: PvlContainer.h:56
File name manipulation and expansion.
Definition: FileName.h:100
virtual void pushContentHandler(XmlStackedHandler *newHandler)
Push a contentHandler and maybe continue parsing...
Definition: XmlStackedHandlerReader.cpp:55
QList< QAction * > supportedActions(DataType data)
Returns a list of supported actions for a WorkOrder.
Definition: Directory.h:345
void append(Image *const &value)
Appends an image to the image list.
Definition: ImageList.cpp:153
Definition: DisplayProperties.h:34
bool hasKeyword(const QString &name) const
Check to see if a keyword exists.
Definition: PvlContainer.cpp:159
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
QString fileName() const
Get the file name of the cube that this image represents.
Definition: Image.cpp:340
Project * project() const
Gets the Project for this directory.
Definition: Directory.cpp:1311
void reproject()
Called anytime the user reprojects the cube.
Definition: MosaicSceneItem.cpp:189
void enableResizeZooming(bool enabled)
Definition: MosaicGraphicsView.h:26
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
Manage a stack of content handlers for reading XML files.
Definition: XmlStackedHandlerReader.h:30
The main project for ipce.
Definition: Project.h:289
Internalizes a list of images and allows for operations on the entire list.
Definition: ImageList.h:55
@ Traverse
Search child objects.
Definition: PvlObject.h:158
A single control point.
Definition: ControlPoint.h:354
QList< QAction * > supportedActions(Project *project=NULL)
Gets a list of pre-connected actions that have to do with display.
Definition: ImageList.cpp:565
const int ReadWrite
Definition: Process.h:24
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
virtual bool XYRange(double &minX, double &maxX, double &minY, double &maxY)=0
virtual void setData(Context)
Sets the context data for this WorkOrder.
Definition: WorkOrder.cpp:248
int toInt(const QString &string)
Global function to convert from a string to an integer.
Definition: IString.cpp:93
Image * image()
Definition: MosaicSceneItem.h:59
virtual PvlGroup Mapping()=0
Move images below all other images in a mosaic scene This workorder is synchronous and undoable.
Definition: MoveToBottomSceneWorkOrder.h:20
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
QString displayName() const
Returns the display name.
Definition: DisplayProperties.cpp:88
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
This represents a cube in a project-based GUI interface.
Definition: Image.h:107
Isis exception class.
Definition: IException.h:91
static Isis::Projection * Create(Isis::Pvl &label, bool allowDefaults=false)
This method returns a pointer to a Projection object.
Definition: ProjectionFactory.cpp:51
#define ASSERT(x)
Definition: IsisDebug.h:134
bool hasObject(const QString &name) const
Returns a boolean value based on whether the object exists in the current PvlObject or not.
Definition: PvlObject.h:323
static Isis::Projection * CreateFromCube(Isis::Cube &cube)
This method is a helper method.
Definition: ProjectionFactory.cpp:1069
ImageDisplayProperties * displayProperties()
Get the display (GUI) properties (information) associated with this image.
Definition: Image.cpp:320
Camera * camera()
Return a camera associated with the cube.
Definition: Cube.cpp:1451
Move images, one by one, on top of the immediately-above intersecting image in a scene This workorder...
Definition: MoveUpOneSceneWorkOrder.h:20
double toDouble(const QString &string)
Global function to convert from a string to a double.
Definition: IString.cpp:149
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
A single cube in the mosaic scene.
Definition: MosaicSceneItem.h:47
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
A graphics view that resizes in a more friendly way.
Definition: MosaicGraphicsView.h:19
XML Handler that parses XMLs in a stack-oriented way.
Definition: XmlStackedHandler.h:118
This is free and unencumbered software released into the public domain.
Definition: CubeIoHandler.h:22
int keywords() const
Returns the number of keywords contained in the PvlContainer.
Definition: PvlContainer.h:86
PvlKeyword & findKeyword(const QString &name)
Find a keyword with a specified name.
Definition: PvlContainer.cpp:62
void setText(QString text)
Set custom text for this progress bar.
Definition: ProgressBar.cpp:32
Base class for Map Projections.
Definition: Projection.h:155
This is the configuration dialog for the MosaicSceneWidget's projection parameters (map file).
Definition: ProjectionConfigDialog.h:24
Move images on top of all other images in a mosaic scene This workorder is synchronous and undoable.
Definition: MoveToTopSceneWorkOrder.h:20
void scenePropertiesChanged()
Definition: MosaicSceneItem.h:66
A graphics scene with improved user-interaction for use with the MosaicSceneWidget.
Definition: MosaicGraphicsScene.h:24
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
Move images, one by one, below the immediately-below intersecting image in a scene This workorder is ...
Definition: MoveDownOneSceneWorkOrder.h:20
virtual QRectF boundingRect() const
Definition: MosaicSceneItem.cpp:113