Points&Forces (survey)
Software tools facilitating the task of surveying architecture
a_profile_edit.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 _WE_PROFILE_EDIT_H_
17 #define _WE_PROFILE_EDIT_H_
18 
19 #include "a_curve_lin.h"
20 #include "vtkRenderer.h"
21 #include <vector>
22 #include <iostream>
23 
25 {
26  public:
28  void add_profile(a_curve_lin * prof) {profiles_ref_.push_back(prof);}
29  void show(int precision);
31  friend std::istream& operator>> (std::istream& i, a_profile_edit& p);
33  friend std::ostream& operator<< (std::ostream& o, const a_profile_edit& p);
34 
35  protected:
37  std::vector<a_curve_lin *> profiles_ref_;
38  double bd_[6];
39 
40  void draw_prof(a_curve_lin * prof, vtkRenderer * ren);
41  void draw_plan(vtkRenderer * ren);
42  void draw_refprof(a_curve_lin * prof, vtkRenderer * ren);
43 };
44 
45 #endif
a curve with linear interpolation
Definition: a_curve_lin.h:28
void show(int precision)
std::vector< a_curve_lin * > profiles_ref_
friend std::ostream & operator<<(std::ostream &o, const a_profile_edit &p)
void draw_refprof(a_curve_lin *prof, vtkRenderer *ren)
a_curve_lin profile_
void add_profile(a_curve_lin *prof)
void draw_plan(vtkRenderer *ren)
friend std::istream & operator>>(std::istream &i, a_profile_edit &p)
void draw_prof(a_curve_lin *prof, vtkRenderer *ren)
vtkRenderer * ren
Definition: view_li.cxx:81