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

Method LoadBladeData

IO/Geometry/vtkWindBladeReader.cxx:1180–1195  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Build the turbine blades ------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1178// Build the turbine blades
1179//------------------------------------------------------------------------------
1180void vtkWindBladeReader::LoadBladeData(int timeStep)
1181{
1182 this->BPoints->Delete();
1183 this->BPoints = vtkPoints::New();
1184
1185 // Open the file for this time step
1186 std::ostringstream fileName;
1187 fileName << this->RootDirectory << "/" << this->TurbineDirectory << "/" << this->TurbineBladeName
1188 << this->TimeSteps[timeStep];
1189
1190 vtksys::ifstream inStr(fileName.str().c_str());
1191 std::stringstream inStrSS;
1192 std::copy(std::istreambuf_iterator<char>(inStr), std::istreambuf_iterator<char>(),
1193 std::ostreambuf_iterator<char>(inStrSS));
1194 this->ReadBladeData(inStrSS);
1195}
1196
1197//------------------------------------------------------------------------------
1198void vtkWindBladeReader::InitFieldData(

Callers 1

InitBladeDataMethod · 0.95

Calls 6

ReadBladeDataMethod · 0.95
DeleteMethod · 0.65
NewFunction · 0.50
copyFunction · 0.50
c_strMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected