------------------------------------------------------------------------------
| 778 | |
| 779 | //------------------------------------------------------------------------------ |
| 780 | void vtkSmartVolumeMapper::ConnectFilterInput(vtkImageResample* f) |
| 781 | { |
| 782 | assert("pre: f_exists" && f != nullptr); |
| 783 | |
| 784 | vtkImageData* input2 = static_cast<vtkImageData*>(f->GetInput()); |
| 785 | bool needShallowCopy = false; |
| 786 | if (input2 == nullptr) |
| 787 | { |
| 788 | // make sure we not create a shallow copy each time to avoid |
| 789 | // performance penalty. |
| 790 | input2 = vtkImageData::New(); |
| 791 | f->SetInputDataObject(input2); |
| 792 | input2->Delete(); |
| 793 | needShallowCopy = true; |
| 794 | } |
| 795 | else |
| 796 | { |
| 797 | needShallowCopy = ((this->LastFilterInput != this->GetInput()) || |
| 798 | (input2->GetMTime() < this->GetInput()->GetMTime())); |
| 799 | } |
| 800 | if (needShallowCopy) |
| 801 | { |
| 802 | input2->ShallowCopy(this->GetInput()); |
| 803 | this->LastFilterInput = this->GetInput(); |
| 804 | } |
| 805 | } |
| 806 | |
| 807 | //------------------------------------------------------------------------------ |
| 808 | void vtkSmartVolumeMapper::SetRequestedRenderMode(int mode) |
no test coverage detected