vtkbone
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
vtkboneTensor Class Reference

supporting class to enable assignment and referencing of tensors More...

#include <vtkboneTensor.h>

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

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
void Initialize ()
 
double GetComponent (int i, int j)
 
void SetComponent (int i, int j, double v)
 
void AddComponent (int i, int j, double v)
 
doubleGetColumn (int j)
 
void DeepCopy (vtkboneTensor *t)
 
 operator double * ()
 
- 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 PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE
 
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)
 
vtkCommandGetCommand (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)
 
vtkCommandGetCommand (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 vtkboneTensorNew ()
 
static int IsTypeOf (const char *type)
 
static vtkboneTensorSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkObject
static vtkObjectNew ()
 
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 vtkObjectBaseNew ()
 
static vtkObjectBaseNew ()
 

Public Attributes

doubleT
 

Protected Member Functions

 vtkboneTensor ()
 
 ~vtkboneTensor ()
 
- 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 &)
 

Protected Attributes

double Storage [9]
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Detailed Description

supporting class to enable assignment and referencing of tensors

vtkboneTensor is a floating point representation of an nxn tensor. vtkboneTensor provides methods for assignment and reference of tensor components. It does it in such a way as to minimize data copying.

Warning
vtkboneTensor performs its operations using pointer reference. You are responsible for supplying data storage (if necessary) if local copies of data are being made.

Definition at line 34 of file vtkboneTensor.h.

Constructor & Destructor Documentation

◆ vtkboneTensor()

vtkboneTensor::vtkboneTensor ( )
protected

◆ ~vtkboneTensor()

vtkboneTensor::~vtkboneTensor ( )
inlineprotected

Definition at line 74 of file vtkboneTensor.h.

Member Function Documentation

◆ New()

static vtkboneTensor * vtkboneTensor::New ( )
static

◆ GetClassName()

virtual const char * vtkboneTensor::GetClassName ( )
virtual

◆ IsTypeOf()

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

◆ IsA()

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

Reimplemented from vtkObjectBase.

◆ SafeDownCast()

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

◆ PrintSelf()

void vtkboneTensor::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
overridevirtual

Reimplemented from vtkObjectBase.

◆ Initialize()

void vtkboneTensor::Initialize ( )
inline

Initialize tensor components to 0.0.

Definition at line 83 of file vtkboneTensor.h.

◆ GetComponent()

double vtkboneTensor::GetComponent ( int  i,
int  j 
)
inline

Get the tensor component (i,j).

Definition at line 45 of file vtkboneTensor.h.

◆ SetComponent()

void vtkboneTensor::SetComponent ( int  i,
int  j,
double  v 
)
inline

Set the value of the tensor component (i,j).

Definition at line 49 of file vtkboneTensor.h.

◆ AddComponent()

void vtkboneTensor::AddComponent ( int  i,
int  j,
double  v 
)
inline

Add to the value of the tensor component at location (i,j).

Definition at line 54 of file vtkboneTensor.h.

◆ GetColumn()

double * vtkboneTensor::GetColumn ( int  j)
inline

Return column vector from tensor. (Assumes 2D matrix form and 0-offset.)

Definition at line 60 of file vtkboneTensor.h.

◆ DeepCopy()

void vtkboneTensor::DeepCopy ( vtkboneTensor t)
inline

Deep copy of one tensor to another tensor.

Definition at line 95 of file vtkboneTensor.h.

◆ operator double *()

vtkboneTensor::operator double * ( )
inline

Provide double * type conversion.

Definition at line 67 of file vtkboneTensor.h.

Member Data Documentation

◆ T

double* vtkboneTensor::T

Data member left public for efficiency.

Definition at line 70 of file vtkboneTensor.h.

◆ Storage

double vtkboneTensor::Storage[9]
protected

Definition at line 76 of file vtkboneTensor.h.


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