Points&Forces (core)
Software tools facilitating the task of surveying architecture
include
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
29
class
a_dxf_polyline
:
public
a_dxf_entity
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_dxf_entity.h
a_dxf_entity
a generic dxf entity
Definition:
a_dxf_entity.h:29
a_dxf_polyline
a dxf line
Definition:
a_dxf_polyline.h:30
a_dxf_polyline::y
double y(int i) const
Definition:
a_dxf_polyline.h:37
a_dxf_polyline::z
double z(int i) const
Definition:
a_dxf_polyline.h:38
a_dxf_polyline::y_
std::vector< double > y_
Definition:
a_dxf_polyline.h:41
a_dxf_polyline::x
double x(int i) const
Definition:
a_dxf_polyline.h:36
a_dxf_polyline::n
int n() const
Definition:
a_dxf_polyline.h:34
a_dxf_polyline::init
void init()
Definition:
a_dxf_polyline.cxx:25
a_dxf_polyline::a_dxf_polyline
a_dxf_polyline(std::istream *file)
Definition:
a_dxf_polyline.cxx:20
a_dxf_polyline::z_
std::vector< double > z_
Definition:
a_dxf_polyline.h:42
a_dxf_polyline::read
bool read()
Definition:
a_dxf_polyline.cxx:32
a_dxf_polyline::x_
std::vector< double > x_
Definition:
a_dxf_polyline.h:40
Generated on Tue Sep 6 2022 18:50:16 for Points&Forces (core) by
1.9.1