]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
fix for selection
authorenk <enk@opencascade.com>
Fri, 20 Apr 2007 13:09:19 +0000 (13:09 +0000)
committerenk <enk@opencascade.com>
Fri, 20 Apr 2007 13:09:19 +0000 (13:09 +0000)
src/OBJECT/VISU_Actor.cxx

index 36b2e2d358aae301179b4179406f434ee52cfa6b..06c487b3675362a7b32f1e0aab032c9d09444155 100644 (file)
@@ -70,7 +70,7 @@ using namespace std;
 static int MYVTKDEBUG = 0;
 
 #ifdef _DEBUG_
-static int MYDEBUG = 1;
+static int MYDEBUG = 0;
 #else
 static int MYDEBUG = 0;
 #endif
@@ -411,29 +411,16 @@ vtkIdType
 VISU_Actor
 ::GetNodeObjId(vtkIdType theID)
 {
-  cout << "GetNodeObjId("<<theID<<")"<<endl;
+  if(MYDEBUG) cout << "GetNodeObjId("<<theID<<")"<<endl;
   return VISU::GetNodeObjID(this->GetInput(),theID);
-//   if(myIsVTKMapping)
-//     return Superclass::GetNodeObjId(theID);
-
-//   vtkIdType anID = myGeomFilter->GetNodeObjId(theID);
-
-//   if(myIsShrunk)
-//    anID = myShrinkFilter->GetNodeObjId(anID);
-
-//   return GetCurrentPL()->GetNodeObjID(anID);
 }
 
 vtkIdType
 VISU_Actor
 ::GetNodeVTKID(vtkIdType theID)
 {
-  cout << "GetNodeVTKID("<<theID<<")"<<endl;
+  if(MYDEBUG) cout << "GetNodeVTKID("<<theID<<")"<<endl;
   return VISU::GetNodeVTKID(this->GetInput(),theID);
-//   if(myIsVTKMapping)
-//     return theID;
-
-//   return GetCurrentPL()->GetNodeVTKID(theID);
 }
 
 vtkFloatingPointType*
@@ -452,24 +439,15 @@ vtkIdType
 VISU_Actor
 ::GetElemObjId(vtkIdType theID)
 {
-  cout << "GetElemObjId("<<theID<<")"<<endl;
+  if(MYDEBUG) cout << "GetElemObjId("<<theID<<")"<<endl;
   return VISU::GetElemObjID(this->GetInput(),theID);
-//   if(myIsVTKMapping)
-//     return Superclass::GetElemObjId(theID);
-
-//   vtkIdType anID = myGeomFilter->GetElemObjId(theID);
-
-//   if(myIsShrunk)
-//    anID = myShrinkFilter->GetElemObjId(anID);
-
-//   return GetCurrentPL()->GetElemObjID(anID);
 }
 
 vtkIdType
 VISU_Actor
 ::GetElemVTKID(vtkIdType theID)
 {
-  cout << "GetElemVTKID("<<theID<<")"<<endl;
+  if(MYDEBUG) cout << "GetElemVTKID("<<theID<<")"<<endl;
   vtkIdType theId = VISU::GetElemVTKID(this->GetInput(),theID,VISU::CELL_ENTITY);
   if(theId > -1)
     return theId;
@@ -478,10 +456,6 @@ VISU_Actor
     return theId;
   theId = VISU::GetElemVTKID(this->GetInput(),theID,VISU::EDGE_ENTITY);
   return theId;
-//   if(myIsVTKMapping)
-//     return theID;
-
-//   return GetCurrentPL()->GetElemVTKID(theID);
 }
 
 vtkCell*