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

Method SetModelBounds

Filters/General/vtkCursor3D.cxx:392–413  ·  view source on GitHub ↗

Set the boundary of the 3D cursor.

Source from the content-addressed store, hash-verified

390
391// Set the boundary of the 3D cursor.
392void vtkCursor3D::SetModelBounds(
393 double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
394{
395 if (xmin != this->ModelBounds[0] || xmax != this->ModelBounds[1] ||
396 ymin != this->ModelBounds[2] || ymax != this->ModelBounds[3] || zmin != this->ModelBounds[4] ||
397 zmax != this->ModelBounds[5])
398 {
399 this->Modified();
400
401 this->ModelBounds[0] = xmin;
402 this->ModelBounds[1] = xmax;
403 this->ModelBounds[2] = ymin;
404 this->ModelBounds[3] = ymax;
405 this->ModelBounds[4] = zmin;
406 this->ModelBounds[5] = zmax;
407
408 for (int i = 0; i < 3; i++)
409 {
410 this->ModelBounds[2 * i] = std::min(this->ModelBounds[2 * i], this->ModelBounds[2 * i + 1]);
411 }
412 }
413}
414
415void vtkCursor3D::SetFocalPoint(double x[3])
416{

Calls 2

minFunction · 0.50
ModifiedMethod · 0.45