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

Function evaluateOption

IO/EnSight/core/EnSightDataSet.cxx:334–370  ·  view source on GitHub ↗

evaluates a single option from a "block" line

Source from the content-addressed store, hash-verified

332
333// evaluates a single option from a "block" line
334void evaluateOption(const std::string& option, GridOptions& opts)
335{
336 if (option == "block")
337 {
338 // if nothing else is specified after "block", curvilinear is default
339 // if it is specified, it will get updated on a future call
340 opts.Type = GridType::Curvilinear;
341 }
342 else if (option == "coordinates")
343 {
344 opts.Type = GridType::Unstructured;
345 }
346 else if (option == "curvilinear")
347 {
348 opts.Type = GridType::Curvilinear;
349 }
350 else if (option == "rectilinear")
351 {
352 opts.Type = GridType::Rectilinear;
353 }
354 else if (option == "uniform")
355 {
356 opts.Type = GridType::Uniform;
357 }
358 else if (option == "iblanked")
359 {
360 opts.IBlanked = true;
361 }
362 else if (option == "with_ghost")
363 {
364 opts.WithGhost = true;
365 }
366 else if (option == "range")
367 {
368 opts.HasRange = true;
369 }
370}
371
372// parse a "block" line to determine relevant options
373GridOptions getGridOptions(std::string line)

Callers 1

getGridOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected