org.keridwen.modelling.mesh.inspector.analysers
Class CellVolumeAnalyser

java.lang.Object
  extended by org.keridwen.modelling.mesh.inspector.analysers.MeshAnalyser
      extended by org.keridwen.modelling.mesh.inspector.analysers.CellVolumeAnalyser
All Implemented Interfaces:
Comparable, MeshAnalyserInterface

public class CellVolumeAnalyser
extends MeshAnalyser
implements MeshAnalyserInterface


Field Summary
 
Fields inherited from class org.keridwen.modelling.mesh.inspector.analysers.MeshAnalyser
ANALYSER_TYPE, analysis, DATA_ARRAY_NAME, HISTROGRAM_ENABLE, inputParameters, mesh, name, outputParameters
 
Constructor Summary
CellVolumeAnalyser(com.artenum.penelope.mesh.interfaces.Mesh mesh)
           
 
Method Summary
 Object analyseAndBuildVtkDataSet()
          return a vtk data set with the quality value mapped on it.
 GenericAnalysis analyseMesh()
          perform the analysis of the mesh and return the result under the form of an analysis object.
 int compareTo(Object o)
           
 double getTotalVolume()
           
 GenericAnalysis probeCell(int meshId)
          Probe (i.e analyse) a cell specified by its Id.
 
Methods inherited from class org.keridwen.modelling.mesh.inspector.analysers.MeshAnalyser
computeDistributionFunction, getAnalysis, getInputParameters, getMesh, getName, getOutputParameters, printAnalysis, setAnalysis, setInputParameters, setMesh, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.keridwen.modelling.mesh.inspector.interfaces.MeshAnalyserInterface
getAnalysis, getOutputParameters, printAnalysis, setAnalysis, setInputParameters, setMesh
 

Constructor Detail

CellVolumeAnalyser

public CellVolumeAnalyser(com.artenum.penelope.mesh.interfaces.Mesh mesh)
Method Detail

analyseMesh

public GenericAnalysis analyseMesh()
perform the analysis of the mesh and return the result under the form of an analysis object. The corresponding dataArray has the name defined in DATA_ARRAY_NAME.

Specified by:
analyseMesh in interface MeshAnalyserInterface
Overrides:
analyseMesh in class MeshAnalyser
Returns:
This method should return the result of the analysis under an object implementing the GenericAnalysis interface.

getTotalVolume

public double getTotalVolume()

analyseAndBuildVtkDataSet

public Object analyseAndBuildVtkDataSet()
Description copied from class: MeshAnalyser
return a vtk data set with the quality value mapped on it.

Specified by:
analyseAndBuildVtkDataSet in interface MeshAnalyserInterface
Overrides:
analyseAndBuildVtkDataSet in class MeshAnalyser
Returns:
a vtkDataSet of the analysed mesh with the quality factor.

probeCell

public GenericAnalysis probeCell(int meshId)
Description copied from interface: MeshAnalyserInterface
Probe (i.e analyse) a cell specified by its Id.

Specified by:
probeCell in interface MeshAnalyserInterface
Parameters:
meshId - of the cell.
Returns:
the quality factor.

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable


Copyright © 2013 Artenum. All Rights Reserved.