[Paraview] Paraview question

Berk Geveci berk.geveci at kitware.com
Sun Oct 26 21:37:55 EDT 2008


vtkRectilinearGrid* output;
output->SetDimensions(x,y,z);
output->SetXCoordinates(xcoords);
vtkFloatArray* a1 = vtkFloatArray:New();
a1->SetName("pressure");
output->GetPointData()->AddArray(a1);

vtkFloatArray* a2 = vtkFloatArray:New();
a2->SetName("temperature");
output->GetPointData()->AddArray(a2);

...

-berk

On Sun, Oct 26, 2008 at 10:15 AM, Satheesh Maheswaran
<smaheswa at gmail.com> wrote:
> Dear all,
>
> I am trying to write a reader for an in-house file format as a plugin.
>  I have managed to write
> a basic plugin to display some data in a rectilinear grid following
> some of the examples.  Our file format
> can hold more than one variable (pressure/temperature etc) similar to hd5.
>
> At the moment, my data is displayed using code shown below
>
> vtkRectilinearGrid* output;
> output->SetDimensions(x,y,z);
> output->SetXCoordinates(xcoords);
> output->GetPointData()->SetScalars(scalars);
>
> Can some one tell me, how i can display all of the known variables in
> the file on the display menu (where
> all items are usually loaded up - where you see filters that you chose
> to apply to the data for example).
> I would like the data to be displayed when the user selects a
> particular variable in the same way as applying a filter for example?
> Some pointers or example source codes will be of great help.
>
> Thanks,
> --
> Satheesh
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>


More information about the ParaView mailing list