Points&Forces (core)
Software tools facilitating the task of surveying architecture
a_persp_mes_list.h
Go to the documentation of this file.
1 /*
2 Copyright 2010-2011 Pierre SMARS (smars@yuntech.edu.tw)
3 This program is free software: you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation, either version 2 of the License, or
6 (at your option) any later version.
7 
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12 
13 You should have received a copy of the GNU General Public License
14 along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16 #ifndef _VE_PERSP_MES_LIST_H_
17 #define _VE_PERSP_MES_LIST_H_
18 
19 #include "a_persp_mes.h"
20 
21 #include <string>
22 #include <vector>
23 #include <fstream>
24 
33 {
34 public:
35  a_persp_mes_list(const std::string name);
37 
38  inline int nv() const {return cam_unwarp_.size()*9+pos_.size()*6;}
39  double getX(int ai) const;
40  void setX(int ai, double val);
41  double residual();
42 
43  //: input/output
44  friend std::istream& operator>> (std::istream& i, a_persp_mes_list& l);
45  friend std::ostream& operator<< (std::ostream& o, const a_persp_mes_list& l);
46 
48  class file_error {};
49 
50 protected:
51  std::string file_;
52  std::vector<a_unwarp *> cam_unwarp_;
53  std::vector<a_intern *> cam_intern_;
54  std::vector<a_pos2 *> pos_;
55  std::vector<a_persp_mes *> measures_;
56 };
57 
58 #endif
a_persp_mes_list
void setX(int ai, double val)
friend std::istream & operator>>(std::istream &i, a_persp_mes_list &l)
a_persp_mes_list(const std::string name)
double getX(int ai) const
std::vector< a_persp_mes * > measures_
std::vector< a_pos2 * > pos_
std::vector< a_intern * > cam_intern_
friend std::ostream & operator<<(std::ostream &o, const a_persp_mes_list &l)
std::vector< a_unwarp * > cam_unwarp_
int val