Isis Developer Reference
|
#include <DisplayProperties.h>
Signals | |
void | propertyChanged (DisplayProperties *) |
void | supportAdded (int) |
Public Member Functions | |
DisplayProperties (QString displayName, QObject *parent=NULL) | |
DisplayProperties constructor. More... | |
DisplayProperties (XmlStackedHandlerReader *xmlReader, QObject *parent=NULL) | |
virtual | ~DisplayProperties () |
destructor More... | |
void | fromPvl (const PvlObject &pvl) |
void | save (QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const |
Output format: More... | |
PvlObject | toPvl () const |
Convert to Pvl for project files. More... | |
void | addSupport (int property) |
Call this with every property you support, otherwise they will not communicate properly between widgets. More... | |
bool | supports (int property) |
Support may come later, please make sure you are connected to the supportAdded signal. More... | |
QVariant | getValue (int property) const |
Get a property's associated data. More... | |
void | setDisplayName (QString displayName) |
Sets display name. More... | |
QString | displayName () const |
Returns the display name. More... | |
Static Public Member Functions | |
static QColor | randomColor () |
Protected Member Functions | |
void | setValue (int prop, QVariant value) |
This is the generic mutator for properties. More... | |
Isis::DisplayProperties::DisplayProperties | ( | QString | displayName, |
QObject * | parent = NULL |
||
) |
DisplayProperties constructor.
This sets default values and constructs the Cube *. You cannot have much more than 1K of these without calling closeCube().
displayName | The filename (fully expanded) of the object. |
parent | Qt parent object (this is destroyed when parent is destroyed) |
References displayName().
Isis::DisplayProperties::DisplayProperties | ( | XmlStackedHandlerReader * | xmlReader, |
QObject * | parent = NULL |
||
) |
|
virtual |
destructor
void Isis::DisplayProperties::addSupport | ( | int | property | ) |
Call this with every property you support, otherwise they will not communicate properly between widgets.
prop | The property you are adding support for |
References supportAdded(), and supports().
Referenced by Isis::ImageTreeWidgetItem::ImageTreeWidgetItem(), and Isis::MosaicSceneItem::MosaicSceneItem().
QString Isis::DisplayProperties::displayName | ( | ) | const |
Returns the display name.
Referenced by Isis::Directory::addCnetEditorView(), Isis::MosaicSceneItem::contextMenuEvent(), DisplayProperties(), Isis::ImageTreeWidgetItem::ImageTreeWidgetItem(), Isis::Image::initFootprint(), Isis::Shape::initFootprint(), Isis::MosaicSceneItem::MosaicSceneItem(), Isis::GuiCamera::operator==(), Isis::MosaicSceneItem::reproject(), Isis::ControlDisplayProperties::save(), save(), Isis::GuiCameraDisplayProperties::save(), Isis::ShapeDisplayProperties::save(), Isis::TargetBodyDisplayProperties::save(), Isis::SensorInfoWidget::SensorInfoWidget(), setDisplayName(), Isis::ExportControlNetWorkOrder::setupExecution(), Isis::TargetInfoWidget::TargetInfoWidget(), and toPvl().
void Isis::DisplayProperties::fromPvl | ( | const PvlObject & | pvl | ) |
References setDisplayName().
Referenced by Isis::Image::fromPvl(), and Isis::Shape::fromPvl().
QVariant Isis::DisplayProperties::getValue | ( | int | property | ) | const |
Get a property's associated data.
prop | The property |
Referenced by Isis::MosaicSceneItem::color(), Isis::MosaicSceneItem::cubeDisplayChanged(), Isis::MosaicSceneItem::paint(), Isis::ImageListActionWorkOrder::qualifyString(), Isis::MosaicSceneItem::reproject(), Isis::ImageTreeWidgetItem::update(), and Isis::MosaicSceneItem::updateSelection().
|
signal |
Referenced by setValue().
|
static |
void Isis::DisplayProperties::save | ( | QXmlStreamWriter & | stream, |
const Project * | project, | ||
FileName | newProjectRoot | ||
) | const |
Output format:
<displayProperties displayName="..."> Hex-encoded data </displayProperties>
References displayName(), and Isis::ReadWrite.
Referenced by Isis::Image::save().
void Isis::DisplayProperties::setDisplayName | ( | QString | displayName | ) |
Sets display name.
displayName | Display name of the object. |
References displayName().
Referenced by fromPvl().
|
protected |
This is the generic mutator for properties.
Given a value, this will change it and emit propertyChanged if its different and supported.
References propertyChanged(), and supports().
Referenced by Isis::ImageDisplayProperties::ImageDisplayProperties(), Isis::ImageDisplayProperties::setColor(), Isis::ImageDisplayProperties::setSelected(), Isis::ImageDisplayProperties::setShowDNs(), Isis::ImageDisplayProperties::setShowFill(), Isis::ImageDisplayProperties::setShowLabel(), and Isis::ImageDisplayProperties::setShowOutline().
|
signal |
Referenced by addSupport().
bool Isis::DisplayProperties::supports | ( | int | property | ) |
Support may come later, please make sure you are connected to the supportAdded signal.
Referenced by addSupport(), Isis::ImageList::allSupport(), setValue(), and Isis::ImageTreeWidgetItem::update().
PvlObject Isis::DisplayProperties::toPvl | ( | ) | const |
Convert to Pvl for project files.
This stores all of the data associated with all of the properties (but not what is supported). This also stores the cube filename.
References displayName(), and Isis::ReadWrite.
Referenced by Isis::Image::toPvl(), and Isis::Shape::toPvl().