[Paraview] Multiple Datasets in Pipeline from Single Custom Reader

Mike Jackson imikejackson at gmail.com
Fri Mar 28 17:28:41 EDT 2008


Great, That is now working. Is there any way to give the "output" a  
human understandable name? Right now I get "Output-0" and "Output-1".  
Can I set a name in the vtkInformation object for each? Or something  
like that?

Thanks
-- 
Mike Jackson   Senior Research Engineer
Innovative Management & Technology Services


On Mar 28, 2008, at 1:44 PM, clinton at elemtech.com wrote:
>
> vtkPrismFilter in ParaView3/Plugins/PrismPlugins/Server.
>
> For your reader, you basically you do a
>   this->SetNumberOfInputPorts(0);
>   this->SetNumberOfOutputPorts(2);
> in the constructor
> and in RequestData, the information arrays can be indexed to get  
> each output
>   vtkInformation *outInfo = outputVector->GetInformationObject(0);
>   vtkInformation *outInfo = outputVector->GetInformationObject(1);
>
> Clint
>
> On Friday 28 March 2008 11:41:07 am Mike Jackson wrote:
>> Would you know of an example that has multiple Output ports?
>>
>> Thanks
>> --
>> Mike Jackson   Senior Research Engineer
>> Innovative Management & Technology Services
>>
>> On Mar 27, 2008, at 12:05 PM, clinton at elemtech.com wrote:
>>> On Thursday 27 March 2008 9:02:14 am Mike Jackson wrote:
>>>> Is it possible to have a custom reader that creates multiple  
>>>> datasets
>>>> in the pipeline versus have the data read as a MultiBlockDataSet  
>>>> then
>>>> having to run the "ExtractBlock" filter?
>>>
>>> If its a fixed number of datasets, you could have your reader with
>>> multiple
>>> output ports, and put each dataset on a different output port.
>>> In ParaView's pipline browser, each output would show up as a
>>> separate item
>>> that you could add a filter to, control display properties, etc...
>>>
>>> Clint
>
>



More information about the ParaView mailing list