|
Isis 3 Programmer Reference
|
8 #include <QSharedPointer>
12 #include "ImageListActionWorkOrder.h"
13 #include "SerialNumberList.h"
14 #include "WorkOrder.h"
15 #include "XmlStackedHandler.h"
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;
123 void countChanged(
int newCount);
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);
223 bool askAlpha(
int *alphaResult)
const;
void removeFirst()
Removes the image at the front of the image list.
void insert(int i, Image *const &value)
Inserts an image into the image list at an index.
ImageList & operator+=(const QList< Image * > &other)
Appends a list of images to the end of the image list.
ImageList(QString name, QString path, QObject *parent=NULL)
Creates an image list from an image list name and path (does not read Images).
QString path() const
Get the path to the images in the image list (relative to project root).
Project * m_project
This stores a pointer to the project that the images in the image list will be a part of.
This functor is used for copying the images between two projects quickly.
ImageList & operator=(const QList< Image * > &rhs)
Assigns another list of images to the image list.
This is free and unencumbered software released into the public domain.
void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
Convert this image list into XML format for saving/restoring capabilities.
QString m_name
This stores the image list's name.
QStringList saveAndApplyAlpha(int newAlpha)
Sets the alpha value of every image in the image list to a specificed value.
QStringList saveAndApplyColor(QColor newColor)
Sets the color values of every image to a specificed set of values.
File name manipulation and expansion.
CopyImageDataFunctor & operator=(const CopyImageDataFunctor &rhs)
Assignment operator for CopyImageDataFunctor.
void applyShowOutline(QStringList showOutlineValues)
Sets the visibility of the outlines of the images in the image list based on a list of values.
virtual bool endElement(const QString &namespaceURI, const QString &localName, const QString &qName)
Handle an XML end element.
void askAndUpdateAlpha()
Prompt the user for a new alpha value.
bool allSupport(ImageDisplayProperties::Property prop)
Check if all images in the image list support a display property.
bool askNewColor(QColor *colorResult) const
Prompts the user for color values.
void append(Image *const &value)
Appends an image to the image list.
QString m_imageDataRoot
This is a relative path to the image data.
void applyShowFill(QStringList showFillValues)
Sets the visibility of the fill areas of the images in the image list based on a list of values.
QStringList saveAndToggleShowOutline()
Changes the visibility of the outline of the first image in the image list and synchronizes the visib...
ImageList * m_imageList
This stores a pointer to the image list that will be read into.
void deleteFromDisk(Project *project)
Delete all of the contained Images from disk.
Property
This is a list of properties and actions that are possible.
virtual bool startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)
Handle an XML start element.
void prepend(Image *const &value)
Inserts an image at the beginning of the image list.
Serial Number list generator.
Manage a stack of content handlers for reading XML files.
bool askAlpha(int *alphaResult) const
Prompts the user for an alpha value.
Work orders that can be performed on an image list that modifies internal state.
SerialNumberList * serialNumberList()
Creates a SerialNumberList from the image list.
The main project for ipce.
Internalizes a list of images and allows for operations on the entire list.
void push_back(Image *const &value)
Appends an image to the end of the image list.
QAction * createWorkOrder(Project *project, ImageListActionWorkOrder::Action action)
Creates an ImageListActionWorkOrder and sets the image list as the data for the work order.
~CopyImageDataFunctor()
Destructor for CopyImageDataFunctor.
void setName(QString newName)
Set the human-readable name of this image list.
void push_front(Image *const &value)
Prepends an image to the beginning of the image list.
QList< QAction * > supportedActions(Project *project=NULL)
Gets a list of pre-connected actions that have to do with display.
QStringList saveAndApplyRandomColor()
Sets the color values of every image to a random color.
static QString qualifyString(QString unqualifiedString, ImageList *)
Determine whether a toggle action should show or hide.
void clear()
Clears the image list.
void removeAt(int i)
Removes the image at an index.
void applyShowDNs(QStringList showDNsValues)
Sets the visibility of the DNs of the images in the image list based on a list of values.
QString name() const
Get the human-readable name of this image list.
This represents a cube in a project-based GUI interface.
FileName m_newProjectRoot
This stores the path to the root of the project that is going to be copied to.
Image * takeAt(int i)
Removes the image at an index and returns it.
static QString toString(Action)
Convert an action to a string.
const Project * m_project
This stores the name of the project that is going to be copied to.
QStringList saveAndToggleShowFill()
Changes the visibility of the fill area of the first image in the image list and synchronizes the vis...
void * operator()(Image *const &imageToCopy)
Copies the cub/ecub files for an image into m_project.
bool removeOne(Image *const &value)
Removes the first occurance of an image.
void setPath(QString newPath)
Set the relative path (from the project root) to this image list's folder.
ImageList & operator<<(const QList< Image * > &other)
Appends a list of images to the end of the image list.
XML Handler that parses XMLs in a stack-oriented way.
Image * takeFirst()
Removes and returns the first image.
This class is used to read an images.xml file into an image list.
Image * takeLast()
Removes and returns the last image.
CopyImageDataFunctor(const Project *project, FileName newProjectRoot)
Constructor for CopyImageDataFunctor.
QStringList saveAndToggleShowDNs()
Changes the visibility of the DNs of the first image in the image list and synchronizes the visibilit...
void applyColors(QStringList colorValues, int column=0)
Sets the colors values of the images based on a list of values.
XmlHandler(ImageList *imageList, Project *project, QString dataRoot="")
Create an XML Handler (reader) that can populate the Image list class data.
void applyShowLabel(QStringList showLabelValues)
Sets the visibility of the display names of the images in the image list based on a list of values.
iterator erase(iterator pos)
Erases a single image from the image list.
void removeLast()
Removes the image at the end of the image list.
int removeAll(Image *const &value)
Removes all occurances of an image.
QString m_path
This stores the directory name that contains the images in this image list.
void showRandomColor()
This applies a new semi-random color to every image's display property for every image in this image ...
Action
Type of action to be performed by the work order.
void swap(QList< Image * > &other)
Swaps the image list with another list of images.
void applyAlphas(QStringList alphaValues)
Sets the alpha values of the images based on a list of values.
This is free and unencumbered software released into the public domain.
Q_DECLARE_METATYPE(Isis::PlotWindow *)
We have plot windows as QVariant data types, so here it's enabled.
QStringList saveAndToggleShowLabel()
Changes the visibility of the display name of the first image in the image list and synchronizes the ...
void askAndUpdateColor()
Prompt the user for a new color.