/usr/include/paraview/vtkResampledAMRImageSource.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 97 98 99 100 101 102 103 104 105 106  | /*=========================================================================
  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 vtkResampledAMRImageSource - image data source that resamples an AMR
// dataset to produce the image data.
//
// .SECTION Description
// vtkResampledAMRImageSource is a image data source that resamples a
// vtkOverlappingAMR dataset to produce an image data. The output AMR will have
// both the point data and cell data from the input AMR grids passed along as point
// data for the output image data. This filter assumes that all blocks in the
// input AMR have exactly the same point/cell arrays in same order. If they are
// different we will end up with weird runtime issues that may be hard to debug.
//
// .SECTION Notes
// We subclass vtkTrivialProducer since it deals with all the meta-data that
// needs to be passed down the pipeline for image data, keeping the code here
// simple.
#ifndef vtkResampledAMRImageSource_h
#define vtkResampledAMRImageSource_h
#include "vtkTrivialProducer.h"
#include "vtkPVVTKExtensionsRenderingModule.h" // needed for export macro
#include "vtkSmartPointer.h" // needed for vtkSmartPointer
class vtkAMRBox;
class vtkImageData;
class vtkIntArray;
class vtkOverlappingAMR;
class vtkPointData;
class VTKPVVTKEXTENSIONSRENDERING_EXPORT vtkResampledAMRImageSource :
  public vtkTrivialProducer
{
public:
  static vtkResampledAMRImageSource* New();
  vtkTypeMacro(vtkResampledAMRImageSource, vtkTrivialProducer);
  void PrintSelf(ostream& os, vtkIndent indent);
  // Description:
  // Get/Set the maximum number of samples along each axis.
  vtkSetVector3Macro(MaxDimensions, int);
  vtkGetVector3Macro(MaxDimensions, int);
  // Description:
  // When provided, the resampled image is set up to cover these bounds. If not
  // provided, data bounds are used. If provided, these bounds *MUST* fit
  // within the data bounds. This is essential to ensure valid resampled volume
  // is generated.
  vtkSetVector6Macro(SpatialBounds, double);
  vtkGetVector6Macro(SpatialBounds, double);
  // Description:
  // To restart the incremental resample process, call this method. The output
  // image data is setup in the first call to Update().
  void Reset();
  // Description:
  // Updates the volume. Any non-empty pieces provided by the amr are added to
  // the resampled volume if it adds refinement to the volume.
  void UpdateResampledVolume(vtkOverlappingAMR*);
  // Description:
  // Returns true if the resampler will reinitialize the volume in the next call
  // to UpdateResampledVolume().
  bool NeedsInitialization() const
    { return (this->MTime > this->InitializationTime); }
//BTX
protected:
  vtkResampledAMRImageSource();
  ~vtkResampledAMRImageSource();
  bool Initialize(vtkOverlappingAMR* amr);
  bool UpdateResampledVolume(const unsigned int &level,
    const unsigned& index, const vtkAMRBox& box, vtkImageData* data);
  int MaxDimensions[3];
  double SpatialBounds[6];
  vtkSmartPointer<vtkImageData> ResampledAMR;
  vtkSmartPointer<vtkPointData> ResampledAMRPointData;
  vtkSmartPointer<vtkIntArray> DonorLevel;
private:
  vtkResampledAMRImageSource(const vtkResampledAMRImageSource&); // Not implemented
  void operator=(const vtkResampledAMRImageSource&); // Not implemented
  vtkTimeStamp InitializationTime;
//ETX
};
#endif
 |