5 ShapeList::ShapeList( int depthValue )
6 : Shape( DGtal::Color::None, DGtal::Color::None, 1.0, SolidStyle, ButtCap, MiterJoin, depthValue ),
7 _nextDepth( std::numeric_limits<int>::max() - 1 )
12 ShapeList::last( const unsigned int position )
14 if ( position < _shapes.size() ) {
15 std::vector<Shape*>::reverse_iterator it = _shapes.rbegin() + position;
16 return dynamic_cast<T&>( *(*it) );
18 error << "Trying to access an element that does not exist ("
19 << position << "/" << _shapes.size() << ").\n";