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

Method SetOrigin

Common/DataModel/vtkImageData.cxx:1521–1534  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1519
1520//------------------------------------------------------------------------------
1521void vtkImageData::SetOrigin(double i, double j, double k)
1522{
1523 vtkDebugMacro(<< this->GetClassName() << " (" << this << "): setting Origin to (" << i << "," << j
1524 << "," << k << ")");
1525 if ((this->Origin[0] != i) || (this->Origin[1] != j) || (this->Origin[2] != k))
1526 {
1527 this->Origin[0] = i;
1528 this->Origin[1] = j;
1529 this->Origin[2] = k;
1530 this->ComputeTransforms();
1531 this->BuildPoints();
1532 this->Modified();
1533 }
1534}
1535
1536//------------------------------------------------------------------------------
1537void vtkImageData::SetOrigin(const double ijk[3])

Callers 2

runMethod · 0.95

Calls 4

ComputeTransformsMethod · 0.95
BuildPointsMethod · 0.95
GetClassNameMethod · 0.45
ModifiedMethod · 0.45

Tested by 1

runMethod · 0.76