collection of utility methods. More...
#include <vtkSMUtilities.h>
Public Types | |
typedef vtkSMObject | Superclass |
![]() | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
![]() | |
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) |
![]() | |
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 vtkSMUtilities * | New () |
static int | IsTypeOf (const char *type) |
static vtkSMUtilities * | SafeDownCast (vtkObject *o) |
static int | SaveImage (vtkImageData *image, const char *filename, int quality) |
Save the image to a file. More... | |
static int | SaveImage (vtkImageData *image, const char *filename) |
static int | SaveImage (vtkImageData *image, const char *filename, const char *writerName) |
Save the image to a file using a vtkImageWriter subclass given by writerName. More... | |
static int | SaveImageOnProcessZero (vtkImageData *image, const char *filename, const char *writerName) |
Calls SaveImage(image, filename, writerName) only on process 0. More... | |
static vtkPoints * | CreateOrbit (const double center[3], const double normal[3], int resolution, const double startPoint[3]) |
Returns the points an orbit to revolve around the center at a distance of radius in the plane defined by the center and the normal . More... | |
static vtkPoints * | CreateOrbit (const double center[3], const double normal[3], double radius, int resolution) |
static void | Merge (vtkImageData *dest, vtkImageData *src, int borderWidth=0, const unsigned char *borderColorRGB=nullptr) |
Convenience method used to merge a smaller image (src ) into a larger one (dest ). More... | |
static vtkSmartPointer< vtkImageData > | MergeImages (const std::vector< vtkSmartPointer< vtkImageData >> &images, int borderWidth=0, const unsigned char *borderColorRGB=nullptr) |
Merges multiple images into a single one and returns that. More... | |
static void | FillImage (vtkImageData *image, const int extent[6], const unsigned char rgb[3]) |
Fill the specified extents in the image with the given color. More... | |
![]() | |
static vtkSMObject * | New () |
static int | IsTypeOf (const char *type) |
static vtkSMObject * | SafeDownCast (vtkObject *o) |
static std::string | CreatePrettyLabel (const std::string &name) |
Return a well-formated label using provided name by adding spaces between lower cases and upper cases: More... | |
![]() | |
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 vtkTypeBool | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
static vtkObjectBase * | New () |
Protected Member Functions | |
vtkSMUtilities ()=default | |
~vtkSMUtilities () override=default | |
![]() | |
vtkSMObject () | |
~vtkSMObject () override | |
![]() | |
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 () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Additional Inherited Members | |
![]() | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
collection of utility methods.
vtkSMUtilities defines a collection of useful static methods.
Definition at line 20 of file vtkSMUtilities.h.
Definition at line 24 of file vtkSMUtilities.h.
|
protecteddefault |
|
overrideprotecteddefault |
|
static |
|
virtual |
Reimplemented from vtkSMObject.
Reimplemented from vtkSMObject.
|
static |
|
overridevirtual |
Reimplemented from vtkSMObject.
|
static |
Save the image to a file.
The file is created on the process on which this method is called. Return vtkErrorCode::NoError (0) on success, otherwise returns the error code. / quality [0,100] – 0 = low, 100=high, -1=default
|
inlinestatic |
Definition at line 35 of file vtkSMUtilities.h.
|
static |
Save the image to a file using a vtkImageWriter subclass given by writerName.
The file is created on the process on which this method is called.
|
static |
Calls SaveImage(image, filename, writerName) only on process 0.
Other processes will receive the return code through a broadcast.
|
static |
Returns the points an orbit to revolve around the center
at a distance of radius
in the plane defined by the center
and the normal
.
The number of points returned is equal to resolution
. Returns a new instance of vtkPoints. The caller is responsible for freeing the allocated memory.
|
static |
|
static |
Convenience method used to merge a smaller image (src
) into a larger one (dest
).
The location of the smaller image in the larger image are determined by their extents.
|
static |
Merges multiple images into a single one and returns that.
|
static |
Fill the specified extents in the image with the given color.
If the image is a 4 component image, then this method fills the 4th component with 0xff.