Points&Forces (survey)
Software tools facilitating the task of surveying architecture
a_linecloud.h
Go to the documentation of this file.
1 /*
2  Copyright 2010-2012 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 _A_LINECLOUD_H_
17 #define _A_LINECLOUD_H_
18 
19 // .NAME a_linecloud
20 // .SECTION Author
21 // Pierre Smars
22 
23 #include <string>
24 #include <iostream>
25 #include <vector>
26 #include "a_element.h"
27 
29 class a_linecloud : public a_element
30 {
31  public:
32  a_linecloud();
33  a_linecloud(const a_linecloud& c);
34  ~a_linecloud();
35  static const std::string help();
36  void clear();
38  virtual std::string type() const {return "a_linecloud";}
39  int nl() const;
40  void dxfout(std::ostream& o) const;
41  void read(std::istream& in);
42  void write(std::ostream& o) const;
43  void getline(const int ref, a_point& p1, a_point& p2) const;
44  int addline(const a_point& p1, const a_point& p2);
45  void append(const a_linecloud&);
46 
47  protected:
48  bool has_lines_;
49 };
50 
51 inline bool operator!=(a_linecloud * l, const std::string s) {return (*l) !=s;}
52 void delete_vector(std::vector<a_linecloud *> &);
53 
54 #endif
void delete_vector(std::vector< a_linecloud * > &)
bool operator!=(a_linecloud *l, const std::string s)
Definition: a_linecloud.h:51
layer used by screen to draw vector graphics
Definition: a_element.h:39
layer used by screen to draw vector graphics
Definition: a_linecloud.h:30
a_linecloud & operator+=(const a_linecloud &c)
Definition: a_linecloud.cxx:89
int nl() const
void clear()
Definition: a_linecloud.cxx:80
int addline(const a_point &p1, const a_point &p2)
bool has_lines_
Definition: a_linecloud.h:48
static const std::string help()
Definition: a_linecloud.cxx:59
void append(const a_linecloud &)
virtual std::string type() const
Definition: a_linecloud.h:38
void write(std::ostream &o) const
void dxfout(std::ostream &o) const
void read(std::istream &in)
void getline(const int ref, a_point &p1, a_point &p2) const
std::istringstream in
Definition: ply2tri.cxx:32