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

Method ProcessEvents

Views/Core/vtkDataRepresentation.cxx:122–147  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

120
121//------------------------------------------------------------------------------
122void 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//------------------------------------------------------------------------------
150vtkAlgorithmOutput* vtkDataRepresentation::GetInternalOutputPort(int port, int conn)

Callers 1

ExecuteMethod · 0.45

Calls 6

GetNumberOfInputPortsMethod · 0.45
GetInputInformationMethod · 0.45
GetExecutiveMethod · 0.45
GetMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected