/******************************************************************** * Description: * Author: George-Catalin Serbanut * * Copyright (c) 2005 George-Catalin Serbanut All rights reserved. * ********************************************************************/ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef CONVERT_HH #define CONVERT_HH #include #include #include "point.hh" #include "data_igs.hh" #include "data_g4.hh" #include "math.hh" using namespace std; class Convert{ public: Convert(); ~Convert(); vector igsdata; vector g4data; DataG4 dg4; DataIGS digs; Math math; double xc, yc, zc; // crystal center double xc1, yc1, zc1; // lower plan center double xc2, yc2, zc2; // upper plan center Point perp; int pts[8]; // some ordering buffer parameters string igs_plane; void multiplication(); void convert_igs_g4(); void rotate_axes(int igs_contor); void order(); void center_position(); void substract(); void rotate_points(); void pDz(); void pTheta(); void pPhi(); void compute_plane(const string igs_cp); void pDy(); void pDxs(); void pAlp(); void manager(); }; #endif