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

Method AssignAttribute

IO/Parallel/vtkMultiBlockPLOT3DReader.cxx:3416–3484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3414}
3415
3416void vtkMultiBlockPLOT3DReader::AssignAttribute(
3417 int fNumber, vtkStructuredGrid* output, int attributeType)
3418{
3419 switch (fNumber)
3420 {
3421 case -1: // empty mapping
3422 output->GetPointData()->SetActiveAttribute(0, attributeType);
3423 break;
3424
3425 case 100: // Density
3426 output->GetPointData()->SetActiveAttribute("Density", attributeType);
3427 break;
3428
3429 case 110: // Pressure
3430 output->GetPointData()->SetActiveAttribute("Pressure", attributeType);
3431 break;
3432
3433 case 120: // Temperature
3434 output->GetPointData()->SetActiveAttribute("Temperature", attributeType);
3435 break;
3436
3437 case 130: // Enthalpy
3438 output->GetPointData()->SetActiveAttribute("Enthalpy", attributeType);
3439 break;
3440
3441 case 140: // Internal Energy
3442 output->GetPointData()->SetActiveAttribute("StagnationEnergy", attributeType);
3443 break;
3444
3445 case 144: // Kinetic Energy
3446 output->GetPointData()->SetActiveAttribute("KineticEnergy", attributeType);
3447 break;
3448
3449 case 153: // Velocity Magnitude
3450 output->GetPointData()->SetActiveAttribute("VelocityMagnitude", attributeType);
3451 break;
3452
3453 case 163: // Stagnation energy
3454 output->GetPointData()->SetActiveAttribute("StagnationEnergy", attributeType);
3455 break;
3456
3457 case 170: // Entropy
3458 output->GetPointData()->SetActiveAttribute("Entropy", attributeType);
3459 break;
3460
3461 case 184: // Swirl
3462 output->GetPointData()->SetActiveAttribute("Swirl", attributeType);
3463 break;
3464
3465 case 200: // Velocity
3466 output->GetPointData()->SetActiveAttribute("Velocity", attributeType);
3467 break;
3468
3469 case 201: // Vorticity
3470 output->GetPointData()->SetActiveAttribute("Vorticity", attributeType);
3471 break;
3472
3473 case 202: // Momentum

Callers 1

ReadArraysMethod · 0.95

Calls 2

SetActiveAttributeMethod · 0.45
GetPointDataMethod · 0.45

Tested by

no test coverage detected