transform3d.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 /* 
00004  * Gnome Chemistry Utils
00005  * transform3d.h - Handle 3D transformations in space groups.
00006  *  
00007  * Copyright (C) 2007-2010 by Jean Bréfort
00008  * 
00009  * This file was originally part of the Open Babel project.
00010  * For more information, see <http://openbabel.sourceforge.net/>
00011  *  
00012  * This program is free software; you can redistribute it and/or 
00013  * modify it under the terms of the GNU General Public License as 
00014  * published by the Free Software Foundation; either version 2 of the
00015  * License, or (at your option) any later version.
00016  
00017  * This program is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  * GNU General Public License for more details.
00021  */
00022 
00023 #ifndef GCU_TRANSFORM_3D_H
00024 #define GCU_TRANSFORM_3D_H
00025 
00026 #include "matrix.h"
00027 #include "vector.h"
00028 #include <list>
00029 #include <string>
00030 
00031 namespace gcu
00032 {
00033  
00042 class Transform3d: private Matrix, private Vector
00043 {
00044 public:
00048         Transform3d ();
00056         Transform3d (Matrix const &m, Vector const &v);
00062         Transform3d (double s);
00072         Transform3d (Vector row1, Vector row2, Vector row3, Vector translation);
00080         Transform3d (double d[3][3], double t[3]);
00081 
00085         virtual ~Transform3d ();
00086 
00094         Vector operator* (Vector const &v) const;
00095 
00102         Transform3d operator* (Transform3d const &t) const;
00103 
00107         std::string DescribeAsString() const;
00112         std::string DescribeAsValues() const;
00113 
00117         void Normalize();
00118 };
00119 
00120 }
00121 
00122 #endif // GCU_TRANSFORM_3D_H
00123 

Generated on Fri Sep 24 15:58:42 2010 for The Gnome Chemistry Utils by  doxygen 1.5.9