Hi,
I am writing my own plugin but each time I try to add another check box,
the plugin suddenly segfaults. I have no idea why. The XML and C++ code are
attached.
XML:
<IntVectorProperty
name="FieldLoadStatus"
command="SetFieldLoadStatus"
number_of_elements="1"
default_values="0"
panel_visibility="default" >
<BooleanDomain name="bool"/>
<Documentation>
The values of this property sets the run number.
</Documentation>
</IntVectorProperty>
C++:
public:
vtkTypeMacro(ReadUALGrid, vtkUnstructuredGridAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent);
static ReadUALGrid *New();
vtkGetMacro(Shot,int)
vtkSetMacro(Shot,int);
vtkGetMacro(Run,int);
vtkSetMacro(Run,int);
vtkGetMacro(RefRun,int);
vtkSetMacro(RefRun,int);
vtkGetMacro(CPOLoad,int);
vtkSetMacro(CPOLoad,int);
vtkGetMacro(FieldLoadStatus,int);
vtkSetMacro(FieldLoadStatus,int);
protected:
ReadUALGrid();
~ReadUALGrid(){}
int Shot;
int Run;
int RefRun;
int CPOLoad;
int FieldLoadStatus;
I have no idea why because it worked perfectly for other check boxes. Thank
you.
Regards,
Girish
_______________________________________________
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://public.kitware.com/mailman/listinfo/paraview