MOAB: Mesh Oriented datABase  (version 5.4.1)
MBMesquite::RemainingWeight Class Reference

c2_k = 1 - c1_k More...

#include <RemainingWeight.hpp>

+ Inheritance diagram for MBMesquite::RemainingWeight:
+ Collaboration diagram for MBMesquite::RemainingWeight:

Public Member Functions

 RemainingWeight (WeightCalculator *primary_weight)
virtual ~RemainingWeight ()
virtual double get_weight (PatchData &pd, size_t element, Sample sample, MsqError &err)
 Get target metric weight.

Private Attributes

WeightCalculatorprimaryWeight

Detailed Description

c2_k = 1 - c1_k

Definition at line 41 of file RemainingWeight.hpp.


Constructor & Destructor Documentation

Definition at line 47 of file RemainingWeight.hpp.

: primaryWeight( primary_weight ) {}

Definition at line 38 of file RemainingWeight.cpp.

{}

Member Function Documentation

double MBMesquite::RemainingWeight::get_weight ( PatchData pd,
size_t  element,
Sample  sample,
MsqError err 
) [virtual]

Get target metric weight.

Parameters:
pdThe current PatchData
elementThe index an element within the patch data.
sampleThe sample point in the element.

Implements MBMesquite::WeightCalculator.

Definition at line 40 of file RemainingWeight.cpp.

References MBMesquite::WeightCalculator::get_weight(), and primaryWeight.

{
    return 1.0 - primaryWeight->get_weight( pd, element, sample, err );
}

Member Data Documentation

List of all members.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines