Commit 713d7a08 authored by berenger-bramas's avatar berenger-bramas
Browse files

FMB in progress

(M2L L2L ...)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/scalfmm/scalfmm/trunk@12 2616d619-271b-44dc-8df4-d4a8f33a7222
parent 7ad5f4c5
#ifndef FFMAPARTICULE_HPP
#define FFMAPARTICULE_HPP
// /!\ Please, you must read the license at the bottom of this page
#include "FBasicParticule.hpp"
/**
* @author Berenger Bramas (berenger.bramas@inria.fr)
* @class FFmaParticule
* Please read the license
*
* This class defines a basic particule used for examples.
*/
class FFmaParticule : public FBasicParticule{
protected:
double value; //< Particule's fma data
public:
/**
* Constructor with a position
* @param inX x position
* @param inY y position
* @param inZ z position
* @param inValue particule value
*/
FFmaParticule(const double inX, const double inY, const double inZ, const double inValue)
: FBasicParticule(inX,inY,inZ), value(inValue) {
}
/**
* Constructor with a position object
* @param inPos particule position
*/
FFmaParticule(const F3DPosition& inPos) : FBasicParticule(inPos), value(0){
}
/** Default constructor */
FFmaParticule() : value(0) {
}
/** Default destructor */
virtual ~FFmaParticule(){
}
/**
* From the Fmb needed
* @return the value of the current cell
*/
double getValue() const {
return this->value;
}
/**
* This function is needed by the fma loader to fill the current particule
* @param inValue the data given by the fma loader
*/
void setValue(const double inValue) {
this->value = inValue;
}
};
#endif //FFMAPARTICULE_HPP
// [--LICENSE--]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment