------------------------------------------------------------------------------
| 120 | |
| 121 | //------------------------------------------------------------------------------ |
| 122 | void vtkDataRepresentation::ProcessEvents( |
| 123 | vtkObject* caller, unsigned long eventId, void* vtkNotUsed(callData)) |
| 124 | { |
| 125 | // After the algorithm executes, if the release data flag is on, |
| 126 | // clear the input shallow copy cache. |
| 127 | if (caller == this && eventId == vtkCommand::EndEvent) |
| 128 | { |
| 129 | // Release input data if requested. |
| 130 | for (int i = 0; i < this->GetNumberOfInputPorts(); ++i) |
| 131 | { |
| 132 | for (int j = 0; j < this->GetNumberOfInputConnections(i); ++j) |
| 133 | { |
| 134 | vtkInformation* inInfo = this->GetExecutive()->GetInputInformation(i, j); |
| 135 | vtkDataObject* dataObject = inInfo->Get(vtkDataObject::DATA_OBJECT()); |
| 136 | if (dataObject && |
| 137 | (vtkDataObject::GetGlobalReleaseDataFlag() || |
| 138 | inInfo->Get(vtkDemandDrivenPipeline::RELEASE_DATA()))) |
| 139 | { |
| 140 | std::pair<int, int> p(i, j); |
| 141 | this->Implementation->InputInternal.erase(p); |
| 142 | this->Implementation->ConvertDomainInternal.erase(p); |
| 143 | } |
| 144 | } |
| 145 | } |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | //------------------------------------------------------------------------------ |
| 150 | vtkAlgorithmOutput* vtkDataRepresentation::GetInternalOutputPort(int port, int conn) |
no test coverage detected