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

Method SetVectorFunctionNumber

IO/Parallel/vtkMultiBlockPLOT3DReader.cxx:3252–3275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3250}
3251
3252void vtkMultiBlockPLOT3DReader::SetVectorFunctionNumber(int num)
3253{
3254 if (this->VectorFunctionNumber == num)
3255 {
3256 return;
3257 }
3258 if (num >= 0)
3259 {
3260 // If this function is not in the list, add it.
3261 int found = 0;
3262 for (int i = 0; i < this->FunctionList->GetNumberOfTuples(); i++)
3263 {
3264 if (this->FunctionList->GetValue(i) == num)
3265 {
3266 found = 1;
3267 }
3268 }
3269 if (!found)
3270 {
3271 this->AddFunction(num);
3272 }
3273 }
3274 this->VectorFunctionNumber = num;
3275}
3276
3277void vtkMultiBlockPLOT3DReader::RemoveFunction(int fnum)
3278{

Callers 15

Plot3DVectors.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
xyPlot2.pyFile · 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