/usr/include/paraview/vtkAMRStreamingPriorityQueue.h is in paraview-dev 5.0.1+dfsg1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | /*=========================================================================
Program: ParaView
Module: $RCSfile$
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkAMRStreamingPriorityQueue - implements a coverage based priority
// queue for vtkOverlappingAMR dataset.
// .SECTION Description
// vtkAMRStreamingPriorityQueue is used by representations supporting streaming
// of AMR datasets to determine the priorities for blocks in the dataset. This
// class relies on the bounds information provided by the AMR meta-data i.e.
// vtkAMRInformation. This class support view-based priority computation. Simply
// provide the view planes (returned by vtkCamera::GetFrustumPlanes()) to the
// vtkAMRStreamingPriorityQueue::Update() call to update the prorities for the
// blocks currently in the queue.
// .SECTION See Also
// vtkAMROutlineRepresentation, vtkAMRStreamingVolumeRepresentation.
#ifndef vtkAMRStreamingPriorityQueue_h
#define vtkAMRStreamingPriorityQueue_h
#include "vtkPVClientServerCoreRenderingModule.h" // for export macros
#include "vtkObject.h"
class vtkAMRInformation;
class vtkMultiProcessController;
class VTKPVCLIENTSERVERCORERENDERING_EXPORT vtkAMRStreamingPriorityQueue : public vtkObject
{
public:
static vtkAMRStreamingPriorityQueue* New();
vtkTypeMacro(vtkAMRStreamingPriorityQueue, vtkObject);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// If the controller is specified, the queue can be used in parallel. So long
// as Initialize(), Update() and Pop() methods are called on all processes
// (need not be synchronized) and all process get the same amr tree and
// view_planes (which is generally true with ParaView), the blocks are
// distributed among the processes.
// By default, this is set to the
// vtkMultiProcessController::GetGlobalController();
void SetController(vtkMultiProcessController*);
vtkGetObjectMacro(Controller, vtkMultiProcessController);
// Description:
// Initializes the queue. All information about items in the is lost.
void Initialize(vtkAMRInformation* amr);
// Description:
// Re-initializes the priority queue using the amr structure given to the most
// recent call to Initialize().
void Reinitialize();
// Description:
// Updates the priorities of blocks based on the new view frustum planes.
// Information about blocks "popped" from the queue is preserved and those
// blocks are not reinserted in the queue.
void Update(const double view_planes[24], const double clamp_bounds[6]);
void Update(const double view_planes[24]);
// Description:
// Returns if the queue is empty.
bool IsEmpty();
// Description:
// Pops and returns of composite id for the block at the top of the queue.
// Test if the queue is empty before calling this method.
unsigned int Pop();
//BTX
protected:
vtkAMRStreamingPriorityQueue();
~vtkAMRStreamingPriorityQueue();
vtkMultiProcessController* Controller;
private:
vtkAMRStreamingPriorityQueue(const vtkAMRStreamingPriorityQueue&); // Not implemented
void operator=(const vtkAMRStreamingPriorityQueue&); // Not implemented
class vtkInternals;
vtkInternals* Internals;
//ETX
};
#endif
|