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-2008 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  
00039 class Transform3d: private Matrix, private Vector
00040 {
00041 public:
00044         Transform3d ();
00047         Transform3d (Matrix const &m, Vector const &v);
00050         Transform3d (double s);
00053         Transform3d (Vector row1, Vector row2, Vector row3, Vector translation);
00056         Transform3d (double d[3][3], double t[3]);
00057 
00060         virtual ~Transform3d ();
00061 
00064         Vector operator* (Vector const &) const;
00065 
00068         Transform3d operator* (Transform3d const &) const;
00069 
00072         std::string DescribeAsString() const;
00075         std::string DescribeAsValues() const;
00076 
00079         void Normalize();
00080 };
00081 
00082 }
00083 
00084 #endif // GCU_TRANSFORM_3D_H
00085 
Generated on Tue Apr 13 14:55:01 2010 for The Gnome Chemistry Utils by  doxygen 1.6.3