]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewLine.cpp
#3138 creaMaracasVisu Feature New Normal - branch vtk7itk4wx3
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / manualContour / manualViewLine.cpp
index 2e892e9ac9a6b1e4f2b34062df4a434353e0b5bf..031ac73237c171e0a4bde15981fae31df13058be 100644 (file)
@@ -41,7 +41,6 @@ manualViewLine::~manualViewLine()
 {
 }
 
-
 // ----------------------------------------------------------------------------
 manualViewLine * manualViewLine :: Clone()
 {
@@ -51,7 +50,6 @@ manualViewLine * manualViewLine :: Clone()
 }
 
 // ---------------------------------------------------------------------------
-
 void manualViewLine::CopyAttributesTo( manualViewLine * cloneObject)
 {
        // Fathers object
@@ -64,9 +62,7 @@ int manualViewLine::GetType() // virtual
        return 6;
 }
 
-
 // ----------------------------------------------------------------------------
-
 void manualViewLine::InitMove(int x, int y, int z)  // virtual
 {
        manualPoint *mp;
@@ -74,39 +70,31 @@ void manualViewLine::InitMove(int x, int y, int z)  // virtual
        double YY=y;
        double ZZ=z;
        TransfromCoordViewWorld(XX,YY,ZZ);
-
        if (_manContModel->GetSizeLstPoints()==2)
        {
                mp = _manContModel->GetManualPoint(0);
-               _dp0[0]= mp->GetX() - XX;
-               _dp0[1]= mp->GetY() - YY;
-               _dp0[2]= mp->GetZ();
-
+               _dp0[0] = mp->GetX() - XX;
+               _dp0[1] = mp->GetY() - YY;
+               _dp0[2] = mp->GetZ();
                mp = _manContModel->GetManualPoint(1);
-               _dp1[0]= mp->GetX() - XX;
-               _dp1[1]= mp->GetY() - YY;
-               _dp1[2]= mp->GetZ();
-
-       }
+               _dp1[0] = mp->GetX() - XX;
+               _dp1[1] = mp->GetY() - YY;
+               _dp1[2] = mp->GetZ();
+       } // if
 }
 
-
 // ----------------------------------------------------------------------------
 void manualViewLine::MoveContour(int x, int y, int z) // virtual 
 {
        manualPoint *mp;
-       double XX=x;
-       double YY=y;
-       double ZZ=z;
+       double          XX = x;
+       double          YY = y;
+       double          ZZ = z;
        TransfromCoordViewWorld(XX,YY,ZZ);
-
        mp = _manContModel->GetManualPoint(0);
        mp->SetPoint(_dp0[0]+XX,_dp0[1]+YY,_dp0[2]);
-
        mp = _manContModel->GetManualPoint(1);
        mp->SetPoint(_dp1[0]+XX,_dp1[1]+YY,_dp0[2]);
-
-
        UpdateViewPoint(0);
        UpdateViewPoint(1);
 }