/usr/include/paraview/vtkSMMultiSliceViewProxy.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 | /*=========================================================================
Program: ParaView
Module: vtkSMMultiSliceViewProxy.h
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 vtkSMMultiSliceViewProxy
// .SECTION Description
// Custom RenderViewProxy to override CreateDefaultRepresentation method
// so only the Multi-Slice representation will be available to the user
#ifndef vtkSMMultiSliceViewProxy_h
#define vtkSMMultiSliceViewProxy_h
#include "vtkPVServerManagerRenderingModule.h" //needed for exports
#include "vtkSMRenderViewProxy.h"
class vtkSMSourceProxy;
class VTKPVSERVERMANAGERRENDERING_EXPORT vtkSMMultiSliceViewProxy : public vtkSMRenderViewProxy
{
public:
static vtkSMMultiSliceViewProxy* New();
vtkTypeMacro(vtkSMMultiSliceViewProxy, vtkSMRenderViewProxy);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Similar to IsSelectionAvailable(), however, on failure returns the
// error message otherwise 0.
virtual const char* IsSelectVisiblePointsAvailable();
// Description:
// Overridden to set initial default slices when a representation is created.
// Not sure that's the best way to do this, but leaving the logic unchanged in
// this pass.
virtual vtkSMRepresentationProxy* CreateDefaultRepresentation(
vtkSMProxy* proxy, int outputPort);
// Description:
// Overridden to forward the call to the internal root view proxy.
virtual const char* GetRepresentationType(
vtkSMSourceProxy* producer, int outputPort);
// Description:
// Fetchs data bounds from the client-side object. We simply fetch the
// client-side data bounds since vtkPVMultiSliceView ensures that they are
// synced among all ranks in Update().
void GetDataBounds(double bounds[6]);
// Description:
// HACK: method to force representation type to "Slices".
static void ForceRepresentationType(vtkSMProxy* reprProxy, const char* type);
// Description:
// HACK: Get source's input data bounds (or BoundingBoxInModelCoordinates if
// present).
static bool GetDataBounds(vtkSMSourceProxy* source, int opport, double bounds[6]);
//BTX
protected:
vtkSMMultiSliceViewProxy();
~vtkSMMultiSliceViewProxy();
// Description:
// Use the center of the source to initialize the view with three orthogonal
// slices in x, y, z.
void InitDefaultSlices(vtkSMSourceProxy* source, int opport,
vtkSMRepresentationProxy* repr);
private:
vtkSMMultiSliceViewProxy(const vtkSMMultiSliceViewProxy&); // Not implemented
void operator=(const vtkSMMultiSliceViewProxy&); // Not implemented
class vtkInternals;
vtkInternals* Internals;
//ETX
};
#endif
|