ParaView
vtkPartitionOrderingInterface.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPartitionOrderingInterface.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/
27 #ifndef vtkPartitionOrderingInterface_h
28 #define vtkPartitionOrderingInterface_h
29 
30 #include "vtkObject.h"
31 #include "vtkPVVTKExtensionsRenderingModule.h" // needed for export macro
32 #include "vtkSmartPointer.h" // For automatic reference counting
33 
34 class vtkDataSet;
35 class vtkIntArray;
36 class vtkMultiProcessController;
37 
38 class VTKPVVTKEXTENSIONSRENDERING_EXPORT vtkPartitionOrderingInterface : public vtkObject
39 {
40 public:
41  vtkTypeMacro(vtkPartitionOrderingInterface, vtkObject);
42 
43  void PrintSelf(ostream& os, vtkIndent indent);
44  static vtkPartitionOrderingInterface* New();
45 
46  // the number of processes
47  int GetNumberOfRegions();
48 
56  int ViewOrderAllProcessesInDirection(
57  const double directionOfProjection[3], vtkIntArray* orderedList);
58 
66  int ViewOrderAllProcessesFromPosition(const double cameraPosition[3], vtkIntArray* orderedList);
67 
69 
73  void SetImplementation(vtkObject* implementation);
74  vtkObject* GetImplementation() { return this->Implementation; }
76 
77  virtual vtkMTimeType GetMTime();
78 
79 protected:
82 
83 private:
84  // Implementation must be either a vtkPKdTree object or a vtkPartitionOrdering object.
85  vtkSmartPointer<vtkObject> Implementation;
86 
88  void operator=(const vtkPartitionOrderingInterface&) VTK_DELETE_FUNCTION;
89 };
90 
91 #endif
vtkObject * GetImplementation()
Set the implementation to use for the view order methods.
Interface for ordering compositing.