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

Method SetExtent

Modules/DataTypesExt/src/mitkPlane.cpp:53–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 }
52
53 void Plane::SetExtent(const double x, const double y)
54 {
55 m_PlaneSource->SetOrigin(-x / 2.0, -y / 2.0, 0.0);
56 m_PlaneSource->SetPoint1(x / 2.0, -y / 2.0, 0.0);
57 m_PlaneSource->SetPoint2(-x / 2.0, y / 2.0, 0.0);
58 m_PlaneSource->Update();
59
60 m_Plane->DeepCopy(m_PlaneSource->GetOutput());
61 m_Plane->GetPointData()->SetVectors(m_PlaneNormal);
62
63 this->Modified();
64 }
65
66 void Plane::GetExtent(double &x, double &y) const
67 {

Callers

nothing calls this directly

Calls 7

SetPoint1Method · 0.80
SetPoint2Method · 0.80
DeepCopyMethod · 0.80
SetOriginMethod · 0.45
UpdateMethod · 0.45
GetOutputMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected