[Paraview] New data object types

Berk Geveci berk.geveci at kitware.com
Mon Jan 28 16:41:41 EST 2008


Paul,

> Thank you for your reply.  I need to extend in two places.  Firstly, my reader is taking an input file, running it through our meshing software and loading the structured mesh that is created into paraview.  The program also creates other files, e.g. one that gives the boundaries for that structured mesh.  I was hoping to store that addition information (like where the file is stored) for some of my other filters to use.  Instead, would it be possible for me to pass this string in another output from the reader so that I could still use the other filters associated with vtkMultiBlockDataSet as well?

You can do that now. Simply store it in the FieldData of the data
object. You will have to create a FieldData and assign it to the
output with SetFieldData(). In the field data, you can store an
arbitrary number of array of arbitrary length. For example, you can
store a string array that stores the name of the file. In the future,
you will be able to store meta-data like this using the Information
object as well.

> The other case is where I would like to name the groups in vtkMultiGroupDataSet - that way I could have a filter that displayed the names in the object panel when selecting what to view.  This one might be more feasible to include in paraview.  What do you think?

This is coming soon.

-berk

>
> -----Original Message-----
> From: Berk Geveci [mailto:berk.geveci at kitware.com]
> Sent: 28 January 2008 18:05
> To: Edwards, Paul
> Cc: paraview at paraview.org
> Subject: Re: [Paraview] New data object types
>
>
> I don't think this is easily doable. I suspect there are several
> places at which the data type is hard-coded. What additional
> information are you storing? Maybe we can extend the multi-block
> dataset to support your case...
>
> On 1/28/08, Edwards, Paul <Paul.Edwards3 at rolls-royce.com> wrote:
> > Sorry to keep asking questions but I need to know how to add an extra DataObjectType in a plugin.  The new DataObjectType is derived from vtkMultiBlockDataSet (with some additional information stored) but I don't know to register it in order to use as the output to my reader and input to my filter.  Is this even possible with a plugin?
> >
> > Thanks in advance,
> > Paul
> >
> > The data contained in, or attached to, this e-mail, may contain confidential information. If you have received it in error you should notify the sender immediately by reply e-mail, delete the message from your system and contact +44 (0) 1332 242424 (the Rolls-Royce IT Security Director) if you need assistance. Please do not copy it for any purpose, or disclose its contents to any other person.
> >
> > An e-mail response to this address may be subject to interception or monitoring for operational reasons or for lawful business practices.
> >
> > (c) 2008 Rolls-Royce plc
> >
> > Registered office: 65 Buckingham Gate, London SW1E 6AT Company number: 1003142. Registered in England.
> > _______________________________________________
> > ParaView mailing list
> > ParaView at paraview.org
> > http://www.paraview.org/mailman/listinfo/paraview
> >
>
> The data contained in, or attached to, this e-mail, may contain confidential information. If you have received it in error you should notify the sender immediately by reply e-mail, delete the message from your system and contact +44 (0) 1332 242424 (the Rolls-Royce IT Security Director) if you need assistance. Please do not copy it for any purpose, or disclose its contents to any other person.
>
> An e-mail response to this address may be subject to interception or monitoring for operational reasons or for lawful business practices.
>
> (c) 2008 Rolls-Royce plc
>
> Registered office: 65 Buckingham Gate, London SW1E 6AT Company number: 1003142. Registered in England.
>


More information about the ParaView mailing list