Go to the documentation of this file.
10 #ifndef vtkSMCoreUtilities_h
11 #define vtkSMCoreUtilities_h
14 #include "vtkRemotingServerManagerModule.h"
33 static const char* GetFileNameProperty(
vtkSMProxy*);
39 static std::vector<std::string> GetFileNameProperties(
vtkSMProxy* proxy);
44 static std::string SanitizeName(
const char*);
55 static bool AdjustRangeForLog(
double range[2]);
58 double range[2] = { rmin, rmax };
81 static bool AdjustRange(
double range[2]);
84 double range[2] = { rmin, rmax };
97 static bool AlmostEqual(
const double range[2],
int ulpsDiff);
98 static bool AlmostEqual(
double rmin,
double rmax,
int ulpsDiff)
100 double range[2] = { rmin, rmax };
109 static const char* GetInputPropertyName(
vtkSMProxy* proxy,
int port = 0);
118 static const char* GetStringForCellType(
int cellType);
125 static void ReplaceReaderFileName(
126 vtkSMProxy* proxy,
const std::vector<std::string>& files,
const char* propName);
133 static std::string FindLargestPrefix(
const std::vector<std::string>& files);
void operator=(const vtkObjectBase &)
static std::string SanitizeName(const char *)
Sanitize a label/name to be remove spaces, delimiters etc.
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...
proxy for a VTK object(s) on a server
static std::string SanitizeName(const std::string &name)
static bool AdjustRangeForLog(double range[2])
Given a range, converts it to be a valid range to switch to log space.
static bool AdjustRange(double range[2])
Adjust the given range to make it suitable for use with color maps.
static bool AdjustRange(double &rmin, double &rmax)
Adjust the given range to make it suitable for use with color maps.
static bool AdjustRangeForLog(double &rmin, double &rmax)
Given a range, converts it to be a valid range to switch to log space.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
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...