[Paraview] vtkDataSet algorithm that takes composite data set as input

Sohail Shafii sohailshafii at yahoo.com
Fri Jan 20 15:34:59 EST 2012


Thanks. I get these sorts of errors:
vtkPVCompositeDataPipeline (0x2a831a0): Algorithm vtkFastMarcher(0x2a80860) returned failure for request: vtkInformation (0x339b0f0

Before RequestData is reached...

Sohail

________________________________
 From: David E DeMarle <dave.demarle at kitware.com>
To: Sohail Shafii <sohailshafii at yahoo.com> 
Cc: "paraview at paraview.org" <paraview at paraview.org> 
Sent: Friday, January 20, 2012 11:42 AM
Subject: Re: [Paraview] vtkDataSet algorithm that takes composite data set as input
 

Try something like this.
In this case the mapper takes in either type, which you may or may not want.

//----------------------------------------------------------------------------
int vtkCompositePolyDataMapper2::FillInputPortInformation(
  int vtkNotUsed(port), vtkInformation* info)
{
  info->Set(vtkAlgorithm::INPUT_REQUIRED_DATA_TYPE(), "vtkPolyData");
  info->Append(vtkAlgorithm::INPUT_REQUIRED_DATA_TYPE(), "vtkCompositeDataSet");
  return 1;
}
David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909



On Fri, Jan 20, 2012 at 2:36 PM, Sohail Shafii <sohailshafii at yahoo.com> wrote:

Hi,
>
>
>I am developing an algorithm that requires a composite data set as input while creating a vtkDataSet as output -- basically it inherit from vtkDataSetAlgorithm. I know that one must provide a new definition to the FillInputPortInformation(int port, vtkInformation *info) function, but I'm not sure how. Please advise, thank you.
>
>Sohail
>_______________________________________________
>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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20120120/feb2848d/attachment.htm>


More information about the ParaView mailing list