Points&Forces (survey)
Software tools facilitating the task of surveying architecture
a_trianglecloud.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_TRIANGLECLOUD_H_
17 #define _A_TRIANGLECLOUD_H_
18 
19 // .NAME a_trianglecloud
20 // .SECTION Author
21 // Pierre Smars
22 
23 #include "vtkActor.h"
24 #include "vtkPolyData.h"
25 #include <string>
26 #include <iostream>
27 #include <vector>
28 #include "a_element.h"
29 
31 class a_trianglecloud : public a_element
32 {
33  public:
37  static const std::string help();
38  void clear();
39  void eraselasttriangle();
41  virtual std::string type() const {return "a_trianglecloud";}
42  int nt() const; //number of triangles
43  void dxfout(std::ostream& o) const;
44  void read(std::istream& in);
45  void write(std::ostream& o) const;
46  void gettriangle(const int ref, a_point& p1, a_point& p2, a_point& p3) const;
47  int addtriangle(const a_point& p1, const a_point& p2, const a_point& p3);
48  //: input/output
49  void append(const a_trianglecloud&);
50 
51  void reset_mapper_clipping();
52 
53  protected:
55 };
56 
57 inline bool operator!=(a_trianglecloud * l, const std::string s) {return (*l) !=s;}
58 void delete_vector(std::vector<a_trianglecloud *> &);
59 
60 #endif
bool operator!=(a_trianglecloud *l, const std::string s)
void delete_vector(std::vector< a_trianglecloud * > &)
layer used by screen to draw vector graphics
Definition: a_element.h:39
layer used by screen to draw vector graphics
void dxfout(std::ostream &o) const
virtual std::string type() const
void append(const a_trianglecloud &)
static const std::string help()
void read(std::istream &in)
void gettriangle(const int ref, a_point &p1, a_point &p2, a_point &p3) const
a_trianglecloud & operator+=(const a_trianglecloud &c)
int addtriangle(const a_point &p1, const a_point &p2, const a_point &p3)
void write(std::ostream &o) const
std::istringstream in
Definition: ply2tri.cxx:32