Version: 5.1.6

multipr.DecimationFilterTreshold Class Reference

#include <MULTIPR_DecimationFilter.hxx>

Inheritance diagram for multipr.DecimationFilterTreshold:
Inheritance graph

Public Member Functions

 DecimationFilterTreshold ()
 Builds an empty DecimationFilterTreshold (default constructor).
virtual ~DecimationFilterTreshold ()
 Destructor.
virtual Meshapply (Mesh *pMesh, const char *pArgv, const char *pNameNewMesh)
 Creates a new Mesh by decimating the given Mesh with this DecimationFilter.
 DecimationFilterTreshold (const DecimationFilterTreshold &)
DecimationFilterTresholdoperator= (const DecimationFilterTreshold &)
bool operator== (const DecimationFilterTreshold &)

Constructor & Destructor Documentation

multipr.DecimationFilterTreshold::DecimationFilterTreshold (  ) 

Builds an empty DecimationFilterTreshold (default constructor).

multipr.DecimationFilterTreshold::~DecimationFilterTreshold (  )  [virtual]

Destructor.

Removes everything.

multipr.DecimationFilterTreshold.DecimationFilterTreshold ( const DecimationFilterTreshold  ) 

Member Function Documentation

Mesh * multipr.DecimationFilterTreshold::apply ( Mesh pMesh,
const char *  pArgv,
const char *  pNameNewMesh 
) [virtual]

Creates a new Mesh by decimating the given Mesh with this DecimationFilter.

For each element Keep this element if all its points (related to a field) have a value > threshold.

Parameters:
pMesh any mesh to be decimated; must not be NULL.
pArgv all the arguments of the filter as a string; must not be NULL. for GradAvg, expected "fieldName fieldIt threshold radius boxing" (5 parameters).
pNameNewMesh name of the decimated mesh; must not be NULL.
Returns:
the decimated mesh.

Implements multipr.DecimationFilter.

References multipr.Mesh.createFromSetOfElements(), multipr.eMaxMedMesh, multipr.Elements.extractSubSetFromNodes(), MED_test2.field, Med_Gen_test.fieldName, multipr.Mesh.getAllPointsOfField(), multipr.Mesh.getElements(), multipr.Mesh.getFieldByName(), multipr.Mesh.getNodes(), multipr.Mesh.getNumberOfElements(), multipr.Nodes.getNumberOfNodes(), multipr.Field.getNumberOfTimeSteps(), multipr.Mesh.getProfil(), multipr.Field.getProfil(), multipr.Profil.getSet(), multipr.Field.isFieldOnNodes(), MED_TAILLE_NOM, multipr.PointOfField.mVal, NULL, and testMEDMEM.ret.

DecimationFilterTreshold& multipr.DecimationFilterTreshold.operator= ( const DecimationFilterTreshold  ) 

Reimplemented from multipr.DecimationFilter.

bool multipr.DecimationFilterTreshold.operator== ( const DecimationFilterTreshold  ) 

Reimplemented from multipr.DecimationFilter.