Points&Forces (core)
Software tools facilitating the task of surveying architecture
a_dxf_line.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_LINE_H_
17 #define _VE_DXF_LINE_H_
18 
19 // .NAME a_dxf_line
20 // .PORTABILITY ansi C++
21 // .SECTION Author
22 // Pierre Smars
23 
24 #include <iostream>
25 #include <string>
26 #include "a_dxf_entity.h"
27 
29 class a_dxf_line : public a_dxf_entity
30 {
31 public:
32  a_dxf_line(std::istream * file);
33  bool read();
34  double x1() {return x1_;}
35  double y1() {return y1_;}
36  double z1() {return z1_;}
37  double x2() {return x2_;}
38  double y2() {return y2_;}
39  double z2() {return z2_;}
40 
41 protected:
42  double x1_; bool x1_ok;
43  double y1_; bool y1_ok;
44  double z1_; bool z1_ok;
45  double x2_; bool x2_ok;
46  double y2_; bool y2_ok;
47  double z2_; bool z2_ok;
48 };
49 
50 #endif
a generic dxf entity
Definition: a_dxf_entity.h:29
a dxf line
Definition: a_dxf_line.h:30
bool y2_ok
Definition: a_dxf_line.h:46
bool read()
Definition: a_dxf_line.cxx:26
double x2_
Definition: a_dxf_line.h:45
bool z1_ok
Definition: a_dxf_line.h:44
bool x1_ok
Definition: a_dxf_line.h:42
double y2_
Definition: a_dxf_line.h:46
double x2()
Definition: a_dxf_line.h:37
double z2()
Definition: a_dxf_line.h:39
a_dxf_line(std::istream *file)
Definition: a_dxf_line.cxx:20
bool x2_ok
Definition: a_dxf_line.h:45
double y2()
Definition: a_dxf_line.h:38
double z2_
Definition: a_dxf_line.h:47
double x1()
Definition: a_dxf_line.h:34
bool z2_ok
Definition: a_dxf_line.h:47
bool y1_ok
Definition: a_dxf_line.h:43
double x1_
Definition: a_dxf_line.h:42
double z1_
Definition: a_dxf_line.h:44
double y1()
Definition: a_dxf_line.h:35
double y1_
Definition: a_dxf_line.h:43
double z1()
Definition: a_dxf_line.h:36