digiKam
|
Public Types | |
enum | Type { TerminalNode , HorizontalDivision , VerticalDivision } |
Public Member Functions | |
double | aspectRatio () const |
AtkinsPageLayoutNode (AtkinsPageLayoutNode *const subtree, AtkinsPageLayoutNode *const terminalChild, bool horizontal, int index) | |
AtkinsPageLayoutNode (const AtkinsPageLayoutNode &) | |
AtkinsPageLayoutNode (double aspectRatio, double relativeArea, int index) | |
void | computeDivisions () |
void | computeRelativeSizes () |
double | division () const |
int | index () const |
AtkinsPageLayoutNode * | leftChild () const |
AtkinsPageLayoutNode * | nodeForIndex (int index) |
AtkinsPageLayoutNode & | operator= (const AtkinsPageLayoutNode &) |
AtkinsPageLayoutNode * | parentOf (AtkinsPageLayoutNode *const child) |
double | relativeArea () const |
AtkinsPageLayoutNode * | rightChild () const |
void | takeAndSetChild (AtkinsPageLayoutNode *const oldChild, AtkinsPageLayoutNode *const newChild) |
Type | type () const |
~AtkinsPageLayoutNode () | |
DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::AtkinsPageLayoutNode | ( | double | aspectRatio, |
double | relativeArea, | ||
int | index | ||
) |
Referenced by operator=().
DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::AtkinsPageLayoutNode | ( | AtkinsPageLayoutNode *const | subtree, |
AtkinsPageLayoutNode *const | terminalChild, | ||
bool | horizontal, | ||
int | index | ||
) |
DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::AtkinsPageLayoutNode | ( | const AtkinsPageLayoutNode & | other | ) |
DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::~AtkinsPageLayoutNode | ( | ) |
double DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::aspectRatio | ( | ) | const |
void DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::computeDivisions | ( | ) |
Compute the "division" (m_division) parameter. Section 2.2.2
References computeDivisions(), HorizontalDivision, TerminalNode, and VerticalDivision.
Referenced by DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutTree::addImage(), and computeDivisions().
void DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::computeRelativeSizes | ( | ) |
Compute the "aspect ratio" (m_a) and "relative size" (m_e) parameters. Section 2.2.1, (1)-(4).
References computeRelativeSizes(), HorizontalDivision, TerminalNode, and VerticalDivision.
Referenced by DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutTree::addImage(), and computeRelativeSizes().
double DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::division | ( | ) | const |
int DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::index | ( | ) | const |
Referenced by nodeForIndex().
AtkinsPageLayoutNode * DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::leftChild | ( | ) | const |
AtkinsPageLayoutNode * DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::nodeForIndex | ( | int | index | ) |
Retrieve the node which has the given index in the hierarchy of this node.
References index(), nodeForIndex(), and TerminalNode.
Referenced by DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutTree::addImage(), DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutTree::drawingArea(), nodeForIndex(), and DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutTree::score().
AtkinsPageLayoutNode & DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::operator= | ( | const AtkinsPageLayoutNode & | other | ) |
References AtkinsPageLayoutNode().
AtkinsPageLayoutNode * DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::parentOf | ( | AtkinsPageLayoutNode *const | child | ) |
Retrieve the parent node of the given child in the hierarchy of this node.
References parentOf(), and TerminalNode.
Referenced by DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutTree::addImage(), DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutTree::drawingArea(), and parentOf().
double DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::relativeArea | ( | ) | const |
AtkinsPageLayoutNode * DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::rightChild | ( | ) | const |
void DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::takeAndSetChild | ( | AtkinsPageLayoutNode *const | oldChild, |
AtkinsPageLayoutNode *const | newChild | ||
) |
Replace one child with a new one.
Referenced by DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutTree::addImage().
AtkinsPageLayoutNode::Type DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::type | ( | ) | const |