Points&Forces (core)
Software tools facilitating the task of surveying architecture
a_dxf_polyline.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_DXF_POLYLINE_H_
17 #define _VE_DXF_POLYLINE_H_
18 
19 // .NAME a_dxf_polyline
20 // .PORTABILITY ansi C++
21 // .SECTION Author
22 // Pierre Smars
23 
24 #include <iostream>
25 #include <vector>
26 #include "a_dxf_entity.h"
27 
30 {
31 public:
32  a_dxf_polyline(std::istream * file);
33  bool read();
34  int n() const {return x_.size();}
35  void init();
36  double x(int i) const {return x_[i];}
37  double y(int i) const {return y_[i];}
38  double z(int i) const {return z_[i];}
39 protected:
40  std::vector<double> x_;
41  std::vector<double> y_;
42  std::vector<double> z_;
43 };
44 
45 #endif
a generic dxf entity
Definition: a_dxf_entity.h:29
a dxf line
double y(int i) const
double z(int i) const
std::vector< double > y_
double x(int i) const
int n() const
a_dxf_polyline(std::istream *file)
std::vector< double > z_
std::vector< double > x_