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

Method SetNumberOfRefinementRatios

Filters/Sources/vtkLineSource.cxx:48–59  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

46
47//------------------------------------------------------------------------------
48void vtkLineSource::SetNumberOfRefinementRatios(int val)
49{
50 if (val < 0)
51 {
52 vtkErrorMacro("Value cannot be negative: " << val);
53 }
54 else if (static_cast<int>(this->RefinementRatios.size()) != val)
55 {
56 this->RefinementRatios.resize(val);
57 this->Modified();
58 }
59}
60
61//------------------------------------------------------------------------------
62void vtkLineSource::SetRefinementRatio(int index, double value)

Callers 1

TestLineSourceFunction · 0.80

Calls 3

sizeMethod · 0.45
resizeMethod · 0.45
ModifiedMethod · 0.45

Tested by 1

TestLineSourceFunction · 0.64