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

Method SetBounds

Common/DataModel/vtkBox.cxx:33–44  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Set the bounds in various ways

Source from the content-addressed store, hash-verified

31//------------------------------------------------------------------------------
32// Set the bounds in various ways
33void vtkBox::SetBounds(double xMin, double xMax, double yMin, double yMax, double zMin, double zMax)
34{
35 const double* minP = this->BBox->GetMinPoint();
36 const double* maxP = this->BBox->GetMaxPoint();
37 if ((minP[0] == xMin) && (maxP[0] == xMax) && (minP[1] == yMin) && (maxP[1] == yMax) &&
38 (minP[2] == zMin) && (maxP[2] == zMax))
39 {
40 return;
41 }
42 this->BBox->SetBounds(xMin, xMax, yMin, yMax, zMin, zMax);
43 this->Modified();
44}
45
46//------------------------------------------------------------------------------
47void vtkBox::SetBounds(const double bounds[6])

Callers 15

BoxFunction · 0.45
TestBoxFunction · 0.45
TestNGPFunction · 0.45
CreateFilterFunction · 0.45
CreateCutsMethod · 0.45
BuildTreeMethod · 0.45
SetBoundsFunction · 0.45
SetBoundsFunction · 0.45
BuildLocatorInternalMethod · 0.45
SetNewBoundsMethod · 0.45

Calls 3

GetMinPointMethod · 0.80
GetMaxPointMethod · 0.80
ModifiedMethod · 0.45

Tested by 4

TestBoxFunction · 0.36
TestNGPFunction · 0.36
CheckClippedBoundsFunction · 0.36
testMethod · 0.36