[Paraview] vtkDataSet algorithm that takes composite data set as input
David E DeMarle
dave.demarle at kitware.com
Mon Jan 23 10:25:27 EST 2012
I'ld sit down with a debugger and see which request exactly is failing and
why.
Try overriding vtkAlgorithm::ProcessRequest() in your filter so that you
can easily get a breakpoint in an instance of your class.
In that method call PrintSelf(cerr, vtkIndent(0)) on the "request"
vtkInformation. Put the breakpoint right after that.
After the breakpoint call this->Superclass::ProcessRequest().
When the PrintSelf tells you which request fails, rerun and step in until
you see why the handling method returns.
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 3:34 PM, Sohail Shafii <sohailshafii at yahoo.com>wrote:
> 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/20120123/a5b33852/attachment.htm>
More information about the ParaView
mailing list