#include <ShapeGroupElement.h>
Public Member Functions | |
ShapeGroupElement (ShapeGroupElement *parent) | |
ShapeGroupElement (ShapeGroupElement *parent, unsigned seqNum) | |
~ShapeGroupElement () | |
void | setShapeInfo (const ShapeInfo &shapeInfo) |
void | setup (boost::function< void(ShapeGroupElement &self)> visitor) |
void | visit (boost::function< boost::function< void(void)>(const ShapeInfo &info, const Coordinate &relativeTo, const VectorTransformation2D &foldedTransform, bool isGroup, const VectorTransformation2D &thisTransform)> visitor, const Coordinate &relativeTo, const VectorTransformation2D &foldedTransform) const |
void | visit (boost::function< boost::function< void(void)>(const ShapeInfo &info, const Coordinate &relativeTo, const VectorTransformation2D &foldedTransform, bool isGroup, const VectorTransformation2D &thisTransform)> visitor) const |
bool | isGroup () const |
ShapeGroupElement * | getParent () |
const ShapeGroupElement * | getParent () const |
void | setSeqNum (unsigned seqNum) |
void | setTransform (const VectorTransformation2D &transform) |
unsigned | getSeqNum () const |
Private Member Functions | |
ShapeGroupElement & | operator= (const ShapeGroupElement &) |
ShapeGroupElement (const ShapeGroupElement &) | |
Private Attributes | |
boost::optional< ShapeInfo > | m_shapeInfo |
ShapeGroupElement * | m_parent |
std::vector< ShapeGroupElement * > | m_children |
unsigned | m_seqNum |
VectorTransformation2D | m_transform |
|
private |
libmspub::ShapeGroupElement::ShapeGroupElement | ( | ShapeGroupElement * | parent | ) |
libmspub::ShapeGroupElement::ShapeGroupElement | ( | ShapeGroupElement * | parent, |
unsigned | seqNum | ||
) |
libmspub::ShapeGroupElement::~ShapeGroupElement | ( | ) |
ShapeGroupElement * libmspub::ShapeGroupElement::getParent | ( | ) |
Referenced by libmspub::MSPUBCollector::endGroup().
const ShapeGroupElement * libmspub::ShapeGroupElement::getParent | ( | ) | const |
unsigned libmspub::ShapeGroupElement::getSeqNum | ( | ) | const |
Referenced by libmspub::MSPUBCollector::setupShapeStructures().
bool libmspub::ShapeGroupElement::isGroup | ( | ) | const |
|
private |
void libmspub::ShapeGroupElement::setSeqNum | ( | unsigned | seqNum | ) |
void libmspub::ShapeGroupElement::setShapeInfo | ( | const ShapeInfo & | shapeInfo | ) |
Referenced by libmspub::MSPUBCollector::setupShapeStructures().
void libmspub::ShapeGroupElement::setTransform | ( | const VectorTransformation2D & | transform | ) |
Referenced by libmspub::MSPUBCollector::setupShapeStructures().
void libmspub::ShapeGroupElement::setup | ( | boost::function< void(ShapeGroupElement &self)> | visitor | ) |
void libmspub::ShapeGroupElement::visit | ( | boost::function< boost::function< void(void)>(const ShapeInfo &info, const Coordinate &relativeTo, const VectorTransformation2D &foldedTransform, bool isGroup, const VectorTransformation2D &thisTransform)> | visitor, |
const Coordinate & | relativeTo, | ||
const VectorTransformation2D & | foldedTransform | ||
) | const |
Referenced by libmspub::MSPUBCollector::writePageShapes().
void libmspub::ShapeGroupElement::visit | ( | boost::function< boost::function< void(void)>(const ShapeInfo &info, const Coordinate &relativeTo, const VectorTransformation2D &foldedTransform, bool isGroup, const VectorTransformation2D &thisTransform)> | visitor | ) | const |
|
private |
Referenced by isGroup(), setup(), ShapeGroupElement(), and ~ShapeGroupElement().
|
private |
Referenced by getParent(), and ShapeGroupElement().
|
private |
Referenced by getSeqNum(), and setSeqNum().
|
private |
Referenced by setShapeInfo().
|
private |
Referenced by setTransform().