• Skip to content
  • Skip to link menu
KDE 4.2 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
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 
00030 #include <eigen/matrix.h>
00031 
00032 namespace Avogadro {
00033 
00040   class CylinderPrivate;
00041   class Cylinder
00042   {
00043     protected:
00044       void initialize();
00045       void freeBuffers();
00046 
00047     public:
00048       Cylinder(int faces=0);
00049       ~Cylinder();
00053       void setup( int faces );
00063       void draw( const Eigen::Vector3d &end1, const Eigen::Vector3d &end2,
00064           double radius ) const;
00090       void drawMulti( const Eigen::Vector3d &end1, const Eigen::Vector3d &end2,
00091           double radius, int order, double shift,
00092           const Eigen::Vector3d &planeNormalVector ) const;
00093 
00094     private:
00095       CylinderPrivate * const d;
00096   };
00097 
00098 }
00099 
00100 #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
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
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