Points&Forces (core)
Software tools facilitating the task of surveying architecture
a_dxf_point.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_POINT_H_
17 #define _VE_DXF_POINT_H_
18 
19 // .NAME a_dxf_point
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_point : public a_dxf_entity
30 {
31 public:
32  a_dxf_point(std::istream * file);
33  bool read();
34  double x() {return x_;}
35  double y() {return y_;}
36  double z() {return z_;}
37 
38 protected:
39  double x_; bool x_ok;
40  double y_; bool y_ok;
41  double z_; bool z_ok;
42 };
43 
44 #endif
a generic dxf entity
Definition: a_dxf_entity.h:29
a dxf point
Definition: a_dxf_point.h:30
double x()
Definition: a_dxf_point.h:34
double z_
Definition: a_dxf_point.h:41
double x_
Definition: a_dxf_point.h:39
double z()
Definition: a_dxf_point.h:36
a_dxf_point(std::istream *file)
Definition: a_dxf_point.cxx:20
double y()
Definition: a_dxf_point.h:35
double y_
Definition: a_dxf_point.h:40