]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Prepare for KitWare duc/Viewerunique_2
authorDUC ANH HOANG <dh77501n@dsp1043837>
Thu, 1 Aug 2024 13:01:04 +0000 (15:01 +0200)
committerDUC ANH HOANG <dh77501n@dsp1043837>
Thu, 1 Aug 2024 13:01:04 +0000 (15:01 +0200)
src/SPV3D/SPV3D_CADSelection.cxx

index 7a67475e0854866317abb0a5ec124c927cede686..a4278490dcaa4362d0a6f4fc3eac89c036ce97f5 100644 (file)
@@ -521,9 +521,22 @@ std::set<std::string> SPV3D_CADSelection::GetSelectedObEntry()
 
 void SPV3D_CADSelection::SetSelectionFromEntrySet(std::set<std::string> EntryList)
 {
-  std::cout <<"EntryList to be selected provided by client: ";
+  // Solid Ids list to be provided to server
+  std::vector<vtkIdType> SolidIds;
   for (std::string entry : EntryList)
-    std::cout << SPV3D_Prs::FromEntryToVtkId(entry.c_str()) << " ";
-  std::cout << std::endl;
-  std::cout <<"We need send the selection request to server here!!!!!" <<std::endl;
+    SolidIds.push_back( SPV3D_Prs::FromEntryToVtkId(entry.c_str()) );
+
+  if (this->Representation == nullptr)
+  {
+    qWarning() << "There is no pqDataRepresentation";
+  }
+    return ;
+  vtkSMProxy* proxyRepresentation = this->Representation->getProxy();
+  if (!proxyRepresentation)
+  {
+    qWarning()<< "There is no representation";
+  }
+  //TODO:
+  // Send SolidIds vector<vtkIdType> to server
+  // On server update the Selection with this SolidIds
 }
\ No newline at end of file