[Paraview] [EXTERNAL] Some doubt about function: int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *outVec);

Moreland, Kenneth kmorel at sandia.gov
Sun Sep 15 11:43:20 EDT 2013


I don't know if there is any point in subclassing those classes, but to answer your question, the object you get in the output vector is the same object created in a previous call to RequestDataObject.

-Ken

Sent from my iPad so blame autocorrect.

On Sep 15, 2013, at 8:44 AM, "庞庆源" <pangqingyuan1991 at gmail.com<mailto:pangqingyuan1991 at gmail.com>> wrote:

If my reader inherit from vtkPolyDataAlgorithm,then outVec->GetInformationObject(0)->Get(vtkDataObject::DATA_OBJECT()) will return a vtkPolyData pointer.
else if my reader inherit from vtkUnstructuredGridAlgorithm,then outVec->GetInformationObject(0)->Get(vtkDataObject::DATA_OBJECT()) will return a vtkUnstructuredGrid pointer.
else if my reader inherit from vtkMultiBlockDataSetAlgorithm,then outVec->GetInformationObject(0)->Get(vtkDataObject::DATA_OBJECT()) will return a vtkMultiBlockDataSet pointer.
And so on.
But what will return if my reader inherit from the subclass of above algorithm?
For example,vtkSampleFunction,vtkSphereSource.
--
庞庆源<mailto:pangqingyuan1991 at gmail.com>
_______________________________________________
Powered by www.kitware.com<http://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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130915/fed03a61/attachment.htm>


More information about the ParaView mailing list