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

Method Plane

Modules/DataTypesExt/src/mitkPlane.cpp:23–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace mitk
22{
23 Plane::Plane() : BoundingObject()
24 {
25 // Set up Plane Surface.
26 m_PlaneSource = vtkPlaneSource::New();
27 m_PlaneSource->SetOrigin(-32.0, -32.0, 0.0);
28 m_PlaneSource->SetPoint1(32.0, -32.0, 0.0);
29 m_PlaneSource->SetPoint2(-32.0, 32.0, 0.0);
30 m_PlaneSource->SetResolution(128, 128);
31 m_PlaneSource->Update();
32
33 m_PlaneNormal = vtkDoubleArray::New();
34 m_PlaneNormal->SetNumberOfComponents(3);
35 m_PlaneNormal->SetNumberOfTuples(m_PlaneSource->GetOutput()->GetNumberOfPoints());
36 m_PlaneNormal->SetTuple3(0, 0.0, 0.0, 1.0);
37 m_PlaneNormal->SetName("planeNormal");
38
39 m_Plane = vtkPolyData::New();
40 m_Plane->DeepCopy(m_PlaneSource->GetOutput());
41 m_Plane->GetPointData()->SetVectors(m_PlaneNormal);
42
43 this->SetVtkPolyData(m_Plane);
44 }
45
46 Plane::~Plane()
47 {

Callers

nothing calls this directly

Calls 11

SetPoint1Method · 0.80
SetPoint2Method · 0.80
SetResolutionMethod · 0.80
GetNumberOfPointsMethod · 0.80
DeepCopyMethod · 0.80
SetVtkPolyDataMethod · 0.80
NewFunction · 0.50
SetOriginMethod · 0.45
UpdateMethod · 0.45
GetOutputMethod · 0.45
SetNameMethod · 0.45

Tested by

no test coverage detected