Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef __PMDPAGE_H__
00011 #define __PMDPAGE_H__
00012
00013 #include "geometry.h"
00014
00015 #include <vector>
00016 #include <boost/shared_ptr.hpp>
00017 #include <librevenge/librevenge.h>
00018
00019 namespace libpagemaker
00020 {
00021
00022 class PMDPage
00023 {
00024 std::vector<boost::shared_ptr<PMDLineSet> > m_shapes;
00025 public:
00026 PMDPage() : m_shapes()
00027 { }
00028
00029 void addShape(const boost::shared_ptr<PMDLineSet> &shape)
00030 {
00031 m_shapes.push_back(shape);
00032 }
00033
00034 unsigned numShapes() const
00035 {
00036 return m_shapes.size();
00037 }
00038
00039 boost::shared_ptr<const PMDLineSet> getShape(unsigned i) const
00040 {
00041 return m_shapes.at(i);
00042 }
00043 };
00044
00045 }
00046
00047 #endif
00048
00049