Hi,<br><br>I am implementing MyContour filter, similar to a Contour filter. The UI of pqMyContourPanel.cxx is similar to pqThresholdPanel.cxx file and even vtkMyContour.xml also has StringVectorProperty "SelectInputScalars" and DoubleVectorProperty "ContourRange". I ensured that the i/p values are properly read and any change in ContourBy option the ContourRange is updated. This logic is implemented from pqThresholdPanel.cxx<br>
<br>The requestData method of vtkMyContour.cxx is simple, with just reading input and applying values:<br><br> VTK_CREATE(vtkContourFilter, myContour);<br> myContour->SetInput(input_ref);<br> myContour->SetNumberOfContours(this->NumberOfContours);<br>
<br> if(this->NumberOfContours == 1)<br> {<br> rrContour->SetValue(0, (this->ContourRange[0] + this->ContourRange[1])/2.0 );<br> }<br> else// this part is also implemented can be ignored now<br>
myContour->Update();<br> output->ShallowCopy(myContour->GetOutput());<br> return 1;<br><br>When ContourBy comboBox (or selectInputScalars) is changed from one scalar array to another, I can see ContourRange is updated, but after pressing Apply button I cannot see anything in the output except the X,Y,Z axes.<br>
<br>Do I need to modify requestData() with SelectInputScalars logic. Please suggest me any ideas regarding this.<br><br>Highly appreciate your help regarding this.<br><br>Thanks,<br>Pandu.<br><br>