2
// Copyright (C) 1997 - 2001, Paul C. Gregory
4
// Contact: pgregory@aqsis.org
6
// This library is free software; you can redistribute it and/or
7
// modify it under the terms of the GNU General Public
8
// License as published by the Free Software Foundation; either
9
// version 2 of the License, or (at your option) any later version.
11
// This library is distributed in the hope that it will be useful,
12
// but WITHOUT ANY WARRANTY; without even the implied warranty of
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
// General Public License for more details.
16
// You should have received a copy of the GNU General Public
17
// License along with this library; if not, write to the Free Software
18
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
\brief Implements the common book class functionality.
23
\author Paul C. Gregory (pgregory@aqsis.org)
32
CqBook::CqBook( const std::string& name ) : m_name(name)
34
// m_framebuffer = boost::shared_ptr<CqFramebuffer>(
35
// new CqFramebuffer(CqFramebuffer::defaultWidth,
36
// CqFramebuffer::defaultHeight, 3, name));
37
// m_framebuffer->show();
41
std::vector<boost::shared_ptr<CqImage> >::size_type CqBook::addImage(boost::shared_ptr<CqImage>& image)
43
m_images.push_back(image);
44
return(m_images.size()-1);
47
boost::shared_ptr<CqImage> CqBook::image(CqBook::TqImageList::size_type index)
49
if(m_images.size() > index)
50
return(m_images[index]);
53
boost::shared_ptr<CqImage> t;
58
void CqBook::setName( const std::string& name )
62
// m_framebuffer->setBookName(name);
65
void CqBook::removeImage(TqImageListIterator item)
67
if(item != m_images.end())
69
// if(framebuffer()->image() == (*item))
71
// framebuffer()->disconnect();