------------------------------------------------------------------------------
| 626 | |
| 627 | //------------------------------------------------------------------------------ |
| 628 | void vtkJSONSceneExporter::WriteVolumeCollection( |
| 629 | vtkVolumeCollection* volumes, std::ostream& sceneComponents) |
| 630 | { |
| 631 | vtkVolume* volume = nullptr; |
| 632 | volumes->InitTraversal(); |
| 633 | while ((volume = volumes->GetNextVolume())) |
| 634 | { |
| 635 | // Skip non-visible actors |
| 636 | if (!volume || !volume->GetVisibility()) |
| 637 | { |
| 638 | continue; |
| 639 | } |
| 640 | |
| 641 | vtkAbstractVolumeMapper* mapper = volume->GetMapper(); |
| 642 | vtkDataObject* dataObject = mapper->GetInputDataObject(0, 0); |
| 643 | this->WriteDataObject(sceneComponents, dataObject, nullptr, volume, nullptr); |
| 644 | } |
| 645 | } |
| 646 | |
| 647 | //------------------------------------------------------------------------------ |
| 648 | void vtkJSONSceneExporter::WriteNamedActors( |
no test coverage detected