Fraxinus
17.12-rc2
An IGT application
|
#include <cxLayoutData.h>
Public Types | |
typedef std::vector< LayoutViewData > | ViewDataContainer |
typedef ViewDataContainer::iterator | iterator |
typedef ViewDataContainer::const_iterator | const_iterator |
Public Member Functions | |
LayoutData () | |
QString | getUid () const |
QString | getName () const |
bool | getOffScreenRendering () const |
void | setOffScreenRendering (bool val) |
void | setName (const QString &name) |
void | resetUid (const QString &uid) |
void | setView (int group, PLANE_TYPE type, LayoutRegion region) |
void | setView (int group, View::Type type, LayoutRegion region) |
LayoutViewData & | get (LayoutPosition pos) |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
iterator | find (LayoutPosition pos) |
bool | isEmpty () const |
void | split (iterator iter) |
void | split (LayoutRegion region) |
bool | merge (LayoutRegion region) |
void | resize (int rows, int cols) |
LayoutPosition | size () const |
void | addXml (QDomNode node) const |
save state to xml More... | |
void | parseXml (QDomNode node) |
load state from xml More... | |
Static Public Member Functions | |
static LayoutData | createHeader (QString uid, QString name) |
static LayoutData | create (QString uid, QString name, int rows, int cols) |
Static Public Attributes | |
static const int | MaxGridSize = 20 |
Represents one specific layout of the views, and what kind of information they contain, i.e 3D/2D, slice plane definition, image group.
Definition at line 97 of file cxLayoutData.h.
typedef ViewDataContainer::const_iterator cx::LayoutData::const_iterator |
Definition at line 102 of file cxLayoutData.h.
typedef ViewDataContainer::iterator cx::LayoutData::iterator |
Definition at line 101 of file cxLayoutData.h.
typedef std::vector<LayoutViewData> cx::LayoutData::ViewDataContainer |
Definition at line 100 of file cxLayoutData.h.
cx::LayoutData::LayoutData | ( | ) |
Definition at line 97 of file cxLayoutData.cpp.
void cx::LayoutData::addXml | ( | QDomNode | node | ) | const |
save state to xml
Definition at line 274 of file cxLayoutData.cpp.
|
inline |
Definition at line 118 of file cxLayoutData.h.
|
inline |
Definition at line 120 of file cxLayoutData.h.
|
static |
Definition at line 88 of file cxLayoutData.cpp.
|
static |
Definition at line 83 of file cxLayoutData.cpp.
|
inline |
Definition at line 119 of file cxLayoutData.h.
|
inline |
Definition at line 121 of file cxLayoutData.h.
LayoutData::iterator cx::LayoutData::find | ( | LayoutPosition | pos | ) |
Definition at line 263 of file cxLayoutData.cpp.
LayoutViewData & cx::LayoutData::get | ( | LayoutPosition | pos | ) |
Definition at line 258 of file cxLayoutData.cpp.
|
inline |
Definition at line 110 of file cxLayoutData.h.
|
inline |
Definition at line 111 of file cxLayoutData.h.
|
inline |
Definition at line 109 of file cxLayoutData.h.
|
inline |
Definition at line 123 of file cxLayoutData.h.
bool cx::LayoutData::merge | ( | LayoutRegion | region | ) |
Merge all views inside input region. Previously merged views partially inside the new region will be split.
Prerequisite: input is inside old boundaries.
Definition at line 139 of file cxLayoutData.cpp.
void cx::LayoutData::parseXml | ( | QDomNode | node | ) |
load state from xml
Definition at line 296 of file cxLayoutData.cpp.
void cx::LayoutData::resetUid | ( | const QString & | uid | ) |
Definition at line 105 of file cxLayoutData.cpp.
void cx::LayoutData::resize | ( | int | rows, |
int | cols | ||
) |
Resize layout to be of dimension rows x cols.
Definition at line 216 of file cxLayoutData.cpp.
|
inline |
Definition at line 113 of file cxLayoutData.h.
|
inline |
Definition at line 112 of file cxLayoutData.h.
void cx::LayoutData::setView | ( | int | group, |
PLANE_TYPE | type, | ||
LayoutRegion | region | ||
) |
Allows easy definition of a view inside the layout. region must be inside layout bounds.
Definition at line 114 of file cxLayoutData.cpp.
void cx::LayoutData::setView | ( | int | group, |
View::Type | type, | ||
LayoutRegion | region | ||
) |
Definition at line 124 of file cxLayoutData.cpp.
|
inline |
Definition at line 129 of file cxLayoutData.h.
void cx::LayoutData::split | ( | iterator | iter | ) |
Split the region given by iter into 1x1 views.
Definition at line 189 of file cxLayoutData.cpp.
void cx::LayoutData::split | ( | LayoutRegion | region | ) |
Split all views wholly or partially within input region into 1x1 views.
Definition at line 173 of file cxLayoutData.cpp.
|
static |
Definition at line 103 of file cxLayoutData.h.