Avogadro  1.1.0
/home/kitware/dashboards/avogadro/libavogadro/src/painterdevice.h
00001 /**********************************************************************
00002   PainterDevice - Painter Device base class.
00003 
00004   Copyright (C) 2007,2008 Marcus D. Hanwell
00005 
00006   This file is part of the Avogadro molecular editor project.
00007   For more information, see <http://avogadro.openmolecules.net/>
00008 
00009   Avogadro is free software; you can redistribute it and/or modify
00010   it under the terms of the GNU General Public License as published by
00011   the Free Software Foundation; either version 2 of the License, or
00012   (at your option) any later version.
00013 
00014   Avogadro is distributed in the hope that it will be useful,
00015   but WITHOUT ANY WARRANTY; without even the implied warranty of
00016   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017   GNU General Public License for more details.
00018 
00019   You should have received a copy of the GNU General Public License
00020   along with this program; if not, write to the Free Software
00021   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00022   02110-1301, USA.
00023  **********************************************************************/
00024 
00025 #ifndef PAINTERDEVICE_H
00026 #define PAINTERDEVICE_H
00027 
00028 #include <avogadro/painter.h>
00029 
00030 namespace Avogadro {
00031 
00032   class Camera;
00033   class Primitive;
00034   class Molecule;
00035   class Color;
00036   class PrimitiveList;
00037 
00038   class A_EXPORT PainterDevice
00039   {
00040   public:
00041     PainterDevice() {}
00042     virtual ~PainterDevice() {}
00043 
00044     virtual Painter *painter() const = 0;
00045     virtual Camera *camera() const = 0;
00046     virtual bool isSelected( const Primitive *p ) const = 0;
00047     virtual double radius( const Primitive *p ) const = 0;
00048     virtual const Molecule *molecule() const = 0;
00049     virtual Color* colorMap() const = 0;
00050     virtual PrimitiveList * primitives() const { return 0; }
00051 
00052     virtual int width() = 0;
00053     virtual int height() = 0;
00054   };
00055 
00056 } // End namespace Avogadro
00057 
00058 #endif