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

Method Render

Rendering/HyperTreeGrid/vtkHyperTreeGridMapper.cxx:51–78  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

49
50//------------------------------------------------------------------------------
51void vtkHyperTreeGridMapper::Render(vtkRenderer* ren, vtkActor* act)
52{
53
54 auto* dataObj = this->GetInputDataObject(0, 0);
55 if (dataObj == nullptr) // nothing to do
56 {
57 return;
58 }
59
60 // Adaptive decimation (if required)
61 auto htgs = ::EnsureComposite(dataObj);
62 auto adaptedHtgs = this->UpdateWithDecimation(htgs, ren);
63
64 // Setup the mapper
65 if (this->GetMTime() > this->Mapper->GetMTime())
66 {
67 this->Mapper->ShallowCopy(this);
68 }
69
70 this->Mapper->SetInputDataObject(adaptedHtgs);
71
72 // Forward visibility property to the composite mapper.
73 // This needs to be done after HTGs have been decimated because block selection is done using data
74 // object pointers in the composite mapper.
75 this->ApplyBlockVisibilities();
76
77 this->Mapper->Render(ren, act);
78}
79
80//------------------------------------------------------------------------------
81void vtkHyperTreeGridMapper::SetInputDataObject(int port, vtkDataObject* input)

Callers

nothing calls this directly

Calls 8

UpdateWithDecimationMethod · 0.95
EnsureCompositeFunction · 0.85
GetInputDataObjectMethod · 0.80
RenderMethod · 0.65
GetMTimeMethod · 0.45
ShallowCopyMethod · 0.45
SetInputDataObjectMethod · 0.45

Tested by

no test coverage detected