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