MCPcopy Create free account
hub / github.com/MITK/MITK / SetBounds

Method SetBounds

Modules/Core/src/DataManagement/mitkBaseGeometry.cpp:140–165  ·  view source on GitHub ↗

Set the bounds */

Source from the content-addressed store, hash-verified

138
139/** Set the bounds */
140void mitk::BaseGeometry::SetBounds(const BoundsArrayType &bounds)
141{
142 mitk::ModifiedLock lock(this);
143
144 this->CheckBounds(bounds);
145
146 m_BoundingBox = BoundingBoxType::New();
147
148 BoundingBoxType::PointsContainer::Pointer pointscontainer = BoundingBoxType::PointsContainer::New();
149 BoundingBoxType::PointType p;
150 BoundingBoxType::PointIdentifier pointid;
151
152 for (pointid = 0; pointid < 2; ++pointid)
153 {
154 unsigned int i;
155 for (i = 0; i < m_NDimensions; ++i)
156 {
157 p[i] = bounds[2 * i + pointid];
158 }
159 pointscontainer->InsertElement(pointid, p);
160 }
161
162 m_BoundingBox->SetPoints(pointscontainer);
163 m_BoundingBox->ComputeBoundingBox();
164 this->Modified();
165}
166
167void mitk::BaseGeometry::SetIndexToWorldTransform(mitk::AffineTransform3D *transform)
168{

Callers 15

DoReadMethod · 0.45
UpdateRepresentationMethod · 0.45
SetSizeFunction · 0.45
BoundingObjectMethod · 0.45
OnEnableMethod · 0.45
OnDisableMethod · 0.45
GetGridGeometryFromNodeFunction · 0.45

Calls 5

ModifiedMethod · 0.95
CheckBoundsMethod · 0.80
ComputeBoundingBoxMethod · 0.80
NewFunction · 0.50
SetPointsMethod · 0.45