Points&Forces (survey)
Software tools facilitating the task of surveying architecture
a_fcriteria_sig.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_SIG_H_
17 #define _A_FCRITERIA_SIG_H_
18 
19 #include "a_fcriteria.h"
20 
22 {
23 public:
24  a_fcriteria_sig(double smin, double smax, double phi): smin_(smin), smax_(smax), phi_(phi) {}
26  static const std::string help();
28  virtual bool ok(const a_face * f) const;
30  virtual double penalty(const a_face * f) const;
32  void max(double v) {max_ = v;}
34  double max() const {return max_;}
35 protected:
36  double smin_;
37  double smax_;
38  double phi_;
39 };
40 
41 #endif
42 
Definition: a_face.h:33
void max(double v)
set max excentricity
double max() const
get max excentricity
virtual bool ok(const a_face *f) const
return true if forces on the face are passing through the face
a_fcriteria_sig(double smin, double smax, double phi)
virtual double penalty(const a_face *f) const
return max excentricity if abs is higher than max (1. by default)
static const std::string help()
get information about the class