From 8ffd48aa795734af7a5b891c07bab436129bba7e Mon Sep 17 00:00:00 2001 From: DUC ANH HOANG Date: Thu, 1 Aug 2024 15:01:04 +0200 Subject: [PATCH] Prepare for KitWare --- src/SPV3D/SPV3D_CADSelection.cxx | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/src/SPV3D/SPV3D_CADSelection.cxx b/src/SPV3D/SPV3D_CADSelection.cxx index 7a67475e0..a4278490d 100644 --- a/src/SPV3D/SPV3D_CADSelection.cxx +++ b/src/SPV3D/SPV3D_CADSelection.cxx @@ -521,9 +521,22 @@ std::set SPV3D_CADSelection::GetSelectedObEntry() void SPV3D_CADSelection::SetSelectionFromEntrySet(std::set EntryList) { - std::cout <<"EntryList to be selected provided by client: "; + // Solid Ids list to be provided to server + std::vector 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!!!!!" <Representation == nullptr) + { + qWarning() << "There is no pqDataRepresentation"; + } + return ; + vtkSMProxy* proxyRepresentation = this->Representation->getProxy(); + if (!proxyRepresentation) + { + qWarning()<< "There is no representation"; + } + //TODO: + // Send SolidIds vector to server + // On server update the Selection with this SolidIds } \ No newline at end of file -- 2.39.2