SCIRun  5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Attributes | List of all members
GetFieldBoundaryAlgo Class Reference

#include <GetFieldBoundaryAlgo.h>

Inheritance diagram for GetFieldBoundaryAlgo:
AlgorithmBase AlgorithmParameterList AlgorithmLogger AlgorithmStatusReporter AlgorithmInterface LegacyLoggerInterface ProgressReporter HasId< IdType, IdGenerator >

Public Member Functions

 GetFieldBoundaryAlgo ()
 
bool run (FieldHandle input, FieldHandle &output, Datatypes::MatrixHandle &mapping) const
 With mapping. More...
 
bool run (FieldHandle input, FieldHandle &output)
 Without mapping. More...
 
AlgorithmOutput run_generic (const AlgorithmInput &input) const
 
- Public Member Functions inherited from AlgorithmBase
virtual ~AlgorithmBase ()
 
- Public Member Functions inherited from AlgorithmParameterList
 AlgorithmParameterList ()
 
bool set (const AlgorithmParameterName &key, const AlgorithmParameter::Value &value)
 
const AlgorithmParameterget (const AlgorithmParameterName &key) const
 
bool set_option (const AlgorithmParameterName &key, const std::string &value)
 
bool get_option (const AlgorithmParameterName &key, std::string &value) const
 
std::string get_option (const AlgorithmParameterName &key) const
 
bool check_option (const AlgorithmParameterName &key, const std::string &value) const
 
virtual bool keyNotFoundPolicy (const AlgorithmParameterName &key)
 
- Public Member Functions inherited from AlgorithmInterface
virtual ~AlgorithmInterface ()
 
- Public Member Functions inherited from HasId< IdType, IdGenerator >
 HasId ()
 
IdType id () const
 
- Public Member Functions inherited from AlgorithmLogger
 AlgorithmLogger ()
 
 ~AlgorithmLogger ()
 
void setLogger (Core::Logging::LoggerHandle logger)
 
virtual void error (const std::string &error) const
 functions for the algorithm, so it can forward errors if needed More...
 
virtual void warning (const std::string &warning) const
 
virtual void remark (const std::string &remark) const
 
virtual void status (const std::string &status) const
 
- Public Member Functions inherited from LegacyLoggerInterface
virtual ~LegacyLoggerInterface ()
 
- Public Member Functions inherited from AlgorithmStatusReporter
 AlgorithmStatusReporter ()
 
 ~AlgorithmStatusReporter ()
 
virtual void report_start (const std::string &tag) const
 
virtual void report_end () const
 
virtual void update_progress (double percent) const
 
void setUpdaterFunc (UpdaterFunc func)
 
UpdaterFunc getUpdaterFunc () const
 
- Public Member Functions inherited from ProgressReporter
virtual ~ProgressReporter ()
 
template<typename T1 , typename T2 >
void update_progress_max (T1 current, T2 max) const
 

Static Public Attributes

static AlgorithmOutputName BoundaryField
 
static AlgorithmOutputName MappingMatrix
 

Additional Inherited Members

- Public Types inherited from HasId< IdType, IdGenerator >
typedef IdType id_type
 
- Public Types inherited from AlgorithmStatusReporter
typedef boost::function< void(double)> UpdaterFunc
 
- Protected Member Functions inherited from AlgorithmParameterList
void dumpAlgoState () const
 
void addParameter (const AlgorithmParameterName &key, const AlgorithmParameter::Value &defaultValue)
 
void add_option (const AlgorithmParameterName &key, const std::string &defval, const std::string &options)
 

Constructor & Destructor Documentation

Member Function Documentation

bool run ( FieldHandle  input,
FieldHandle output,
Datatypes::MatrixHandle mapping 
) const

With mapping.

bool run ( FieldHandle  input,
FieldHandle output 
)

Without mapping.

A copy of the algorithm without creating the mapping matrix. Need this for the various algorithms that only use the boundary to project nodes on.

Define types we need for mapping

Check whether we have an input field

Figure out what the input type and output type have to be

We do not yet support Quadratic and Cubic Meshes here

Figure out which type of field the output is:

Check whether we could make a conversion

Create the output field

Get the virtual interfaces:

These are all virtual iterators, virtual index_types and array_types

This algorithm was copy from the original dynamic compiled version and was slightly adapted to work here:

Copying values

AlgorithmOutput run_generic ( const AlgorithmInput input) const
virtual

Implements AlgorithmInterface.

Member Data Documentation

AlgorithmOutputName BoundaryField
static
AlgorithmOutputName MappingMatrix
static

The documentation for this class was generated from the following files: