Salome HOME
*** empty log message ***
[modules/multipr.git] / src / MULTIPR / MULTIPR_PointOfField.hxx
index 907aab4b5ae5f0b74a82fa340ba9481996e7cc6f..bcf34065443d8fbfbc45fa244f32a83d2add7422 100644 (file)
@@ -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<med_float>::quiet_NaN();
-               mXYZ[1] = std::numeric_limits<med_float>::quiet_NaN();
-               mXYZ[2] = std::numeric_limits<med_float>::quiet_NaN();
-               mVal    = std::numeric_limits<med_float>::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<med_float>::quiet_NaN();
+        mXYZ[1] = std::numeric_limits<med_float>::quiet_NaN();
+        mXYZ[2] = std::numeric_limits<med_float>::quiet_NaN();
+        mVal    = std::numeric_limits<med_float>::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