Hello!
<div><br></div><div>I have been trying to get a hold of some vtkPolyData from within the update function of a paraview view plugin but I am not understanding how to do it.</div><div>I have a dataset (vtkPolyData) in paraview that I add to the view by clicking the eye icon in the object list when the view is active and I now wonder how I can gain access to that data (I need the data so I can show a special representation of it in the view plugin).</div>
<div><br></div><div>As far as I (wrongly) understand it it works like this: (?)</div><div>In the vtkSM*ViewProxy there is a CreateDefaultRepresentation function that creates a vtkPVCompositeRepresentation and returns it. </div>
<div>This representation is then sent to the view in the function for the &#39;representationAdded&#39; signal which can then be used during the update() function but how do you get any useful data out of this representation that has been created and given?</div>
<div>Do I need to set up the vtkPVCompositeRepresentation in a correct way so that it has a reference to the data?</div><div><br></div><div>Can anyone lend a hand as to how you get useful data out of the representation sent to the view? Thanks.</div>
<div><br></div><div>BR/ Christoffer</div><div><br></div><div><br></div>