]> OCCT Git - occt.git/commitdiff
0028281: Draw Harness - remove unused command vperf
authorkgv <kgv@opencascade.com>
Sun, 25 Dec 2016 17:07:39 +0000 (20:07 +0300)
committerapn <apn@opencascade.com>
Thu, 29 Dec 2016 11:33:52 +0000 (14:33 +0300)
dox/user_guides/draw_test_harness/draw_test_harness.md
src/ViewerTest/ViewerTest.cxx

index 7884b813ccaa4728eb4b3cfd3ab302b3cbe2991e..fae482f325c9f8ed8462be86abe414e87815d184 100644 (file)
@@ -1964,26 +1964,6 @@ vsensera
 
 Erases active entities. 
 
-@subsubsection occt_draw_4_3_22 vperf
-
-Syntax:                  
-~~~~~
-vperf shapename 1/0 (Transformation/Loacation) 1/0 (Primitives sensibles ON/OFF)
-~~~~~ 
-
-Tests the animation of an object along a predefined trajectory. 
-
-**Example:** 
-~~~~~
-vinit 
-box b 10 10 10 
-psphere s 20 
-vdisplay b s 
-vfit 
-vsetdispmode 0 
-vperf b 1 1
-~~~~~
 @subsubsection occt_draw_4_3_23 vr
 
 Syntax:                  
index c6725bf7e7b147d9628b044af52a2384018b73c0..cdd4b33656541ca9c43cf44abee6ef4d71516cf8 100644 (file)
@@ -4025,75 +4025,6 @@ static int VUpdate (Draw_Interpretor& /*theDi*/, Standard_Integer theArgsNb, con
   return 0;
 }
 
-//==============================================================================
-//function : VPerf
-//purpose  : Test the annimation of an object along a
-//           predifined trajectory
-//Draw arg : vperf ShapeName 1/0(Transfo/Location) 1/0(Primitives sensibles ON/OFF)
-//==============================================================================
-
-static int VPerf(Draw_Interpretor& di, Standard_Integer , const char** argv) {
-
-  OSD_Timer myTimer;
-  Standard_Real Step=4*M_PI/180;
-  Standard_Real Angle=0;
-
-  Handle(AIS_InteractiveObject) aIO;
-  if (GetMapOfAIS().IsBound2(argv[1]))
-    aIO = Handle(AIS_InteractiveObject)::DownCast(GetMapOfAIS().Find2(argv[1]));
-  if (aIO.IsNull())
-    return 1;
-
-  Handle(AIS_Shape) aShape = Handle(AIS_Shape)::DownCast(aIO);
-
-  myTimer.Start();
-
-  if (Draw::Atoi(argv[3])==1 ) {
-    di<<" Primitives sensibles OFF\n";
-    TheAISContext()->Deactivate(aIO);
-  }
-  else {
-    di<<" Primitives sensibles ON\n";
-  }
-  // Movement par transformation
-  if(Draw::Atoi(argv[2]) ==1) {
-    di<<" Calcul par Transformation\n";
-    for (Standard_Real myAngle=0;Angle<10*2*M_PI; myAngle++) {
-
-      Angle=Step*myAngle;
-      gp_Trsf myTransfo;
-      myTransfo.SetRotation(gp_Ax1(gp_Pnt(0,0,0),gp_Dir(0,0,1) ) ,Angle );
-      TheAISContext()->SetLocation(aShape,myTransfo);
-      TheAISContext() ->UpdateCurrentViewer();
-
-    }
-  }
-  else {
-    di<<" Calcul par Locations\n";
-    gp_Trsf myAngleTrsf;
-    myAngleTrsf.SetRotation(gp_Ax1(gp_Pnt(0,0,0),gp_Dir(0,0,1) ), Step  );
-    TopLoc_Location myDeltaAngle (myAngleTrsf);
-    TopLoc_Location myTrueLoc;
-
-    for (Standard_Real myAngle=0;Angle<10*2*M_PI; myAngle++) {
-
-      Angle=Step*myAngle;
-      myTrueLoc=myTrueLoc*myDeltaAngle;
-      TheAISContext()->SetLocation(aShape,myTrueLoc );
-      TheAISContext() ->UpdateCurrentViewer();
-    }
-  }
-  if (Draw::Atoi(argv[3])==1 ){
-    // On reactive la selection des primitives sensibles
-    TheAISContext()->Activate(aIO,0);
-  }
-  a3DView() -> Redraw();
-  myTimer.Stop();
-  di<<" Temps ecoule \n";
-  myTimer.Show();
-  return 0;
-}
-
 //==============================================================================
 //function : VShading
 //purpose  : Sharpen or roughten the quality of the shading
@@ -5795,11 +5726,6 @@ void ViewerTest::Commands(Draw_Interpretor& theCommands)
       "vsensera : erase active entities",
       __FILE__,VClearSensi,group);
 
-  theCommands.Add("vperf",
-      "vperf: vperf  ShapeName 1/0(Transfo/Location) 1/0(Primitives sensibles ON/OFF)"
-      "\n\t\t: Tests the animation of an object along a predefined trajectory.",
-      __FILE__,VPerf,group);
-
   theCommands.Add("vsetshading",
       "vsetshading  : vsetshading name Quality(default=0.0008) "
       "\n\t\t: Sets deflection coefficient that defines the quality of the shape representation in the shading mode.",