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

Method InitBladeData

IO/Geometry/vtkWindBladeReader.cxx:1302–1326  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1300
1301//------------------------------------------------------------------------------
1302void vtkWindBladeReader::InitBladeData(vtkInformationVector* outVector)
1303{
1304 vtkInformation* bladeInfo = outVector->GetInformationObject(1);
1305 vtkUnstructuredGrid* blade = this->GetBladeOutput();
1306
1307 // Collect the time step requested
1308 vtkInformationDoubleKey* timeKey = vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP();
1309
1310 double dTime = 0.0;
1311 if (bladeInfo->Has(timeKey))
1312 {
1313 dTime = bladeInfo->Get(timeKey);
1314 }
1315
1316 // Actual time for the time step
1317 blade->GetInformation()->Set(vtkDataObject::DATA_TIME_STEP(), dTime);
1318
1319 // Index of the time step to request
1320 int timeStep = 0;
1321 while (timeStep < this->NumberOfTimeSteps && this->TimeSteps[timeStep] < dTime)
1322 {
1323 timeStep++;
1324 }
1325 this->LoadBladeData(timeStep);
1326}
1327
1328//------------------------------------------------------------------------------
1329void vtkWindBladeReader::SetUpGroundData(vtkInformationVector* outVector)

Callers 2

RequestDataMethod · 0.95
RequestDataMethod · 0.80

Calls 7

GetBladeOutputMethod · 0.95
LoadBladeDataMethod · 0.95
GetInformationObjectMethod · 0.80
HasMethod · 0.45
GetMethod · 0.45
SetMethod · 0.45
GetInformationMethod · 0.45

Tested by

no test coverage detected