<div dir="ltr">Hi all, my name is Carlos, I am new in the ParaView developers World, very exited to start developing my application in the form of plugins of this great application we all love...<div><br></div><div>Right now I need some help...<div>

<br></div><div>I have successfully implemented my first filter/plugin, which is a "Labeler", The input is a polydata, and the output is a polydata with an extra celldata array containing labels for each cell that the user type in a customized pqObjectPanel (lets call the class LabelerOP). This custom panel consist of a qTableView with all the cells id and cells labels that the user can edit.</div>

<div><br></div><div>What I'm trying to do is to programmatically select the cell in the current view associated to the table raw selected by the user. I've prepared all the connection between the table signals and LabelerOP custom slot that will perform the selection, but the problem is that i don't know how to actually perform the selection...</div>

</div><div>I couldn't find a similar problem on the list, and I have been seen the code of the FindDataCreationFrame plugin, but i'm a litle confused with the paraview workflow...</div><div><br></div><div>What i think it must be done is the following:</div>

<div><br></div><div>// Get the selection manager</div><div><div>QPointer<pqSelectionManager> SelectionManager =</div><div>                qobject_cast<pqSelectionManager*>(</div><div>                pqApplicationCore::instance()->manager("SELECTION_MANAGER"));</div>

<div>// Get the polydata used as input to my filter</div><div>        pqPipelineSource* source =</div><div>                qobject_cast<pqPipelineSource*>(</div><div>                pqActiveObjects::instance().activeSource());</div>

<div><br></div><div>        pqOutputPort* port = source->getOutputPort(0);</div><div>        </div><div>// Set the selection, imagine i want to select the Cell with ID=0</div><div>port->setSelectionInput( /*Don't know how to set the selection*/)</div>

<div><br></div><div>// Make the selection on the selection manager</div><div>            SelectionManager->select(port);</div><div>// Render the polydata on all views?</div><div>port->renderAllViews();<br></div></div>

<div><br></div><div>I hope some kind soul can help me with my little problem, i apology for my english,</div><div>Thanks in advance</div><div>Carlos</div><div><br></div></div>