digiKam
DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode Class Reference

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
 
AtkinsPageLayoutNodeleftChild () const
 
AtkinsPageLayoutNodenodeForIndex (int index)
 
AtkinsPageLayoutNodeoperator= (const AtkinsPageLayoutNode &)
 
AtkinsPageLayoutNodeparentOf (AtkinsPageLayoutNode *const child)
 
double relativeArea () const
 
AtkinsPageLayoutNoderightChild () const
 
void takeAndSetChild (AtkinsPageLayoutNode *const oldChild, AtkinsPageLayoutNode *const newChild)
 
Type type () const
 
 ~AtkinsPageLayoutNode ()
 

Member Enumeration Documentation

◆ Type

Enumerator
TerminalNode 
HorizontalDivision 

one image on top of the other

VerticalDivision 

images side by side

Constructor & Destructor Documentation

◆ AtkinsPageLayoutNode() [1/3]

DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::AtkinsPageLayoutNode ( double  aspectRatio,
double  relativeArea,
int  index 
)

Referenced by operator=().

◆ AtkinsPageLayoutNode() [2/3]

DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::AtkinsPageLayoutNode ( AtkinsPageLayoutNode *const  subtree,
AtkinsPageLayoutNode *const  terminalChild,
bool  horizontal,
int  index 
)

◆ AtkinsPageLayoutNode() [3/3]

DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::AtkinsPageLayoutNode ( const AtkinsPageLayoutNode other)

◆ ~AtkinsPageLayoutNode()

DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::~AtkinsPageLayoutNode ( )

Member Function Documentation

◆ aspectRatio()

double DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::aspectRatio ( ) const

◆ computeDivisions()

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().

◆ computeRelativeSizes()

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().

◆ division()

double DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::division ( ) const

◆ index()

int DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::index ( ) const

Referenced by nodeForIndex().

◆ leftChild()

AtkinsPageLayoutNode * DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::leftChild ( ) const

◆ nodeForIndex()

AtkinsPageLayoutNode * DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::nodeForIndex ( int  index)

◆ operator=()

AtkinsPageLayoutNode & DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::operator= ( const AtkinsPageLayoutNode other)

◆ parentOf()

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().

◆ relativeArea()

double DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::relativeArea ( ) const

◆ rightChild()

AtkinsPageLayoutNode * DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::rightChild ( ) const

◆ takeAndSetChild()

void DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutNode::takeAndSetChild ( AtkinsPageLayoutNode *const  oldChild,
AtkinsPageLayoutNode *const  newChild 
)

Replace one child with a new one.

Referenced by DigikamGenericPrintCreatorPlugin::AtkinsPageLayoutTree::addImage().

◆ type()


The documentation for this class was generated from the following files: