Added initial implementation of Template.

This commit is contained in:
Jim Evins
2013-11-02 17:10:49 -04:00
parent be55bebc50
commit 262932a4c7
16 changed files with 416 additions and 60 deletions
+27
View File
@@ -24,6 +24,33 @@
namespace libglabels
{
Frame::Frame( const Frame &other )
{
mId = other.mId;
mNLabels = 0;
{
std::list<Layout*>::const_iterator it;
for ( it = other.mLayouts.begin(); it != other.mLayouts.end(); it++ )
{
Layout *layout = (*it)->dup();
addLayout( layout );
}
}
{
std::list<Markup*>::const_iterator it;
for ( it = other.mMarkups.begin(); it != other.mMarkups.end(); it++ )
{
Markup *markup = (*it)->dup();
addMarkup( markup );
}
}
}
std::vector<Point> Frame::getOrigins() const
{
std::vector<Point> origins( nLabels() );