[Paraview-developers] Selective sending of Field data to Paraview VCR based on user request
Cory Quammen
cory.quammen at kitware.com
Fri Aug 12 11:50:28 EDT 2016
Sumeet,
Please include the list with your reply so that others may participate in
the conversation.
It is possible at the reader level to specify which arrays are loaded
through the reader properties panel. See the VTU and Exodus II file readers
in ParaView, for example. However, any unloaded arrays will not be
displayed in the Color By combobox.
At present, I do not believe it is possible to do what you are asking
without some significant source code changes within ParaView. For example,
support for consumers to request subsets of data arrays from producers,
like your reader, would need to be added. That's a fairly heavy lift.
Your best bet for now is probably to support selecting which arrays are
loaded by your reader. See the xml description for
XMLUnstructuredGridReaderCore in
paraview/ParaViewCore/ServerManager/SMApplication/Resources/readers.xml
for an example of how to set this up.
HTH,
Cory
On Wed, Aug 10, 2016 at 1:05 PM, sumeet kumar <sumeet.kumar507 at gmail.com>
wrote:
> Hey Cory,
>
> Currently I am doing this from my reader.
>
> Node_Mesh->GetPointData()->AddArray(Generalized_Displacements);
> Node_Mesh->GetPointData()->AddArray(Node_Tag);
> Node_Mesh->GetCellData()->AddArray(Element_Tag);
> Node_Mesh->GetCellData()->AddArray(Material_Tag);
> Node_Mesh->GetPointData()->AddArray(Elastic_Strain);
> Node_Mesh->GetPointData()->AddArray(Plastic_Strain);
> Node_Mesh->GetPointData()->AddArray(Stress);
> Which means I am sending all field data
> *Generalized_Displacemnts , Node_Tag, Element_Tag, Material_tag,
> Elastic_Strain ........ *
> Now suppose, in Paraview, user selects field_data *Generalized
> Displacements *.to visualize.
>
> Currently, I am sending all the field data associated with that mesh as
> stated above. In order to be efficient, I want to send only
> *Generalized_Displacements* in the next time step.
> But at the same time, I want that the user should be able to see all the
> field datasets, so that if he changes his mind and select other field
> dataset to visualize, I would get a request and send the same data.
>
> In other words, I want to respond to the events when (the choice of field
> data to visualize is changed), so that i can send that field data only.
> But, The user should be able to view other field data options, so that
> they can change the request what they want to visualize.
> Basically, I want to respond to this event as shown below
>
> [image: Inline image 2]
>
>
> Sumeet
>
>
> On Wed, Aug 10, 2016 at 8:24 AM, Cory Quammen <cory.quammen at kitware.com>
> wrote:
>
>> Sumeet,
>>
>> Could you clarify what you mean by "sending data to ParaView"?
>>
>> Thanks,
>> Cory
>>
>> On Wed, Aug 10, 2016 at 2:58 AM, sumeet kumar <sumeet.kumar507 at gmail.com>
>> wrote:
>>
>>> Hello all,
>>>
>>> I have a unstructured mesh with many fields like Displacements,
>>> velocity, Stresses, Strains, Material no.. etc either on nodes or on cell.
>>> Currently, I associate all the field data arrays with my unstructured mesh
>>> and send it to ParaView for visualization and it works great..
>>>
>>> But, now, since I have many field data and the mesh can be also very
>>> large. Sending all data at once would be very *slow and in-efficient.*
>>>
>>> What I want is the following:
>>>
>>> - I want that based on user request I should send attach that field
>>> data only. For example in the ParaView, if the User selects Displacements
>>> to Visualize, I should some how know that and only send displacements and
>>> similarly.
>>> - Also, I want that the user should be able to see all the different
>>> field data options I have, so that he can select and ask for as it is done
>>> normally .
>>> - I also, want that if the user selects a filter like, *wrap by
>>> vector *with displacements and chooses to see stress, ParaView
>>> should generate requests for *displacements and stresses so that I
>>> can send them.*
>>>
>>> I would be really thankfull, if someone could answer my queries.
>>>
>>>
>>> Sumeet Kumar Sinha
>>> Graduate Student
>>> Phone: (+1) <%28%2B91%29%209910516219>5306018271
>>> Website : http://www.sumeetsinha.in/
>>>
>>
>>
>>
>> --
>> Cory Quammen
>> R&D Engineer
>> Kitware, Inc.
>>
>
>
>
> --
>
> Sumeet Kumar Sinha
> Graduate Student
> Phone: (+1) <%28%2B91%29%209910516219>5306018271
> Website : http://www.sumeetsinha.in/
>
--
Cory Quammen
R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20160812/4a25dda6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 46611 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20160812/4a25dda6/attachment-0001.png>
More information about the Paraview-developers
mailing list