X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMULTIPR%2FMULTIPR_PointOfField.hxx;fp=src%2FMULTIPR%2FMULTIPR_PointOfField.hxx;h=bcf34065443d8fbfbc45fa244f32a83d2add7422;hb=1a70ce903bbf905d02aaa8d559739db71854c68d;hp=907aab4b5ae5f0b74a82fa340ba9481996e7cc6f;hpb=cdd83520cc877ca3f8ef6dc3df0cbdff68b104cb;p=modules%2Fmultipr.git diff --git a/src/MULTIPR/MULTIPR_PointOfField.hxx b/src/MULTIPR/MULTIPR_PointOfField.hxx index 907aab4..bcf3406 100644 --- a/src/MULTIPR/MULTIPR_PointOfField.hxx +++ b/src/MULTIPR/MULTIPR_PointOfField.hxx @@ -20,7 +20,7 @@ extern "C" { - #include "med.h" + #include "med.h" } @@ -36,59 +36,59 @@ class PointOfField { public: - /** - * Builds an empty set of elements (default constructor). - */ - PointOfField() { reset(); } - - /** - * Constructor. - * \param pX x-coordinate of the point. - * \param pY y-coordinate of the point. - * \param pZ z-coordinate of the point. - * \param pVal value of the field at the given point. - */ - PointOfField(med_float pX, med_float pY, med_float pZ, med_float pVal) - { - mXYZ[0] = pX; - mXYZ[1] = pY; - mXYZ[2] = pZ; - mVal = pVal; - } - - /** - * Destructor. Removes everything. - */ - ~PointOfField() { reset(); } - - /** - * Resets this object in its state by default (empty). - */ - void reset() - { - mXYZ[0] = std::numeric_limits::quiet_NaN(); - mXYZ[1] = std::numeric_limits::quiet_NaN(); - mXYZ[2] = std::numeric_limits::quiet_NaN(); - mVal = std::numeric_limits::quiet_NaN(); - } - - /** - * Dumps any PointOfField to the given output stream. - * \param pOs any output stream. - * \param pP any PointOfField. - * \return the output stream pOs. - */ - friend std::ostream& operator<<(std::ostream& pOs, PointOfField& pP) - { - pOs << "[ " << pP.mXYZ[0] << " ; " << pP.mXYZ[1] << " ; " << pP.mXYZ[2] << "]: " << pP.mVal; - return pOs; - } + /** + * Builds an empty set of elements (default constructor). + */ + PointOfField() { reset(); } + + /** + * Constructor. + * \param pX x-coordinate of the point. + * \param pY y-coordinate of the point. + * \param pZ z-coordinate of the point. + * \param pVal value of the field at the given point. + */ + PointOfField(med_float pX, med_float pY, med_float pZ, med_float pVal) + { + mXYZ[0] = pX; + mXYZ[1] = pY; + mXYZ[2] = pZ; + mVal = pVal; + } + + /** + * Destructor. Removes everything. + */ + ~PointOfField() { reset(); } + + /** + * Resets this object in its state by default (empty). + */ + void reset() + { + mXYZ[0] = std::numeric_limits::quiet_NaN(); + mXYZ[1] = std::numeric_limits::quiet_NaN(); + mXYZ[2] = std::numeric_limits::quiet_NaN(); + mVal = std::numeric_limits::quiet_NaN(); + } + + /** + * Dumps any PointOfField to the given output stream. + * \param pOs any output stream. + * \param pP any PointOfField. + * \return the output stream pOs. + */ + friend std::ostream& operator<<(std::ostream& pOs, PointOfField& pP) + { + pOs << "[ " << pP.mXYZ[0] << " ; " << pP.mXYZ[1] << " ; " << pP.mXYZ[2] << "]: " << pP.mVal; + return pOs; + } public: - med_float mXYZ[3]; /**< 3D-position. */ - med_float mVal; /**< Value of the field on this point. */ - + med_float mXYZ[3]; /**< 3D-position. */ + med_float mVal; /**< Value of the field at this point. */ + }; // class PointOfField