SCIRun  5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
MapFieldDataFromNodeToElem.cc File Reference
#include <Core/Algorithms/Legacy/Fields/Mapping/MapFieldDataFromNodeToElem.h>
#include <Core/Datatypes/DenseMatrix.h>
#include <Core/Datatypes/Legacy/Field/FieldInformation.h>
#include <Core/Algorithms/Base/AlgorithmPreconditions.h>
#include <Core/Algorithms/Base/AlgorithmVariableNames.h>
#include <Core/GeometryPrimitives/Vector.h>
#include <Core/Datatypes/Legacy/Field/Field.h>
#include <Core/Datatypes/Legacy/Field/VField.h>
#include <Core/Datatypes/Legacy/Field/VMesh.h>

Functions

template<class DATA >
bool MapFieldDataFromNodeToElemT (const MapFieldDataFromNodeToElemAlgo *algo, FieldHandle &input, FieldHandle &output)
 This is the basic algorithm behind the mapping algorithm. More...
 

Function Documentation

bool MapFieldDataFromNodeToElemT ( const MapFieldDataFromNodeToElemAlgo algo,
FieldHandle input,
FieldHandle output 
)

This is the basic algorithm behind the mapping algorithm.

Internal function to this algorithm: no need for this function to be public. It is called from the algorithm class only.

Get the method the user selected. Since we do a check of valid entries when then user sets the algorithm, we can assume it is one of the specified ones

Get pointers to the virtual interfaces of the fields We need these to obtain the data values

Make sure that the data vector has the proper length