vtkOrderedCompositeDistributor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOrderedCompositeDistributor.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
16 /*
17  * Copyright 2005 Sandia Corporation.
18  * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
19  * license for use of this work by or on behalf of the
20  * U.S. Government. Redistribution and use in source and binary forms, with
21  * or without modification, are permitted provided that this Notice and any
22  * statement of authorship are reproduced on all copies.
23  */
24 
41 #ifndef vtkOrderedCompositeDistributor_h
42 #define vtkOrderedCompositeDistributor_h
43 
44 #include "vtkPVVTKExtensionsFiltersRenderingModule.h" // needed for export macro
45 
46 #include "vtkDataObjectAlgorithm.h"
47 #include "vtkNew.h" // needed for ivar
48 
49 #include <vector> // for std::vector
50 
51 class vtkBoundingBox;
53 class vtkRedistributeDataSetFilter;
54 
56  : public vtkDataObjectAlgorithm
57 {
58 public:
61  void PrintSelf(ostream& os, vtkIndent indent) override;
62 
64  void SetCuts(const std::vector<vtkBoundingBox>& boxes);
65  void SetController(vtkMultiProcessController* controller);
66  void SetBoundaryMode(int mode);
68 
69  // These are kept consistent with vtkRedistributeDataSetFilter::BoundaryModes
71  {
72  ASSIGN_TO_ONE_REGION = 0,
73  ASSIGN_TO_ALL_INTERSECTING_REGIONS = 1,
74  SPLIT_BOUNDARY_CELLS = 2
75  };
76 
77 protected:
80 
81  int FillInputPortInformation(int port, vtkInformation* info) override;
84 
85 private:
87  void operator=(const vtkOrderedCompositeDistributor&) = delete;
88 
89  vtkNew<vtkRedistributeDataSetFilter> RedistributeDataSetFilter;
90 };
91 
92 #endif // vtkOrderedCompositeDistributor_h
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkDataObjectAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
#define VTKPVVTKEXTENSIONSFILTERSRENDERING_EXPORT
virtual int FillInputPortInformation(int port, vtkInformation *info)
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This class distributes data for use with ordered compositing (i.e.
void operator=(const vtkObjectBase &)