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_0_H__ 00022 #define __SYMMETRIES_0_H__ 00023 00024 #include "symmetries.h" 00025 00026 class gridType_c; 00027 00029 class symmetries_0_c : public symmetries_c { 00030 00031 public: 00032 00033 symmetries_0_c(void); 00034 00035 unsigned int getNumTransformations(void) const; 00036 unsigned int getNumTransformationsMirror(void) const; 00037 bool symmetrieContainsTransformation(symmetries_t s, unsigned int t) const; 00038 unsigned char transAdd(unsigned char t1, unsigned char t2) const; 00039 unsigned char minimizeTransformation(symmetries_t s, unsigned char trans) const; 00040 unsigned int countSymmetryIntersection(symmetries_t resultSym, symmetries_t s2) const; 00041 bool symmetriesLeft(symmetries_t resultSym, symmetries_t s2) const; 00042 symmetries_t calculateSymmetry(const voxel_c * pp) const; 00043 bool symmetryContainsMirror(symmetries_t sym) const; 00044 bool symmetryKnown(const voxel_c * pp) const; 00045 bool isTransformationUnique(symmetries_t s, unsigned int trans) const; 00046 00047 private: 00048 00049 // no copying and assigning 00050 symmetries_0_c(const symmetries_0_c&); 00051 void operator=(const symmetries_0_c&); 00052 }; 00053 00054 #endif