[Paraview] ParaView crashes trying to access property of Custom
Reader
Mike Jackson
imikejackson at gmail.com
Wed Feb 6 22:58:23 EST 2008
Ok. That finally worked. Although it shows a non-editable text field.
Wouldn't a QLabel be more intuitive to use for this?
Also, in PV 2.6 there was some sort of widget like a "Box" or
something that you could use to group other widgets together. Is that
still available?
Thanks for the help.
Mike
On Feb 6, 2008, at 5:03 PM, clinton at elemtech.com wrote:
>
> It wasn't really a bug, but a feature that wasn't asked for.
>
> If you're using ParaView from CVS, you can update your code and try
> this.
> Then you don't have to make your own panel.
>
> <IntVectorProperty
> name="FramesPerSlice"
> command="GetFramesPerSlice"
> information_only="1">
> <SimpleIntInformationHelper />
> </IntVectorProperty>
> <Hints>
> <Property name="FramesPerSlice" show="1"/>
> </Hints>
>
> Clint
>
>
> On Wednesday 06 February 2008 2:16:20 pm Mike Jackson wrote:
>> Now I get a "Frames Per Slice" label and associated Text field.
>> Except I just want to display some information about the file. This
>> will actually "set" the value in the vtkH5RoboMetReader object, which
>> is what I don't want.
>>
>> Is this a bug in PV 3.2.1? or should I be thinking of a custom panel
>> at this point?
>>
>> Mike
>>
>> On Feb 6, 2008, at 3:53 PM, clinton at elemtech.com wrote:
>>> On Wednesday 06 February 2008 1:45:36 pm Mike Jackson wrote:
>>>> ParaView doesn't crash now, but nothing extra shows up in the left
>>>> side pane under the "Properties" tab.
>>>
>>> Ok, then try this:
>>>
>>> <IntVectorProperty
>>> name="FramesPerSlice"
>>> command="SetFramesPerSlice"
>>> number_of_elements="1"
>>> default_values="0">
>>> </IntVectorProperty>
>>>
>>> Clint
>>>
>>>> This is on PV 3.2.1 on OS X Intel 10.4.11 using gcc. Just for
>>>> completeness.
>>>>
>>>> Mike
>>>>
>>>> On Feb 6, 2008, at 3:26 PM, clinton at elemtech.com wrote:
>>>>> You probably want one of these two (the first is a read-only
>>>>> property)
>>>>>
>>>>> <IntVectorProperty
>>>>> name="FramesPerSlice"
>>>>> command="GetFramesPerSlice"
>>>>> number_of_elements="1"
>>>>> information_only="1">
>>>>> <SimpleIntInformationHelper />
>>>>> </IntVectorProperty>
>>>>>
>>>>> or
>>>>>
>>>>> <IntVectorProperty
>>>>> name="FramesPerSlice"
>>>>> command="SetFramesPerSlice"
>>>>> number_of_elements="1"
>>>>> update_self="1"
>>>>> default_values="0">
>>>>> <SimpleIntInformationHelper />
>>>>> </IntVectorProperty>
>>>>>
>>>>>
>>>>> Clint
>>>>>
>>>>> On Wednesday 06 February 2008 1:20:41 pm Mike Jackson wrote:
>>>>>> I am writing a custom reader in ParaView 3 and I am getting a
>>>>>> crash
>>>>>> when ParaView goes looking for a method specified in the .pvsm
>>>>>> file:
>>>>>>
>>>>>> Here is the snippet from the .pvsm file:
>>>>>>
>>>>>> <IntVectorProperty
>>>>>> name="FramesPerSlice"
>>>>>> command="GetFramesPerSlice"
>>>>>> number_of_elements="1"
>>>>>> update_self="1"
>>>>>> information_only="1"
>>>>>> default_values="0">
>>>>>> <SimpleIntInformationHelper />
>>>>>> </IntVectorProperty>
>>>>>>
>>>>>> Here is the snippet from vtkH5RoboMetReader.h
>>>>>>
>>>>>> public:
>>>>>> vtkGetMacro(FramesPerSlice, int);
>>>>>> vtkSetMacro(FramesPerSlice, int);
>>>>>>
>>>>>> private:
>>>>>> int FramesPerSlice;
>>>>>>
>>>>>> Here is the snippet from the generated
>>>>>> vtkH5RoboMetReaderClientServer.cxx file:
>>>>>> if (!strcmp("GetFramesPerSlice",method) &&
>>>>>> msg.GetNumberOfArguments
>>>>>> (0) == 2)
>>>>>> {
>>>>>> int temp20;
>>>>>> {
>>>>>> temp20 = (op)->GetFramesPerSlice();
>>>>>> resultStream.Reset();
>>>>>> resultStream << vtkClientServerStream::Reply << temp20 <<
>>>>>> vtkClientServerStream::End;
>>>>>> return 1;
>>>>>> }
>>>>>> }
>>>>>> if (!strcmp("SetFramesPerSlice",method) &&
>>>>>> msg.GetNumberOfArguments
>>>>>> (0) == 3)
>>>>>> {
>>>>>> int temp0;
>>>>>> if(msg.GetArgument(0, 2, &temp0))
>>>>>> {
>>>>>> op->SetFramesPerSlice(temp0);
>>>>>> return 1;
>>>>>> }
>>>>>> }
>>>>>>
>>>>>> And lastly here is the error from ParaView 3.2.1
>>>>>> vtkProcessModule (0x8a5c7f0): Object type: vtkSMSourceProxy,
>>>>>> could
>>>>>> not find requested method: "GetFramesPerSlice"
>>>>>> or the method was called with incorrect arguments.
>>>>>>
>>>>>> while processing
>>>>>> Message 0 = Invoke
>>>>>> Argument 0 = id_value {83}
>>>>>> Argument 1 = string_value {GetFramesPerSlice}
>>>>>>
>>>>>>
>>>>>> ERROR: In /Users/Shared/OpenSource/ParaView3.2.1/Servers/Common/
>>>>>> vtkProcessModule.cxx, line 1002
>>>>>> vtkProcessModule (0x8a5c7f0): Aborting execution for debugging
>>>>>> purposes.
>>>>>>
>>>>>>
>>>>>> Could someone take pity on me and help me out with the proper
>>>>>> way of
>>>>>> doing this?
>>>>>>
>>>>>> --
>>>>>> Mike Jackson
>>>>>> imikejackson & gmail * com
>
>
More information about the ParaView
mailing list