|
Isis Developer Reference
|
Go to the documentation of this file.
8 #include <QSharedPointer>
18 class QXmlStreamWriter;
22 class XmlStackedHandlerReader;
79 iterator
erase(iterator pos);
80 iterator
erase(iterator begin, iterator end);
83 iterator
insert(iterator before,
Image *
const & value);
116 QString
name()
const;
117 QString
path()
const;
120 void save(QXmlStreamWriter &stream,
const Project *project,
FileName newProjectRoot)
const;
137 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
138 const QString &qName,
const QXmlAttributes &atts);
139 virtual bool endElement(
const QString &namespaceURI,
const QString &localName,
140 const QString &qName);
143 Q_DISABLE_COPY(XmlHandler);
157 QString m_imageDataRoot;
170 class CopyImageDataFunctor :
public std::unary_function<Image * const &, void *> {
173 CopyImageDataFunctor(
const CopyImageDataFunctor &other);
174 ~CopyImageDataFunctor();
176 void *operator()(
Image *
const &imageToCopy);
178 CopyImageDataFunctor &
operator=(
const CopyImageDataFunctor &rhs);
218 void applyColors(
QStringList colorValues,
int column = 0);
222 void applyShowOutline(
QStringList showOutlineValues);
223 bool askAlpha(
int *alphaResult)
const;
224 bool askNewColor(QColor *colorResult)
const;
230 void askAndUpdateAlpha();
231 void askAndUpdateColor();
232 void showRandomColor();
void removeFirst()
Removes the image at the front of the image list.
Definition: ImageList.cpp:332
void insert(int i, Image *const &value)
Inserts an image into the image list at an index.
Definition: ImageList.cpp:229
QDebug operator<<(QDebug dbg, const Isis::Angle &angleToPrint)
Display an Angle for a debugging statement.
Definition: Angle.cpp:368
@ ToggleShowLabel
Show or hide each image's display name.
Definition: ImageListActionWorkOrder.h:73
ImageList & operator+=(const QList< Image * > &other)
Appends a list of images to the end of the image list.
Definition: ImageList.cpp:439
@ ShowOutline
True if the cube should be outlined (bool)
Definition: ImageDisplayProperties.h:105
ImageList(QString name, QString path, QObject *parent=NULL)
Creates an image list from an image list name and path (does not read Images).
Definition: ImageList.cpp:54
QString path() const
Get the path to the images in the image list (relative to project root).
Definition: ImageList.cpp:735
@ Io
A type of error that occurred when performing an actual I/O operation.
Definition: IException.h:155
@ Zooming
Data ignored. Tells if the cube supports the zoomFit action.
Definition: ImageDisplayProperties.h:107
@ MoveUpOne
Move the image forward.
Definition: ImageListActionWorkOrder.h:78
@ MoveToTop
Move the image to the front.
Definition: ImageListActionWorkOrder.h:77
ImageList & operator=(const QList< Image * > &rhs)
Assigns another list of images to the image list.
Definition: ImageList.cpp:514
void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
Convert this image list into XML format for saving/restoring capabilities.
Definition: ImageList.cpp:785
static QColor randomColor()
Creates and returns a random color for the intial color of the footprint polygon.
Definition: ImageDisplayProperties.cpp:54
@ ToggleShowFilled
Show or hide each image's fill area.
Definition: ImageListActionWorkOrder.h:74
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
~ImageList()
Destructor.
Definition: ImageList.cpp:126
static QString toRGBAString(QColor)
Convert a QColor to its QString.
Definition: Color.cpp:38
bool allSupport(ImageDisplayProperties::Property prop)
Check if all images in the image list support a display property.
Definition: ImageList.cpp:684
void append(Image *const &value)
Appends an image to the image list.
Definition: ImageList.cpp:153
virtual bool startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)
Definition: XmlStackedHandler.cpp:44
void countChanged(int newCount)
@ MoveDownOne
Move the image backward.
Definition: ImageListActionWorkOrder.h:80
void deleteFromDisk(Project *project)
Delete all of the contained Images from disk.
Definition: ImageList.cpp:747
Property
This is a list of properties and actions that are possible.
Definition: ImageDisplayProperties.h:91
static QColor fromRGBAString(QString)
Converts a QString to its QColor.
Definition: Color.cpp:21
@ ShowLabel
True if the cube should show its display name (bool)
Definition: ImageDisplayProperties.h:103
void prepend(Image *const &value)
Inserts an image at the beginning of the image list.
Definition: ImageList.cpp:260
QString imageDataRoot() const
Accessor for the root directory of the image data.
Definition: Project.cpp:2077
Serial Number list generator.
Definition: SerialNumberList.h:64
Manage a stack of content handlers for reading XML files.
Definition: XmlStackedHandlerReader.h:30
@ ChangeTransparency
Change the alpha values of the image list.
Definition: ImageListActionWorkOrder.h:70
Work orders that can be performed on an image list that modifies internal state.
Definition: ImageListActionWorkOrder.h:61
SerialNumberList * serialNumberList()
Creates a SerialNumberList from the image list.
Definition: ImageList.cpp:135
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
friend class ImageListActionWorkOrder
Definition: ImageList.h:59
void push_back(Image *const &value)
Appends an image to the end of the image list.
Definition: ImageList.cpp:274
void setName(QString newName)
Set the human-readable name of this image list.
Definition: ImageList.cpp:703
void push_front(Image *const &value)
Prepends an image to the beginning of the image list.
Definition: ImageList.cpp:288
bool supports(int property)
Support may come later, please make sure you are connected to the supportAdded signal.
Definition: DisplayProperties.cpp:122
QList< QAction * > supportedActions(Project *project=NULL)
Gets a list of pre-connected actions that have to do with display.
Definition: ImageList.cpp:565
void deleteFromDisk()
Delete the image data from disk.
Definition: Image.cpp:586
const int ReadWrite
Definition: Process.h:24
@ RandomizeColor
Set each image in the list to a random color.
Definition: ImageListActionWorkOrder.h:72
#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
static QString qualifyString(QString unqualifiedString, ImageList *)
Determine whether a toggle action should show or hide.
Definition: ImageListActionWorkOrder.cpp:361
@ Color
The color of the cube, default randomized (QColor)
Definition: ImageDisplayProperties.h:95
int toInt(const QString &string)
Global function to convert from a string to an integer.
Definition: IString.cpp:93
void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
Write the Image properties out to an XML file.
Definition: Image.cpp:626
void clear()
Clears the image list.
Definition: ImageList.cpp:177
void removeAt(int i)
Removes the image at an index.
Definition: ImageList.cpp:321
void add(const QString &filename, bool def2filename=false)
Adds a new filename / serial number pair to the SerialNumberList.
Definition: SerialNumberList.cpp:121
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 name() const
Get the human-readable name of this image list.
Definition: ImageList.cpp:724
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
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
Image * takeAt(int i)
Removes the image at an index and returns it.
Definition: ImageList.cpp:394
@ ToggleShowCubeData
Show or hide each image's DNs.
Definition: ImageListActionWorkOrder.h:75
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
@ ChangeColor
Change the color values of the image list.
Definition: ImageListActionWorkOrder.h:71
static QString toString(Action)
Convert an action to a string.
Definition: ImageListActionWorkOrder.cpp:417
@ ZoomFit
Zoom in on the image so that it fits the screen.
Definition: ImageListActionWorkOrder.h:81
bool removeOne(Image *const &value)
Removes the first occurance of an image.
Definition: ImageList.cpp:358
void setPath(QString newPath)
Set the relative path (from the project root) to this image list's folder.
Definition: ImageList.cpp:714
@ ToggleShowOutline
Show or hide each image's outline.
Definition: ImageListActionWorkOrder.h:76
@ MoveToBottom
Move the image to the back.
Definition: ImageListActionWorkOrder.h:79
@ ShowFill
True if the cube should show a fill area if possible (bool)
Definition: ImageDisplayProperties.h:101
ImageList & operator<<(const QList< Image * > &other)
Appends a list of images to the end of the image list.
Definition: ImageList.cpp:477
XML Handler that parses XMLs in a stack-oriented way.
Definition: XmlStackedHandler.h:118
Image * takeFirst()
Removes and returns the first image.
Definition: ImageList.cpp:408
Image * takeLast()
Removes and returns the last image.
Definition: ImageList.cpp:422
QString original() const
Returns the full file name including the file path.
Definition: FileName.cpp:212
iterator erase(iterator pos)
Erases a single image from the image list.
Definition: ImageList.cpp:195
void removeLast()
Removes the image at the end of the image list.
Definition: ImageList.cpp:343
Q_DECLARE_METATYPE(Isis::ImageList *)
static QString imageDataRoot(QString projectRoot)
Appends the root directory name 'images' to the project .
Definition: Project.cpp:2067
int removeAll(Image *const &value)
Removes all occurances of an image.
Definition: ImageList.cpp:303
Action
Type of action to be performed by the work order.
Definition: ImageListActionWorkOrder.h:68
void swap(QList< Image * > &other)
Swaps the image list with another list of images.
Definition: ImageList.cpp:376
QString path() const
Returns the path of the file name.
Definition: FileName.cpp:103
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16