Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
vtkAddonMathUtilities Class Reference

#include <Libs/vtkAddon/vtkAddonMathUtilities.h>

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

Public Types

typedef vtkObject Superclass
 

Public Member Functions

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

Static Public Member Functions

static bool FromString (vtkMatrix4x4 *mat, const std::string &str, const std::string delimiterExp="(\|\|\|\|\\\|\)")
 Convert a string in row-major order to a matrix. More...
 
static void GetOrientationMatrix (vtkMatrix4x4 *source, vtkMatrix3x3 *dest)
 
static int IsTypeOf (const char *type)
 
static bool MatrixAreEqual (const vtkMatrix4x4 *m1, const vtkMatrix4x4 *m2, double tolerance=1e-3)
 
static bool MatrixAreEqual (const vtkMatrix4x4 *m1, const vtkMatrix3x3 *m2, double tolerance=1e-3)
 
static bool MatrixAreEqual (const vtkMatrix3x3 *m1, const vtkMatrix4x4 *m2, double tolerance=1e-3)
 
static bool MatrixAreEqual (const vtkMatrix3x3 *m1, const vtkMatrix3x3 *m2, double tolerance=1e-3)
 
static vtkAddonMathUtilitiesNew ()
 
static void NormalizeColumns (vtkMatrix3x3 *m, double scale[3])
 Normalizes columns of m matrix in-place and return original column norms in scale vector. More...
 
static void NormalizeOrientationMatrixColumns (vtkMatrix4x4 *m, double scale[3])
 Normalizes columns of top-left 3x3 corner of m matrix in-place and return original column norms in scale vector. More...
 
static vtkAddonMathUtilitiesSafeDownCast (vtkObject *o)
 
static void SetOrientationMatrix (vtkMatrix3x3 *source, vtkMatrix4x4 *dest)
 
static std::string ToString (const vtkMatrix4x4 *mat, const std::string delimiter=" ", const std::string rowDelimiter="")
 Convert a matrix to a string in row-major order. More...
 

Protected Member Functions

 vtkAddonMathUtilities ()
 
 ~vtkAddonMathUtilities ()
 

Detailed Description

Definition at line 29 of file vtkAddonMathUtilities.h.

Member Typedef Documentation

◆ Superclass

Definition at line 33 of file vtkAddonMathUtilities.h.

Constructor & Destructor Documentation

◆ vtkAddonMathUtilities()

vtkAddonMathUtilities::vtkAddonMathUtilities ( )
protected

◆ ~vtkAddonMathUtilities()

vtkAddonMathUtilities::~vtkAddonMathUtilities ( )
protected

Member Function Documentation

◆ FromString()

static bool vtkAddonMathUtilities::FromString ( vtkMatrix4x4 *  mat,
const std::string &  str,
const std::string  delimiterExp = "(\|\|\|\|\\\|\)" 
)
static

Convert a string in row-major order to a matrix.

◆ GetClassName()

virtual const char* vtkAddonMathUtilities::GetClassName ( )
virtual

◆ GetOrientationMatrix()

static void vtkAddonMathUtilities::GetOrientationMatrix ( vtkMatrix4x4 *  source,
vtkMatrix3x3 *  dest 
)
static

Update orientation vectors of dest matrix with values from source matrix.

◆ IsA()

virtual int vtkAddonMathUtilities::IsA ( const char *  type)
virtual

◆ IsTypeOf()

static int vtkAddonMathUtilities::IsTypeOf ( const char *  type)
static

◆ MatrixAreEqual() [1/4]

static bool vtkAddonMathUtilities::MatrixAreEqual ( const vtkMatrix4x4 *  m1,
const vtkMatrix4x4 *  m2,
double  tolerance = 1e-3 
)
static

◆ MatrixAreEqual() [2/4]

static bool vtkAddonMathUtilities::MatrixAreEqual ( const vtkMatrix4x4 *  m1,
const vtkMatrix3x3 *  m2,
double  tolerance = 1e-3 
)
static

◆ MatrixAreEqual() [3/4]

static bool vtkAddonMathUtilities::MatrixAreEqual ( const vtkMatrix3x3 *  m1,
const vtkMatrix4x4 *  m2,
double  tolerance = 1e-3 
)
static

◆ MatrixAreEqual() [4/4]

static bool vtkAddonMathUtilities::MatrixAreEqual ( const vtkMatrix3x3 *  m1,
const vtkMatrix3x3 *  m2,
double  tolerance = 1e-3 
)
static

◆ New()

static vtkAddonMathUtilities* vtkAddonMathUtilities::New ( )
static

◆ NormalizeColumns()

static void vtkAddonMathUtilities::NormalizeColumns ( vtkMatrix3x3 *  m,
double  scale[3] 
)
static

Normalizes columns of m matrix in-place and return original column norms in scale vector.

◆ NormalizeOrientationMatrixColumns()

static void vtkAddonMathUtilities::NormalizeOrientationMatrixColumns ( vtkMatrix4x4 *  m,
double  scale[3] 
)
static

Normalizes columns of top-left 3x3 corner of m matrix in-place and return original column norms in scale vector.

◆ PrintSelf()

virtual void vtkAddonMathUtilities::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

◆ SafeDownCast()

static vtkAddonMathUtilities* vtkAddonMathUtilities::SafeDownCast ( vtkObject *  o)
static

◆ SetOrientationMatrix()

static void vtkAddonMathUtilities::SetOrientationMatrix ( vtkMatrix3x3 *  source,
vtkMatrix4x4 *  dest 
)
static

Update orientation vectors of dest matrix with values from source matrix.

◆ ToString()

static std::string vtkAddonMathUtilities::ToString ( const vtkMatrix4x4 *  mat,
const std::string  delimiter = " ",
const std::string  rowDelimiter = "" 
)
static

Convert a matrix to a string in row-major order.


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