Loading [MathJax]/jax/output/NativeMML/config.js
 |
Isis Developer Reference
|
Go to the documentation of this file. 1 #ifndef ProjectItemModel_h
2 #define ProjectItemModel_h
12 #include <QStandardItemModel>
17 class QItemSelectionModel;
27 class BundleSolutionInfo;
147 Qt::DropAction action,
149 const QModelIndex& parent)
const;
168 bool setData(
const QModelIndex &index,
const QVariant &value,
int role);
169 Qt::ItemFlags
flags(
const QModelIndex &index)
const;
195 void onSelectionChanged(
const QItemSelection &selected,
const QItemSelection &deselected);
198 void onNameChanged(QString newName);
202 void onControlAdded(
Control *control);
207 void onRowsInserted(
const QModelIndex &parent,
int start,
int end);
208 void onRowsRemoved(
const QModelIndex &parent,
int start,
int end);
212 QItemSelectionModel *m_selectionModel;
214 bool rejectName(
QStringList &reserved, QString target);
Provides access to data stored in a Project through Qt's model-view framework.
Definition: ProjectItemModel.h:132
BundleSolutionInfo * bundleSolutionInfo() const
Returns the BundleSolutionInfo stored in the data of the item.
Definition: ProjectItem.cpp:466
void setSelected(bool)
Change the selected state associated with this cube.
Definition: ImageDisplayProperties.cpp:82
QString savedPointsFilename()
Returns filename of output bundle points csv file.
Definition: BundleSolutionInfo.cpp:146
void setItem(int row, ProjectItem *item)
Sets the item at the top-level row.
Definition: ProjectItemModel.cpp:412
QString savedResidualsFilename()
Returns filename of output bundle residuals csv file.
Definition: BundleSolutionInfo.cpp:156
void setName(QString newName)
Set the human-readable name of this control list.
Definition: ControlList.cpp:518
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
void onSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
Slot to connect to the selectionChanged() signal from a selection model.
Definition: ProjectItemModel.cpp:775
void projectNameEdited(QString)
This signal is emitted when the project name is edited.
Image * image() const
Returns the Image stored in the data of the item.
Definition: ProjectItem.cpp:476
void appendRow(ProjectItem *item)
Appends a top-level item to the model.
Definition: ProjectItemModel.cpp:354
QList< ProjectItem * > selectedBOSSImages()
ProjectItemModel::selectedBOSSImages.
Definition: ProjectItemModel.cpp:177
File name manipulation and expansion.
Definition: FileName.h:100
Maintains a list of Controls so that control nets can easily be copied from one Project to another,...
Definition: ControlList.h:44
QString name() const
Returns the name of the bundle.
Definition: BundleSolutionInfo.cpp:387
void setName(QString newName)
Set the human-readable name of this shape list.
Definition: ShapeList.cpp:534
virtual void removeItems(QList< ProjectItem * > items)
Removes a list of items and their children from the model.
Definition: ProjectItemModel.cpp:342
QItemSelectionModel * selectionModel()
Returns the internal selection model.
Definition: ProjectItemModel.cpp:93
ProjectItemModel(QObject *parent=0)
Constructs an empty model.
Definition: ProjectItemModel.cpp:44
Definition: TemplateList.h:35
void clean()
Used to clean the ProjectItemModel of everything but the headers.
Definition: ProjectItemModel.cpp:952
ProjectItem * child(int row) const
Returns the child item at a given row.
Definition: ProjectItem.cpp:1179
void setName(QString name)
Sets the name of the bundle.
Definition: BundleSolutionInfo.cpp:376
bool isControlList() const
Returns true if a ControlList is stored in the data of the item.
Definition: ProjectItem.cpp:702
QString savedBundleOutputFilename()
Returns bundleout text filename.
Definition: BundleSolutionInfo.cpp:126
This represents an ISIS control net in a project-based GUI interface.
Definition: Control.h:66
QString savedImagesFilename()
Returns filename of output bundle images csv file.
Definition: BundleSolutionInfo.cpp:136
ProjectItem * item(int row)
Returns the top-level item at the given row.
Definition: ProjectItemModel.cpp:389
ProjectItem * itemFromIndex(const QModelIndex &index)
Returns the ProjectItem corresponding to a given QModelIndex.
Definition: ProjectItemModel.cpp:401
void itemAdded(ProjectItem *)
This signal is emitted when a ProjectItem is added to the model.
The main project for ipce.
Definition: Project.h:289
~ProjectItemModel()
Destructs the model.
Definition: ProjectItemModel.cpp:62
Internalizes a list of images and allows for operations on the entire list.
Definition: ImageList.h:55
void setName(QString newName)
Set the human-readable name of this image list.
Definition: ImageList.cpp:703
bool isImageList() const
Returns true if an ImageList is stored in the data of the item.
Definition: ProjectItem.cpp:657
bool isShapeList() const
Returns true if an ShapeList is stored in the data of the item.
Definition: ProjectItem.cpp:679
GuiCameraQsp guiCamera() const
Returns the GuiCameraQsp stored in the data of the item.
Definition: ProjectItem.cpp:576
bool isImage() const
Returns true if an Image is stored in the data of the item.
Definition: ProjectItem.cpp:646
QList< ProjectItem * > selectedItems()
Returns a list of the selected items of the internal selection model.
Definition: ProjectItemModel.cpp:158
void appendRow(ProjectItem *item)
Appends an item to the children of this item.
Definition: ProjectItem.cpp:1166
ShapeList * shapeList() const
Returns the ShapeList stored in the data of the item.
Definition: ProjectItem.cpp:506
void cleanProject(bool)
This signal is emitted whrn a ProjectItem's name is changed.
Container class for BundleAdjustment results.
Definition: BundleSolutionInfo.h:159
QString name() const
Get the human-readable name of this image list.
Definition: ImageList.cpp:724
ProjectItem * addProject(Project *project)
Adds a Project to the model.
Definition: ProjectItemModel.cpp:107
Internalizes a list of shapes and allows for operations on the entire list.
Definition: ShapeList.h:33
List for holding TargetBodies.
Definition: TargetBodyList.h:33
ProjectItem * findItemData(const QVariant &data, int role=Qt::UserRole+1)
Returns the first item found that contains the given data in the given role or a null pointer if no i...
Definition: ProjectItemModel.cpp:290
virtual bool canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const
You cannot drop mime data into the ProjectItemModel.
Definition: ProjectItemModel.cpp:80
ControlList * controlList() const
Returns the ControlList stored in the data of the item.
Definition: ProjectItem.cpp:546
bool isProject() const
Returns true if a Project is stored in the data of the item.
Definition: ProjectItem.cpp:724
void itemRemoved(ProjectItem *)
This signal is emitted when a ProjectItem is removed to the model.
ImageDisplayProperties * displayProperties()
Get the display (GUI) properties (information) associated with this image.
Definition: Image.cpp:320
void insertRow(int row, ProjectItem *item)
Inserts a top-level item at the given row.
Definition: ProjectItemModel.cpp:377
QString name() const
Get the human-readable name of this target body list.
Definition: TargetBodyList.cpp:671
QModelIndex indexFromItem(const ProjectItem *item)
Returns the QModelIndex corresponding to a given ProjectItem.
Definition: ProjectItemModel.cpp:366
QString name() const
Get the human-readable name of this shape list.
Definition: ShapeList.cpp:555
QString type() const
Get the type of template in this TemplateList.
Definition: TemplateList.cpp:91
Project * project() const
Returns the Project stored in the data of the item.
Definition: ProjectItem.cpp:566
ProjectItem * takeItem(int row)
Removes the top-level row and returns the removed item.
Definition: ProjectItemModel.cpp:424
ProjectItem * findItemData(const QVariant &value, int role=Qt::UserRole+1)
Finds and returns the first item in the model that contains the data in the role.
Definition: ProjectItem.cpp:1145
QSharedPointer< FileItem > FileItemQsp
A FileItem smart pointer.
Definition: FileItem.h:36
ProjectItem * parent() const
Returns the parent item of this item.
Definition: ProjectItem.cpp:1211
ImageList * imageList() const
Returns the ImageList stored in the data of the item.
Definition: ProjectItem.cpp:486
QString name() const
Get the human-readable name of this control list.
Definition: ControlList.cpp:539
QString name() const
Get the human-readable name of this gui cameray list.
Definition: GuiCameraList.cpp:693
ProjectItem * currentItem()
Returns the current item of the internal selection model.
Definition: ProjectItemModel.cpp:139
List of GuiCameras saved as QSharedPointers.
Definition: GuiCameraList.h:35
A container for a filename to be represented as a ProjectItem on the project tree.
Definition: FileItem.h:28
void setClean(bool value)
Function to change the clean state of the project.
Definition: Project.cpp:1595
QString id() const
Access the unique ID associated with this Control.
Definition: Control.cpp:282
virtual void removeItem(ProjectItem *item)
Removes an item and its children from the model.
Definition: ProjectItemModel.cpp:315
bool isBundleSolutionInfo() const
Returns true if a BundleSolutionInfo is stored in the data of the item.
Definition: ProjectItem.cpp:635
bool setData(const QModelIndex &index, const QVariant &value, int role)
This virtual method was added to handle changing the project name by double-clicking the project name...
Definition: ProjectItemModel.cpp:854
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Qt::ItemFlags flags(const QModelIndex &index) const
This virtual method was added to handle changing the project name by double-clicking the project name...
Definition: ProjectItemModel.cpp:914
TargetBodyQsp targetBody() const
Returns the TargetBodyQsp stored in the data of the item.
Definition: ProjectItem.cpp:587
Represents an item of a ProjectItemModel in Qt's model-view framework.
Definition: ProjectItem.h:134
bool isTemplate() const
Definition: ProjectItem.cpp:602