ParaView
Public Member Functions | Static Public Member Functions | Protected Member Functions
vtkSMUtilities Class Reference

collection of utility methods. More...

#include <vtkSMUtilities.h>

Inheritance diagram for vtkSMUtilities:
Inheritance graph
[legend]
Collaboration diagram for vtkSMUtilities:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)

Static Public Member Functions

static vtkSMUtilitiesNew ()
static int IsTypeOf (const char *type)
static vtkSMUtilitiesSafeDownCast (vtkObject *o)
static vtkPointsCreateOrbit (const double center[3], const double normal[3], double radius, int resolution)
static int SaveImage (vtkImageData *image, const char *filename, int quality)
static int SaveImage (vtkImageData *image, const char *filename)
static int SaveImage (vtkImageData *image, const char *filename, const char *writerName)
static int SaveImageOnProcessZero (vtkImageData *image, const char *filename, const char *writerName)
static vtkPointsCreateOrbit (const double center[3], const double normal[3], int resolution, const double startPoint[3])

Protected Member Functions

 vtkSMUtilities ()
 ~vtkSMUtilities ()

Detailed Description

collection of utility methods.

vtkSMUtilities defines a collection of useful static methods.

Definition at line 28 of file vtkSMUtilities.h.


Constructor & Destructor Documentation

vtkSMUtilities::vtkSMUtilities ( ) [inline, protected]

Definition at line 77 of file vtkSMUtilities.h.

vtkSMUtilities::~vtkSMUtilities ( ) [inline, protected]

Definition at line 78 of file vtkSMUtilities.h.


Member Function Documentation

static vtkSMUtilities* vtkSMUtilities::New ( ) [static]

Reimplemented from vtkSMObject.

virtual const char* vtkSMUtilities::GetClassName ( ) [virtual]

Reimplemented from vtkSMObject.

static int vtkSMUtilities::IsTypeOf ( const char *  type) [static]

Reimplemented from vtkSMObject.

virtual int vtkSMUtilities::IsA ( const char *  type) [virtual]

Reimplemented from vtkSMObject.

static vtkSMUtilities* vtkSMUtilities::SafeDownCast ( vtkObject o) [static]

Reimplemented from vtkSMObject.

void vtkSMUtilities::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Reimplemented from vtkSMObject.

static int vtkSMUtilities::SaveImage ( vtkImageData image,
const char *  filename,
int  quality 
) [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

static int vtkSMUtilities::SaveImage ( vtkImageData image,
const char *  filename 
) [inline, 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

Definition at line 42 of file vtkSMUtilities.h.

static int vtkSMUtilities::SaveImage ( vtkImageData image,
const char *  filename,
const char *  writerName 
) [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 int vtkSMUtilities::SaveImageOnProcessZero ( vtkImageData image,
const char *  filename,
const char *  writerName 
) [static]

Calls SaveImage(image, filename, writerName) only on process 0. Other processes will recieve the return code through a broadcast.

static vtkPoints* vtkSMUtilities::CreateOrbit ( const double  center[3],
const double  normal[3],
int  resolution,
const double  startPoint[3] 
) [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 vtkPoints* vtkSMUtilities::CreateOrbit ( const double  center[3],
const double  normal[3],
double  radius,
int  resolution 
) [static]

The documentation for this class was generated from the following file: