vtkPVDataDeliveryManager.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVDataDeliveryManager
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 =========================================================================*/
29 #ifndef vtkPVDataDeliveryManager_h
30 #define vtkPVDataDeliveryManager_h
31 
32 #include "vtkObject.h"
33 #include "vtkRemotingViewsModule.h" //needed for exports
34 #include "vtkSmartPointer.h" // needed for iVar.
35 #include "vtkTuple.h" // needed for vtkTuple.
36 #include "vtkWeakPointer.h" // needed for iVar.
37 
38 class vtkAlgorithmOutput;
39 class vtkDataObject;
41 class vtkInformation;
43 class vtkPVView;
44 
45 #include <vector>
46 
48 {
49 public:
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
54 
57  void SetView(vtkPVView*);
58  vtkPVView* GetView() const;
60 
65  int GetSynchronizationMagicNumber();
66 
68 
74  void RegisterRepresentation(vtkPVDataRepresentation* repr);
75  void UnRegisterRepresentation(vtkPVDataRepresentation*);
76  vtkPVDataRepresentation* GetRepresentation(unsigned int);
78 
80 
86  void SetPiece(vtkPVDataRepresentation* repr, vtkDataObject* data, bool low_res,
87  unsigned long trueSize = 0, int port = 0);
89 
91  bool HasPiece(vtkPVDataRepresentation* repr, bool low_res = false, int port = 0);
93 
98  vtkDataObject* GetPiece(vtkPVDataRepresentation* repr, bool low_res, int port = 0);
99 
103  vtkDataObject* GetDeliveredPiece(vtkPVDataRepresentation* repr, bool low_res, int port = 0);
104 
108  void ClearCache(vtkPVDataRepresentation* repr);
109 
111 
117  vtkAlgorithmOutput* GetProducer(vtkPVDataRepresentation*, bool low_res, int port = 0);
119 
121 
125  vtkInformation* GetPieceInformation(vtkPVDataRepresentation* repr, bool low_res, int port = 0);
127 
129 
132  int GetNumberOfPorts(vtkPVDataRepresentation* repr);
134 
141  unsigned long GetVisibleDataSize(bool low_res);
142 
149  bool NeedsDelivery(
150  vtkMTimeType timestamp, std::vector<unsigned int>& keys_to_deliver, bool use_lod);
151 
155  void Deliver(int use_low_res, unsigned int size, unsigned int* keys);
156 
166  virtual int GetDeliveredDataKey(bool low_res) const
167  {
168  (void)low_res;
169  return 0;
170  }
171 
172 protected:
174  ~vtkPVDataDeliveryManager() override;
175 
176  double GetCacheKey(vtkPVDataRepresentation* repr) const;
177 
182  virtual void MoveData(vtkPVDataRepresentation* repr, bool low_res, int port) = 0;
183 
186 
187 private:
189  void operator=(const vtkPVDataDeliveryManager&) = delete;
190 
192 };
193 
194 #endif
195 
196 // VTK-HeaderTest-Exclude: vtkPVDataDeliveryManager.h
manager for data-delivery.
virtual int GetDeliveredDataKey(bool low_res) const
Views that support changing of which ranks do the rendering at runtime based on things like data size...
#define VTKREMOTINGVIEWS_EXPORT
vtkPVDataRepresentation adds some ParaView specific API to data representations.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
vtkTypeUInt64 vtkMTimeType
baseclass for all ParaView views.
Definition: vtkPVView.h:44
port
void operator=(const vtkObjectBase &)