/usr/include/paraview/vtkPVGeneralSettings.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 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | /*=========================================================================
Program: ParaView
Module: vtkPVGeneralSettings.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 vtkPVGeneralSettings - object for general options.
// .SECTION Description
// vtkPVGeneralSettings keeps track of general options in a ParaView
// application.
// This is a singleton. All calls to vtkPVGeneralSettings::New() return a
// pointer to the same global instance (with reference count incremented as
// expected).
#ifndef vtkPVGeneralSettings_h
#define vtkPVGeneralSettings_h
#include "vtkObject.h"
#include "vtkPVServerManagerDefaultModule.h" //needed for exports
#include "vtkSmartPointer.h" // needed for vtkSmartPointer.
class VTKPVSERVERMANAGERDEFAULT_EXPORT vtkPVGeneralSettings : public vtkObject
{
public:
static vtkPVGeneralSettings* New();
vtkTypeMacro(vtkPVGeneralSettings, vtkObject);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Access the singleton.
static vtkPVGeneralSettings* GetInstance();
// Description:
// Automatically convert data arrays as needed by filters including converting
// cell arrays to point arrays, or vice versa, and extracting single components
// from multi-component arrays.
// Forwards the call to vtkSMInputArrayDomain::SetAutomaticPropertyConversion.
void SetAutoConvertProperties(bool val);
bool GetAutoConvertProperties();
// Description:
// Determines the number of distinct values in
// vtkBlockColors. This array is added to each block if
// the dataset is a composite dataset. The array has one value
// set to (blockIndex % BlockColorsDistinctValues)
vtkGetMacro(BlockColorsDistinctValues, int);
vtkSetMacro(BlockColorsDistinctValues, int);
// Description:
// Automatically apply changes in the 'Properties' panel.
vtkGetMacro(AutoApply, bool);
vtkSetMacro(AutoApply, bool);
// Description:
// Automatically apply changes in the 'Properties' panel.
vtkGetMacro(AutoApplyActiveOnly, bool);
vtkSetMacro(AutoApplyActiveOnly, bool);
// Description:
// Enable auto-mpi. Forwarded to vtkProcessModuleAutoMPI.
void SetEnableAutoMPI(bool);
bool GetEnableAutoMPI();
// Description:
// Set the core limit for auto-mpi.
void SetAutoMPILimit(int val);
int GetAutoMPILimit();
// Description:
// Get/Set the default view type.
vtkGetStringMacro(DefaultViewType);
vtkSetStringMacro(DefaultViewType);
// Description:
// Enum for DefaultTimeStep
enum
{
DEFAULT_TIME_STEP_UNCHANGED,
DEFAULT_TIME_STEP_FIRST,
DEFAULT_TIME_STEP_LAST
};
// Description:
// Enum for TransferFunctionResetMode
enum
{
GROW_ON_APPLY=0,
GROW_ON_APPLY_AND_TIMESTEP=1,
RESET_ON_APPLY=2,
RESET_ON_APPLY_AND_TIMESTEP=3
};
// Description:
// Get/Set the transfer function reset mode.
vtkGetMacro(TransferFunctionResetMode, int);
vtkSetMacro(TransferFunctionResetMode, int);
// Description:
// Enum for ScalarBarMode.
enum
{
AUTOMATICALLY_SHOW_AND_HIDE_SCALAR_BARS=0,
AUTOMATICALLY_HIDE_SCALAR_BARS=1,
MANUAL_SCALAR_BARS=2
};
vtkGetMacro(ScalarBarMode, int);
void SetScalarBarMode(int);
// Description:
// Set when animation geometry caching is enabled.
void SetCacheGeometryForAnimation(bool val);
vtkGetMacro(CacheGeometryForAnimation, bool);
// Description:
// Set the animation cache limit in KBs.
void SetAnimationGeometryCacheLimit(unsigned long val);
vtkGetMacro(AnimationGeometryCacheLimit, unsigned long);
// Description:
// Forwarded for vtkSMParaViewPipelineControllerWithRendering.
void SetInheritRepresentationProperties(bool val);
enum
{
ALL_IN_ONE=0,
SEPARATE_DISPLAY_PROPERTIES=1,
SEPARATE_VIEW_PROPERTIES=2,
ALL_SEPARATE=3
};
// Description:
// Properties panel configuration.
vtkSetMacro(PropertiesPanelMode, int);
vtkGetMacro(PropertiesPanelMode, int);
// Description:
// Forwarded to vtkSMViewLayoutProxy.
void SetMultiViewImageBorderColor(double r, double g, double b);
void SetMultiViewImageBorderWidth(int width);
// Description:
// Forwarded to vtkSMViewProxy.
void SetTransparentBackground(bool val);
//BTX
protected:
vtkPVGeneralSettings();
~vtkPVGeneralSettings();
int BlockColorsDistinctValues;
bool AutoApply;
bool AutoApplyActiveOnly;
char* DefaultViewType;
int TransferFunctionResetMode;
int ScalarBarMode;
bool CacheGeometryForAnimation;
unsigned long AnimationGeometryCacheLimit;
int PropertiesPanelMode;
private:
vtkPVGeneralSettings(const vtkPVGeneralSettings&); // Not implemented
void operator=(const vtkPVGeneralSettings&); // Not implemented
static vtkSmartPointer<vtkPVGeneralSettings> Instance;
//ETX
};
#endif
|