Isis 3.0 Object Programmers' Reference |
Home |
#include <Control.h>
Classes | |
class | XmlHandler |
Public Slots | |
void | updateFileName (Project *) |
Change the on-disk file name for this control to be where the control ought to be in the given project. | |
Public Member Functions | |
Control (QString cnetFileName, QObject *parent=0) | |
Create a Control from control net located on disk. | |
Control (ControlNet *controlNet, QString cnetFileName, QObject *parent=0) | |
Create a Control from a control network that has already been created and read from disk. | |
Control (FileName cnetFolder, XmlStackedHandlerReader *xmlReader, QObject *parent=0) | |
Construct this control from XML. | |
ControlNet * | controlNet () |
void | openControlNet () |
Get the ControlNet * associated with this display property. | |
void | closeControlNet () |
Cleans up the ControlNet *. | |
ControlDisplayProperties * | displayProperties () |
const ControlDisplayProperties * | displayProperties () const |
QString | fileName () const |
QString | id () const |
void | save (QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const |
void | copyToNewProjectRoot (const Project *project, FileName newProjectRoot) |
void | deleteFromDisk () |
Delete the control net from disk. | |
Private Member Functions | |
Control (const Control &other) | |
Control & | operator= (const Control &rhs) |
Private Attributes | |
ControlNet * | m_controlNet |
ControlDisplayProperties * | m_displayProperties |
QString | m_fileName |
QUuid * | m_id |
File name of the control net associated with this control. | |
2012-08-02 Kimberly Oyama - Added comments to some of the methods and member variables.
2012-09-11 Tracie Sucharski - Added new constructor that takes a ControlNet *.
|
explicit |
Create a Control from control net located on disk.
cNetFileName | The name of the control net on disk |
parent | The Qt-relationship parent |
Definition at line 25 of file Control.cpp.
References m_id, and openControlNet().
|
explicit |
Create a Control from a control network that has already been created and read from disk.
controlNet | The actual control network |
cnetFileName | The name of the control net on disk |
parent | The Qt-relationship parent |
Definition at line 48 of file Control.cpp.
References m_id.
Isis::Control::Control | ( | FileName | cnetFolder, |
XmlStackedHandlerReader * | xmlReader, | ||
QObject * | parent = 0 |
||
) |
Construct this control from XML.
TODO: Is this for reading saved project?
cnetFolder | Location of control xml - /work/.../projectRoot/cnets/controlNetwork1 |
xmlReader | An XML reader that's up to an <control> tag. |
parent | The Qt-relationship parent |
Definition at line 70 of file Control.cpp.
References m_id.
void Isis::Control::closeControlNet | ( | ) |
Cleans up the ControlNet *.
You want to call this once you're sure you are done with the ControlNet because the OS will limit how many of these we have open.
Definition at line 122 of file Control.cpp.
Referenced by updateFileName().
void Isis::Control::deleteFromDisk | ( | ) |
Delete the control net from disk.
The control net will no longer be accessible until you call updateFileName().
Definition at line 167 of file Control.cpp.
References _FILEINFO_, and Isis::IException::Io.
Referenced by Isis::ControlList::deleteFromDisk().
void Isis::Control::openControlNet | ( | ) |
Get the ControlNet * associated with this display property.
This will allocate the ControlNet * if one is not already present.
Definition at line 105 of file Control.cpp.
References _FILEINFO_, and Isis::IException::Programmer.
Referenced by Control().
|
slot |
Change the on-disk file name for this control to be where the control ought to be in the given project.
project | The project that this control is stored in |
Definition at line 187 of file Control.cpp.
References closeControlNet(), and Isis::Project::cnetRoot().
|
private |