Points&Forces (survey)
Software tools facilitating the task of surveying architecture
a_fcriteria.h
Go to the documentation of this file.
1 /*
2 Copyright 2010-2016 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_FCRITERIA_H_
17 #define _A_FCRITERIA_H_
18 
19 #include <string>
20 
21 class a_face;
22 
27 {
28 public:
29  a_fcriteria(): verysmall_(1.e-6) {}
31  static const std::string help();
33  virtual bool ok(const a_face * f) const {return true;}
35  virtual double penalty(const a_face * f) const {return 0;}
37  void verysmall(const double small) {verysmall_=small;}
38  double verysmall() {return verysmall_;}
39 
40 protected:
41  double verysmall_;
42 };
43 
44 #endif
45 
Definition: a_face.h:33
double verysmall()
Definition: a_fcriteria.h:38
virtual double penalty(const a_face *f) const
penalty value used in minimisation
Definition: a_fcriteria.h:35
void verysmall(const double small)
small value
Definition: a_fcriteria.h:37
double verysmall_
Definition: a_fcriteria.h:41
static const std::string help()
get information about the class
Definition: a_fcriteria.cxx:22
virtual bool ok(const a_face *f) const
return true if forces on the face are acceptable (derived class makes it interesting....
Definition: a_fcriteria.h:33