Region Shape Manager.
More...
#include <QtRegionShapeManager.qo.h>
|
void | addShape (RegionShape *shape, RegionShape *compositeParent) |
| Adds the given shape with the given composite parent (or NULL if the shape is not a composite child) to the manager. More...
|
|
void | addShapes (const std::vector< RegionShape * > &shapes, const std::vector< RegionShape * > &compositeParents) |
| Adds the given shapes with the given composite parents (or NULL if the shapes do not not parents) to the manager. More...
|
|
Region Shape Manager.
Main interaction between region shapes and user. Provides functionality to:
-
Load region shapes from a file
-
Display loaded region shapes
-
Show/hide loaded region shapes
-
Delete loaded region shapes
-
Edit region shapes
Definition at line 56 of file QtRegionShapeManager.qo.h.
casa::QtRegionShapeManager::QtRegionShapeManager |
( |
QtDisplayPanel * |
panel | ) |
|
Constructor which takes the parent panel.
casa::QtRegionShapeManager::~QtRegionShapeManager |
( |
| ) |
|
void casa::QtRegionShapeManager::addShape |
( |
RegionShape * |
shape | ) |
|
|
slot |
Adds the given shape to the manager.
Should only be used for individual shapes, since the display panel will refresh after every call which can get very slow with many shapes. For multiple shapes, use addShapes(). The given shape becomes owned by the manager which is responsible for its deletion.
Adds the given shape with the given composite parent (or NULL if the shape is not a composite child) to the manager.
void casa::QtRegionShapeManager::addShapes |
( |
const std::vector< RegionShape * > & |
shapes | ) |
|
|
slot |
Adds the given shapes to the manager.
Holds the drawing until all shapes have been added. The given shapes become owned by the manager which is responsible for their deletion.
void casa::QtRegionShapeManager::addShapes |
( |
const std::vector< RegionShape * > & |
shapes, |
|
|
const std::vector< RegionShape * > & |
compositeParents |
|
) |
| |
|
private |
Adds the given shapes with the given composite parents (or NULL if the shapes do not not parents) to the manager.
void casa::QtRegionShapeManager::deleteAll |
( |
| ) |
|
|
slot |
Delete all loaded region shapes.
void casa::QtRegionShapeManager::dismiss |
( |
| ) |
|
|
privateslot |
void casa::QtRegionShapeManager::enable |
( |
| ) |
|
|
inlineslot |
void casa::QtRegionShapeManager::load |
( |
| ) |
|
|
privateslot |
Load region shapes from a file.
void casa::QtRegionShapeManager::newShape |
( |
| ) |
|
|
privateslot |
unsigned int casa::QtRegionShapeManager::numShapes |
( |
bool |
includeComposites = true | ) |
const |
Returns the number of shapes in the manager.
If includeComposites is false, composites are not counted towards the return total. Composite children are not included.
Returns the parent panel.
void casa::QtRegionShapeManager::removeShape |
( |
RegionShape * |
shape, |
|
|
bool |
deleteShape = true |
|
) |
| |
|
slot |
Removes and (optionally) deletes the given shape from the manager.
void casa::QtRegionShapeManager::restoreState |
( |
QDomDocument & |
document | ) |
|
Restores loaded shapes from the given document.
void casa::QtRegionShapeManager::save |
( |
| ) |
|
|
privateslot |
Saves loaded region shapes from a file.
void casa::QtRegionShapeManager::saveState |
( |
QDomDocument & |
document | ) |
|
Appends an XML state representation of loaded shapes to the given document.
std::vector<RegionShape*> casa::QtRegionShapeManager::shapes |
( |
bool |
includeComposites = true | ) |
const |
Returns the shapes in the manager.
If include composites is false, composites are not included. Composite children are not included.
Shows the given detailed error message.
"message" should contain a short overview while "details" should contain longer information.
void casa::QtRegionShapeManager::showHideAll |
( |
bool |
checked | ) |
|
|
privateslot |
Show or hide all loaded region shapes.
void casa::QtRegionShapeManager::showSimpleError |
( |
const casacore::String & |
message, |
|
|
bool |
warn = true |
|
) |
| const |
Shows the given error message (should be short).
const QString casa::QtRegionShapeManager::HIDDEN |
|
staticprivate |
const QString casa::QtRegionShapeManager::LAST_DIRECTORY |
|
staticprivate |
const QString casa::QtRegionShapeManager::LAST_FILE |
|
staticprivate |
const QString casa::QtRegionShapeManager::LAST_FORMAT |
|
staticprivate |
const QString casa::QtRegionShapeManager::WINDOW_VISIBLE |
|
staticprivate |
The documentation for this class was generated from the following file: