------------------------------------------------------------------------------
| 49 | |
| 50 | //------------------------------------------------------------------------------ |
| 51 | void 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 | //------------------------------------------------------------------------------ |
| 81 | void vtkHyperTreeGridMapper::SetInputDataObject(int port, vtkDataObject* input) |
nothing calls this directly
no test coverage detected