[Paraview] How to add extra informations associated to a vtkPolyData ?

R M mlokida at yahoo.fr
Tue Dec 7 09:35:11 EST 2010


Hi,

Like the title says, I would like to add extra informations associated to a 
vtkPolyData (or vtkMultiBlockDataSet). I would like to add a simulationType (in 
the information associated to the vtkpolydata) that is a type of simulation (we 
have several ones) and a vtk filter will select the good process depending of 
the simulationType of the input.

For example, in a RequestData I do:

int myclass::RequestData( vtkInformation *vtkNotUsed(request), 
                                    vtkInformationVector 
**vtkNotUsed(inputVector),
                                    vtkInformationVector *outputVector)
{
    ...
    vtkInformation* outInfo = outputVector->GetInformationObject(0);
    if( ! outInfo->Has(vtkDataObject::DATA_EXTENT_TYPE()))
    {
        vtkInformationIntegerKey* DATA_EXTENT_TYPE = 
vtkDataObject::DATA_EXTENT_TYPE();
        outInfo->Set(DATA_EXTENT_TYPE, simulationType); // simulationType is a 
type of simulation and we have many type of simulation that will be used a 
filter to select the good process
     }
     if( outInfo->Has(vtkDataObject::DATA_EXTENT_TYPE()))
     {
         vtkOutputWindow::GetInstance()->DisplayText("---");
       }
    ...
}

But, I am not sure that DATA_EXTENT_TYPE is the good one. There are severals 
like (DATA_TYPE_NAME, FIELD_NAME,...). So which one should I use to add extra 
informations associated to a vtkPolyData? 


Thank you.


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20101207/77db94eb/attachment-0001.htm>


More information about the ParaView mailing list