collection of utilities. More...
#include <vtkSMCoreUtilities.h>
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
Public Member Functions inherited from vtkObject | |
vtkBaseTypeMacro (vtkObject, vtkObjectBase) | |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual vtkMTimeType | GetMTime () |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
Public Member Functions inherited from vtkObjectBase | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
void | PrintRevisions (ostream &) |
Static Public Member Functions | |
static vtkSMCoreUtilities * | New () |
static int | IsTypeOf (const char *type) |
static vtkSMCoreUtilities * | SafeDownCast (vtkObject *o) |
static const char * | GetFileNameProperty (vtkSMProxy *) |
Given a proxy (or proxy prototype), returns the name of the property that ParaView application will be use as the default FileName property. More... | |
static std::string | SanitizeName (const char *) |
Sanitize a label/name to be remove spaces, delimiters etc. More... | |
static const char * | GetStringForCellType (int cellType) |
Given a VTK cell type value from the enum in vtkCellTypes.h, returns a string describing that cell type for use if ParaView's GUI. More... | |
static bool | AdjustRangeForLog (double range[2]) |
Given a range, converts it to be a valid range to switch to log space. More... | |
static bool | AdjustRangeForLog (double &rmin, double &rmax) |
Given a range, converts it to be a valid range to switch to log space. More... | |
static bool | AdjustRange (double range[2]) |
Adjust the given range to make it suitable for use with color maps. More... | |
static bool | AdjustRange (double &rmin, double &rmax) |
Adjust the given range to make it suitable for use with color maps. More... | |
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 place) from each other. More... | |
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 place) from each other. More... | |
static const char * | GetInputPropertyName (vtkSMProxy *proxy, int port=0) |
Given a proxy and a port number get the name of the input. More... | |
Static Public Member Functions inherited from vtkObject | |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
Static Public Member Functions inherited from vtkObjectBase | |
static vtkTypeBool | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
static vtkObjectBase * | New () |
Protected Member Functions | |
vtkSMCoreUtilities () | |
~vtkSMCoreUtilities () override | |
Protected Member Functions inherited from vtkObject | |
vtkObject () | |
virtual | ~vtkObject () |
void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE |
void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
Protected Member Functions inherited from vtkObjectBase | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Additional Inherited Members | |
Protected Attributes inherited from vtkObject | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
Protected Attributes inherited from vtkObjectBase | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
collection of utilities.
vtkSMCoreUtilities provides miscellaneous utility functions.
Definition at line 32 of file vtkSMCoreUtilities.h.
Definition at line 36 of file vtkSMCoreUtilities.h.
|
protected |
|
overrideprotected |
|
static |
|
virtual |
Reimplemented from vtkObjectBase.
|
static |
|
overridevirtual |
Reimplemented from vtkObject.
|
static |
Given a proxy (or proxy prototype), returns the name of the property that ParaView application will be use as the default FileName property.
Returns the name of the property or NULL when no such property is found.
|
static |
Sanitize a label/name to be remove spaces, delimiters etc.
|
static |
Given a range, converts it to be a valid range to switch to log space.
If the range is changed, returns true, otherwise returns false.
Given a range, converts it to be a valid range to switch to log space.
If the range is changed, returns true, otherwise returns false.
Definition at line 57 of file vtkSMCoreUtilities.h.
|
static |
Adjust the given range to make it suitable for use with color maps.
The current logic (which may change in future) does the following:
false
and keeps the range unchanged.true
if the range was changed, false
is the range was left unchanged. Adjust the given range to make it suitable for use with color maps.
The current logic (which may change in future) does the following:
false
and keeps the range unchanged.true
if the range was changed, false
is the range was left unchanged. Definition at line 83 of file vtkSMCoreUtilities.h.
Compares val1
and val2
and returns true is the two numbers are within ulpsDiff
ULPs (units in last place) from each other.
Compares val1
and val2
and returns true is the two numbers are within ulpsDiff
ULPs (units in last place) from each other.
Definition at line 99 of file vtkSMCoreUtilities.h.
|
static |
Given a proxy and a port number get the name of the input.
Given a VTK cell type value from the enum in vtkCellTypes.h, returns a string describing that cell type for use if ParaView's GUI.
For example it pasesd VTK_TRIANGLE it will return "Triangle". If an unknown cell type is passed to this it returns the string "Unknown".