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

Method vtkMitkRectangleProp

Modules/Core/src/Rendering/vtkMitkRectangleProp.cpp:23–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21vtkStandardNewMacro(vtkMitkRectangleProp);
22
23vtkMitkRectangleProp::vtkMitkRectangleProp()
24 : m_Height(0),
25 m_Width(0),
26 m_OriginX(0),
27 m_OriginY(0),
28 m_PolyData(vtkSmartPointer<vtkPolyData>::New())
29{
30 auto points = vtkSmartPointer<vtkPoints>::New();
31 m_PolyData->SetPoints(points);
32
33 auto lines = vtkSmartPointer<vtkCellArray>::New();
34 m_PolyData->SetLines(lines);
35
36 auto mapper = vtkSmartPointer<vtkPolyDataMapper2D>::New();
37
38 auto transformCoordinate = vtkSmartPointer<vtkCoordinate>::New();
39 transformCoordinate->SetCoordinateSystemToDisplay();
40 mapper->SetTransformCoordinate(transformCoordinate);
41
42 this->CreateRectangle();
43
44 mapper->SetInputData(m_PolyData);
45 this->SetMapper(mapper);
46
47 this->GetProperty()->SetLineWidth(2);
48}
49
50vtkMitkRectangleProp::~vtkMitkRectangleProp()
51{

Callers

nothing calls this directly

Calls 6

CreateRectangleMethod · 0.95
SetMapperMethod · 0.80
NewFunction · 0.50
SetPointsMethod · 0.45
SetLineWidthMethod · 0.45
GetPropertyMethod · 0.45

Tested by

no test coverage detected