• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

kalzium

cylinder.h

Go to the documentation of this file.
00001 /**********************************************************************
00002   Cylinder - Class for drawing cylinders in OpenGL
00003 
00004   Copyright (C) 2006,2007 Benoit Jacob <jacob@math.jussieu.fr>
00005 
00006   This file is part of the Avogadro molecular editor project.
00007   For more information, see <http://avogadro.sourceforge.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 __CYLINDER_H
00026 #define __CYLINDER_H
00027 
00028 #include <avogadro/global.h>
00029 #include <avogadro/glwidget.h>
00030 
00031 #include <openbabel/mol.h>
00032 #include <eigen/matrix.h>
00033 
00034 namespace Avogadro {
00035 
00042   class CylinderPrivate;
00043   class Cylinder
00044   {
00045     protected:
00046       void initialize();
00047       void freeBuffers();
00048 
00049     public:
00050       Cylinder(int faces=0);
00051       ~Cylinder();
00055       void setup( int faces );
00065       void draw( const Eigen::Vector3d &end1, const Eigen::Vector3d &end2,
00066           double radius ) const;
00092       void drawMulti( const Eigen::Vector3d &end1, const Eigen::Vector3d &end2,
00093           double radius, int order, double shift,
00094           const Eigen::Vector3d &planeNormalVector ) const;
00095 
00096     private:
00097       CylinderPrivate * const d;
00098   };
00099 
00100 }
00101 
00102 #endif

kalzium

Skip menu "kalzium"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal