22 #ifndef vtkSMCoreUtilities_h 23 #define vtkSMCoreUtilities_h 45 static const char* GetFileNameProperty(
vtkSMProxy*);
51 static std::vector<std::string> GetFileNameProperties(
vtkSMProxy* proxy);
56 static std::string SanitizeName(
const char*);
67 static bool AdjustRangeForLog(
double range[2]);
70 double range[2] = { rmin, rmax };
93 static bool AdjustRange(
double range[2]);
96 double range[2] = { rmin, rmax };
109 static bool AlmostEqual(
const double range[2],
int ulpsDiff);
112 double range[2] = { rmin, rmax };
121 static const char* GetInputPropertyName(
vtkSMProxy* proxy,
int port = 0);
130 static const char* GetStringForCellType(
int cellType);
137 static void ReplaceReaderFileName(
138 vtkSMProxy* proxy,
const std::vector<std::string>& files,
const char* propName);
145 static std::string FindLargestPrefix(
const std::vector<std::string>& files);
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
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 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...