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);
100 ImageList &operator<<(const QList<Image *> &other);
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();
Image * takeLast()
Removes and returns the last image.
Definition: ImageList.cpp:422
void push_back(Image *const &value)
Appends an image to the end of the image list.
Definition: ImageList.cpp:274
QString name() const
Get the human-readable name of this image list.
Definition: ImageList.cpp:724
Internalizes a list of images and allows for operations on the entire list.
Definition: ImageList.h:55
The main project for ipce.
Definition: Project.h:289
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
int removeAll(Image *const &value)
Removes all occurances of an image.
Definition: ImageList.cpp:303
File name manipulation and expansion.
Definition: FileName.h:116
ImageList & operator+=(const QList< Image *> &other)
Appends a list of images to the end of the image list.
Definition: ImageList.cpp:439
Work orders that can be performed on an image list that modifies internal state.
Definition: ImageListActionWorkOrder.h:61
void deleteFromDisk(Project *project)
Delete all of the contained Images from disk.
Definition: ImageList.cpp:747
Action
Type of action to be performed by the work order.
Definition: ImageListActionWorkOrder.h:68
SerialNumberList * serialNumberList()
Creates a SerialNumberList from the image list.
Definition: ImageList.cpp:135
void swap(QList< Image *> &other)
Swaps the image list with another list of images.
Definition: ImageList.cpp:376
bool removeOne(Image *const &value)
Removes the first occurance of an image.
Definition: ImageList.cpp:358
void removeAt(int i)
Removes the image at an index.
Definition: ImageList.cpp:321
~ImageList()
Destructor.
Definition: ImageList.cpp:126
void prepend(Image *const &value)
Inserts an image at the beginning of the image list.
Definition: ImageList.cpp:260
static QString qualifyString(QString unqualifiedString, ImageList *)
Determine whether a toggle action should show or hide.
Definition: ImageListActionWorkOrder.cpp:361
QList< QAction * > supportedActions(Project *project=NULL)
Gets a list of pre-connected actions that have to do with display.
Definition: ImageList.cpp:565
ImageList & operator=(const QList< Image *> &rhs)
Assigns another list of images to the image list.
Definition: ImageList.cpp:514
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
void push_front(Image *const &value)
Prepends an image to the beginning of the image list.
Definition: ImageList.cpp:288
XML Handler that parses XMLs in a stack-oriented way.
Definition: XmlStackedHandler.h:112
void countChanged(int newCount)
void clear()
Clears the image list.
Definition: ImageList.cpp:177
This represents a cube in a project-based GUI interface.
Definition: Image.h:107
void removeFirst()
Removes the image at the front of the image list.
Definition: ImageList.cpp:332
void setPath(QString newPath)
Set the relative path (from the project root) to this image list's folder.
Definition: ImageList.cpp:714
Image * takeAt(int i)
Removes the image at an index and returns it.
Definition: ImageList.cpp:394
void append(Image *const &value)
Appends an image to the image list.
Definition: ImageList.cpp:153
Property
This is a list of properties and actions that are possible.
Definition: ImageDisplayProperties.h:91
void insert(int i, Image *const &value)
Inserts an image into the image list at an index.
Definition: ImageList.cpp:229
Image * takeFirst()
Removes and returns the first image.
Definition: ImageList.cpp:408
QString path() const
Get the path to the images in the image list (relative to project root).
Definition: ImageList.cpp:735
iterator erase(iterator pos)
Erases a single image from the image list.
Definition: ImageList.cpp:195
Definition: BoxcarCachingAlgorithm.h:29
friend class ImageListActionWorkOrder
Definition: ImageList.h:59
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
static QString toString(Action)
Convert an action to a string.
Definition: ImageListActionWorkOrder.cpp:417
bool allSupport(ImageDisplayProperties::Property prop)
Check if all images in the image list support a display property.
Definition: ImageList.cpp:684
void removeLast()
Removes the image at the end of the image list.
Definition: ImageList.cpp:343
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
Serial Number list generator.
Definition: SerialNumberList.h:80
Q_DECLARE_METATYPE(Isis::ImageList *)
ImageList & operator<<(const QList< Image *> &other)
Appends a list of images to the end of the image list.
Definition: ImageList.cpp:477
void setName(QString newName)
Set the human-readable name of this image list.
Definition: ImageList.cpp:703
Manage a stack of content handlers for reading XML files.
Definition: XmlStackedHandlerReader.h:25