[vtk-developers] vtkMultiBlockDataSet

Jacques Papper jpapper at ara.co.uk
Wed Jan 28 13:36:13 EST 2009


Thank you, 

That will help. What I am intending to do is modify the
vtkIntegrateAttributes class so to be a vtkMultiBlockDataSetAlgorithm so
that the result of the integration are available then for each block. I
think I'm almost there but I'm now trying to understand the whole Controller
thing and how to deal with the processes.... 

Jacques 

-----Original Message-----
From: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com] 
Sent: 28 January 2009 14:26
To: Jacques Papper
Cc: ParaView; vtk-developers at vtk.org
Subject: Re: [vtk-developers] vtkMultiBlockDataSet

That'd work. But it will copy other information (besides names), if any was
well.
You can explicitly get the value of vtkCompositeDataSet::NAME() key from the
input meta-data and if present copy it to the output.

if (input->GetMetaData(iblock)->Has(vtkCompositeDataSet::NAME()))
  {
 
output->GetMetaData(oblock)->GetMetaData()->Set(vtkCompositeDataSet::NAME(),
   input->GetMetaData(iblock)->Get(vtkCompositeDataSet::NAME()));
  }

On Wed, Jan 28, 2009 at 5:12 AM, Jacques Papper <jpapper at ara.co.uk> wrote:
> Hi,
>
> This is my frist go at using the vtkMultiBlockDataSet interface.
> I am creating a vtkMultiblockDataSetAlgorithm which has for input a 
> vtkMultiBlockDataSet with names for each block (EnSight data).
> I would like my algorithm to output a vtkMultiBlockDataSet which is 
> completely different but keeps the names for each block.
> Should I do the following ?
>
> output->GetMetaData(iblock)->Copy(input->GetMetaData(iblock))
> (loop over iblock)
>
>
> Jacques PAPPER
> Applied CFD Team Leader
> Tel: +44 (0) 1234 324677
>
>
> ---------------------------
> This email contains information that is private and confidential and is
intended only for the addressee.  If you are not the intended recipient
please delete it and notify us immediately by e-mailing the sender.
> Note: All email sent to or from this address may be accessed by someone
other than the recipient, for system management and security reasons.
> Aircraft Research Association Ltd.  Registered in England, 
> Registration No 503668 Registered Office: Manton Lane, Bedford MK41 
> 7PF England VAT No GB 196351245
>
>
> _______________________________________________
> vtk-developers mailing list
> vtk-developers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtk-developers
>


---------------------------
This email contains information that is private and confidential and is intended only for the addressee.  If you are not the intended recipient please delete it and notify us immediately by e-mailing the sender.
Note: All email sent to or from this address may be accessed by someone other than the recipient, for system management and security reasons.
Aircraft Research Association Ltd.  Registered in England, Registration No 503668 Registered Office: Manton Lane, Bedford MK41 7PF England VAT No GB 196351245





More information about the vtk-developers mailing list