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

Method RequestData

Filters/Extraction/vtkExtractRectilinearGrid.cxx:127–148  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

125
126//------------------------------------------------------------------------------
127int vtkExtractRectilinearGrid::RequestData(
128 vtkInformation*, vtkInformationVector** inputVector, vtkInformationVector* outputVector)
129{
130 // Reset internal helper to the actual extents of the piece we're working on:
131 vtkInformation* inInfo = inputVector[0]->GetInformationObject(0);
132 vtkRectilinearGrid* inGrid = vtkRectilinearGrid::GetData(inInfo);
133 this->Internal->Initialize(
134 this->VOI, inGrid->GetExtent(), this->SampleRate, (this->IncludeBoundary != 0));
135
136 if (!this->Internal->IsValid())
137 {
138 return 0;
139 }
140
141 // Set the output extent -- this is how RequestDataImpl knows what to copy.
142 vtkInformation* outInfo = outputVector->GetInformationObject(0);
143 vtkRectilinearGrid* output =
144 vtkRectilinearGrid::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT()));
145 output->SetExtent(this->Internal->GetOutputWholeExtent());
146
147 return this->RequestDataImpl(inputVector, outputVector) ? 1 : 0;
148}
149
150//------------------------------------------------------------------------------
151bool vtkExtractRectilinearGrid::RequestDataImpl(

Callers

nothing calls this directly

Calls 9

RequestDataImplMethod · 0.95
GetInformationObjectMethod · 0.80
GetDataFunction · 0.50
InitializeMethod · 0.45
GetExtentMethod · 0.45
IsValidMethod · 0.45
GetMethod · 0.45
SetExtentMethod · 0.45
GetOutputWholeExtentMethod · 0.45

Tested by

no test coverage detected