VTK  9.4.20250509
HDFTestUtilities.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
3#ifndef HDFTestUtilities_h
4#define HDFTestUtilities_h
5
6#include "vtkDataAssembly.h"
8#include "vtkInformation.h"
10#include "vtkNew.h"
11#include "vtkObjectFactory.h"
14
16{
17
24{
25public:
28
29protected:
31 vtkInformation* request, vtkInformationVector** inVector, vtkInformationVector* ouInfo) override
32 {
33 this->vtkPartitionedDataSetCollectionAlgorithm::RequestData(request, inVector, ouInfo);
36 inVector[0]->GetInformationObject(0)->Get(vtkDataObject::DATA_OBJECT()));
37
40 return 1;
41 }
42};
43}
44#endif
Simple filter that adds a vtkDataAssembly to a PDC that does not have one.
static vtkAddAssembly * New()
int RequestData(vtkInformation *request, vtkInformationVector **inVector, vtkInformationVector *ouInfo) override
Methods for subclasses to override to handle different pipeline requests.
static bool GenerateHierarchy(vtkCompositeDataSet *input, vtkDataAssembly *hierarchy, vtkPartitionedDataSetCollection *output=nullptr)
Populates hierarchy with a representation of the hierarchy for the given composite dataset input.
static vtkDataObject * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Allocate and hold a VTK object.
Definition vtkNew.h:167
Superclass for algorithms that produce vtkPartitionedDataSetCollectionAlgorithm.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Methods for subclasses to override to handle different pipeline requests.
static vtkPartitionedDataSetCollection * SafeDownCast(vtkObjectBase *o)
static vtkInformationDataObjectKey * DATA_OBJECT()