MCPcopy Create free account
hub / github.com/Kitware/VTK / SetScalarFunctionNumber

Method SetScalarFunctionNumber

IO/Parallel/vtkMultiBlockPLOT3DReader.cxx:3227–3250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3225}
3226
3227void vtkMultiBlockPLOT3DReader::SetScalarFunctionNumber(int num)
3228{
3229 if (this->ScalarFunctionNumber == num)
3230 {
3231 return;
3232 }
3233 if (num >= 0)
3234 {
3235 // If this function is not in the list, add it.
3236 int found = 0;
3237 for (int i = 0; i < this->FunctionList->GetNumberOfTuples(); i++)
3238 {
3239 if (this->FunctionList->GetValue(i) == num)
3240 {
3241 found = 1;
3242 }
3243 }
3244 if (!found)
3245 {
3246 this->AddFunction(num);
3247 }
3248 }
3249 this->ScalarFunctionNumber = num;
3250}
3251
3252void vtkMultiBlockPLOT3DReader::SetVectorFunctionNumber(int num)
3253{

Callers 15

Plot3DScalars.pyFile · 0.80
TestGL2PSScalarBarFunction · 0.80
TestPointWidgetFunction · 0.80
TestPlaneWidgetFunction · 0.80
TestScalarBarWidgetFunction · 0.80
TestLineWidgetFunction · 0.80
TestLineWidget2Function · 0.80
rendererSource.pyFile · 0.80
TestGlyph3DMapperArrowFunction · 0.80
TestGlyph3DMapperArrowFunction · 0.80

Calls 3

AddFunctionMethod · 0.95
GetNumberOfTuplesMethod · 0.45
GetValueMethod · 0.45

Tested by 11

TestGL2PSScalarBarFunction · 0.64
TestPointWidgetFunction · 0.64
TestPlaneWidgetFunction · 0.64
TestScalarBarWidgetFunction · 0.64
TestLineWidgetFunction · 0.64
TestLineWidget2Function · 0.64
TestGlyph3DMapperArrowFunction · 0.64
TestGlyph3DMapperArrowFunction · 0.64
TestScalarBarFunction · 0.64
testAllMethod · 0.64