vtkOrderedCompositingHelper.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkOrderedCompositingHelper.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 =========================================================================*/
23 #ifndef vtkOrderedCompositingHelper_h
24 #define vtkOrderedCompositingHelper_h
25 
26 #include "vtkBoundingBox.h" // needed for ivar
27 #include "vtkObject.h"
28 #include "vtkRemotingViewsModule.h" //needed for exports
29 
30 #include <vector>
31 
32 class vtkBoundingBox;
33 class vtkCamera;
34 
36 {
37 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
42  void SetBoundingBoxes(const std::vector<vtkBoundingBox>& boxes);
43  const std::vector<vtkBoundingBox>& GetBoundingBoxes() const { return this->Boxes; }
44  const vtkBoundingBox& GetBoundingBox(int index) const;
45 
46  std::vector<int> ComputeSortOrder(vtkCamera* camera);
47  std::vector<int> ComputeSortOrderInViewDirection(const double directionOfProjection[3]);
48  std::vector<int> ComputeSortOrderFromPosition(const double position[3]);
49 
50 protected:
53 
54  std::vector<vtkBoundingBox> Boxes;
55 
56 private:
58  void operator=(const vtkOrderedCompositingHelper&) = delete;
59 
60  const vtkBoundingBox InvalidBox;
61 };
62 
63 #endif
const std::vector< vtkBoundingBox > & GetBoundingBoxes() const
#define VTKREMOTINGVIEWS_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
std::vector< vtkBoundingBox > Boxes
static vtkObject * New()
index
void operator=(const vtkObjectBase &)
helper to assist in determine process order when rendering
position