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

Method RequestInformation

Filters/Extraction/vtkExtractGrid.cxx:39–61  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

37
38//------------------------------------------------------------------------------
39int vtkExtractGrid::RequestInformation(vtkInformation* vtkNotUsed(request),
40 vtkInformationVector** inputVector, vtkInformationVector* outputVector)
41{
42 // get the info objects
43 vtkInformation* inInfo = inputVector[0]->GetInformationObject(0);
44 vtkInformation* outInfo = outputVector->GetInformationObject(0);
45
46 int wholeExtent[6];
47 inInfo->Get(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(), wholeExtent);
48 this->Internal->Initialize(
49 this->VOI, wholeExtent, this->SampleRate, (this->IncludeBoundary == 1));
50
51 if (!this->Internal->IsValid())
52 {
53 vtkDebugMacro("Error while initializing filter.");
54 return 0;
55 }
56
57 int outWholeExt[6];
58 this->Internal->GetOutputWholeExtent(outWholeExt);
59 outInfo->Set(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(), outWholeExt, 6);
60 return 1;
61}
62
63//------------------------------------------------------------------------------
64int vtkExtractGrid::RequestUpdateExtent(vtkInformation* vtkNotUsed(request),

Callers

nothing calls this directly

Calls 6

GetInformationObjectMethod · 0.80
GetMethod · 0.45
InitializeMethod · 0.45
IsValidMethod · 0.45
GetOutputWholeExtentMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected