10 #ifndef vtkSMCoreUtilities_h 11 #define vtkSMCoreUtilities_h 35 static const char* GetFileNameProperty(
vtkSMProxy*);
41 static std::vector<std::string> GetFileNameProperties(
vtkSMProxy* proxy);
46 static std::string SanitizeName(
const char*);
57 static bool AdjustRangeForLog(
double range[2]);
60 double range[2] = { rmin, rmax };
83 static bool AdjustRange(
double range[2]);
86 double range[2] = { rmin, rmax };
99 static bool AlmostEqual(
const double range[2],
int ulpsDiff);
102 double range[2] = { rmin, rmax };
111 static const char* GetInputPropertyName(
vtkSMProxy* proxy,
int port = 0);
120 static const char* GetStringForCellType(
int cellType);
133 vtkSMProxy* proxy,
const std::vector<std::string>& files,
const char* propName)
137 static void ReplaceReaderFileName(
vtkSMProxy* proxy,
const std::vector<std::string>& files,
138 const char* propName,
bool userModifiedName);
146 static std::string FindLargestPrefix(
const std::vector<std::string>& files);
152 static std::optional<std::string> RecoverRegistrationName(
vtkSMProxy* proxy);
159 static std::string GetFileNameFromFileNameList(
const std::vector<std::string>& fileNames);
static bool AdjustRange(double range[2])
Adjust the given range to make it suitable for use with color maps.
static bool AlmostEqual(const double range[2], int ulpsDiff)
Compares val1 and val2 and returns true is the two numbers are within ulpsDiff ULPs (units in last pl...
#define VTKREMOTINGSERVERMANAGER_EXPORT
property representing a vector of strings
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
static bool AdjustRangeForLog(double range[2])
Given a range, converts it to be a valid range to switch to log space.
static std::string SanitizeName(const std::string &name)
static bool AdjustRangeForLog(double &rmin, double &rmax)
Given a range, converts it to be a valid range to switch to log space.
static void ReplaceReaderFileName(vtkSMProxy *proxy, const std::vector< std::string > &files, const char *propName)
Replaces input proxy, which should be a reader proxy, by a new proxy in the pipeline.
static bool AdjustRange(double &rmin, double &rmax)
Adjust the given range to make it suitable for use with color maps.
CellTypeInDataSet cellType(vtkDataSet *input)
proxy for a VTK object(s) on a server
void operator=(const vtkObjectBase &)
static std::string SanitizeName(const char *)
Sanitize a label/name to be remove spaces, delimiters etc.
static bool AlmostEqual(double rmin, double rmax, int ulpsDiff)
Compares val1 and val2 and returns true is the two numbers are within ulpsDiff ULPs (units in last pl...