[Paraview] Wrapper Error in 2.6.1
Berk Geveci
berk.geveci at kitware.com
Tue Jun 5 23:33:56 EDT 2007
> I noticed that the first of the above 3 methods was wrapped in another reader
> although all 3 were defined. What's going on? Does the wrapping only work when
> I use the macros in vtkSetGet.h?
Yes. The wrappers cannot wrap functions that return pointers without
some help. This help comes in various forms one of which is the
set/get macros. The other one is a hint file passed to the wrapper
executable. I recommend switching to the set/get macro.
-berk
On 6/4/07, Kent Eschenberg <eschenbe at psc.edu> wrote:
> I'm trying to create a new reader but it fails during execution:
>
> vtkMyReader, could not find requested method: "GetTimeStepRange"
> or the method was called with incorrect arguments.
> while processing
> Message 0 = Invoke
> Argument 0 = id_value {486}
> Argument 1 = string_value {GetTimeStepRange}
>
> But this method is defined in the public section of the reader's class:
>
> int *GetTimeStepRange( void );
> void GetTimeStepRange( int &r0, int &r1 );
> void GetTimeStepRange( int r[2] );
>
> File <binary>/Servers/Filters/vtkMyReaderClientServer.cxx shows that only one
> of the methods was wrapped:
>
> if (!strcmp("GetTimeStepRange",method) && msg.GetNumberOfArguments(0) == 3) {
> int temp0[2];
> if(msg.GetArgument(0, 2, temp0, 2) {
> op->GetTimeStepRange(temp0);
> return 1;
> }
> }
>
> I noticed that the first of the above 3 methods was wrapped in another reader
> although all 3 were defined. What's going on? Does the wrapping only work when
> I use the macros in vtkSetGet.h?
>
> Using gcc 4.1.1 on Fedora Core 5.
>
> TIA!
> Kent
> Pittsburgh Supercomputing Center
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
--
Berk Geveci
Kitware Inc.
28 Corporate Drive
Clifton Park, NY, 12065
More information about the ParaView
mailing list