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