00001 /* BurrTools 00002 * 00003 * BurrTools is the legal property of its developers, whose 00004 * names are listed in the COPYRIGHT file, which is included 00005 * within the source distribution. 00006 * 00007 * This program is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU General Public License 00009 * as published by the Free Software Foundation; either version 2 00010 * of the License, or (at your option) any later version. 00011 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00020 */ 00021 #ifndef __SYMMETRIES_2_H__ 00022 #define __SYMMETRIES_2_H__ 00023 00024 #include "symmetries.h" 00025 00026 class gridType_c; 00027 00034 class symmetries_2_c : public symmetries_c { 00035 00036 public: 00037 00038 symmetries_2_c(void); 00039 00040 unsigned int getNumTransformations(void) const; 00041 unsigned int getNumTransformationsMirror(void) const; 00042 bool symmetrieContainsTransformation(symmetries_t s, unsigned int t) const; 00043 unsigned char transAdd(unsigned char t1, unsigned char t2) const; 00044 unsigned char minimizeTransformation(symmetries_t s, unsigned char trans) const; 00045 unsigned int countSymmetryIntersection(symmetries_t resultSym, symmetries_t s2) const; 00046 bool symmetriesLeft(symmetries_t resultSym, symmetries_t s2) const; 00047 symmetries_t calculateSymmetry(const voxel_c * pp) const; 00048 bool symmetryContainsMirror(symmetries_t sym) const; 00049 bool symmetryKnown(const voxel_c * pp) const; 00050 bool isTransformationUnique(symmetries_t s, unsigned int trans) const; 00051 00052 private: 00053 00054 // no copying and assigning 00055 symmetries_2_c(const symmetries_2_c&); 00056 void operator=(const symmetries_2_c&); 00057 }; 00058 00059 #endif