29 #ifndef __ALGEBRAIC_METRICS_2_H__
30 #define __ALGEBRAIC_METRICS_2_H__
43 friend std::ostream &
operator<<(std::ostream &,
67 virtual double maxValue()
const {
return 1.0; }
70 virtual double minValue()
const {
return 0.0; }
104 virtual void compute(
double atts[])
const;
121 virtual void compute(
double atts[])
const;
141 virtual void compute(
double atts[])
const;
161 virtual void compute(
double atts[])
const;
178 virtual void compute(
double atts[])
const;
Size_Skew_Metric_2(double r_area)
Construct Size_Skew_Metric_2.
virtual double maxValue() const
The maximum value for this metric.
An adaptor for enumerating node IDs of an element.
friend std::ostream & operator<<(std::ostream &, const Alg_Metric_Base_2 &)
double compute_shape() const
Compute the shape metric.
void set_ref_area(double r_area)
modify the reference area for this element.
virtual void compute(double atts[]) const
Calculate the shape metric value.
double compute_skew() const
Compute the skew metric.
virtual void initialize(Vector_3< double > n[], int type)
Initialize a 2D Algebraic Metric.
virtual void compute(double atts[]) const
Calculate the metric value.
2D Size-Skew Metric Class
virtual void compute(double atts[]) const
Calculate the metric value.
2D Size-Shape Metric Class
2D Algebraic Metric Base Class
Shape_Metric_2()
Initialize a 2D Shape metric.
virtual void compute(double atts[]) const
Calculate the metric value.
#define MOP_END_NAMESPACE
Size_Shape_Metric_2(double r_area)
Construct a Size_Shape_Metric_2.
double compute_size(double ref_area=1.) const
Compute the size metric.
#define MOP_BEGIN_NAMESPACE
virtual double minValue() const
The minimum value for this metric.
The Metric Base Class, from which algebraic and geometric metric clases are derived.
Size_Metric_2(double r_area)
Construct a 2D Size metric.
virtual ~Alg_Metric_Base_2()
Virtual Destructor.
Alg_Metric_Base_2()
Constructor.
virtual void compute(double atts[]) const
Calculate the shape metric value.