<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hi,<br><br>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.<br><br>For example, in a RequestData I do:<br><br>int myclass::RequestData( vtkInformation *vtkNotUsed(request), <br> vtkInformationVector **vtkNotUsed(inputVector),<br>
vtkInformationVector *outputVector)<br>{<br> ...<br> vtkInformation* outInfo = outputVector->GetInformationObject(0);<br> if( ! outInfo->Has(vtkDataObject::DATA_EXTENT_TYPE()))<br> {<br> vtkInformationIntegerKey* DATA_EXTENT_TYPE = vtkDataObject::DATA_EXTENT_TYPE();<br> 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<br> }<br> if( outInfo->Has(vtkDataObject::DATA_EXTENT_TYPE()))<br> {<br> vtkOutputWindow::GetInstance()->DisplayText("---");<br>
}<br> ...<br>}<br><br>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? <br><br>Thank you.<br><br></div>
</div><br>
</body></html>