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.


      
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to