VTK: Common/DataModel/vtkVector.h File Reference

| VTK 9.3.1

Classes | Macros
vtkVector.h File Reference
`#include "vtkObject.h"`
`#include "vtkTuple.h"`
`#include <cmath>`
Include dependency graph for vtkVector.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Classes
class | vtkVector< T, Size >
| templated base type for storage of vectors. More...
class | vtkVector2< T >
class | vtkVector3< T >
class | vtkVector4< T >
class | vtkVector2i
| Some derived classes for the different vectors commonly used. More...
class | vtkVector2f
class | vtkVector2d
class | vtkVector3i
class | vtkVector3f
class | vtkVector3d
class | vtkVector4i
class | vtkVector4d

## Macros
#define | vtkVectorNormalized(vectorType, type, size)
| Some inline functions for the derived types. More...
#define | vtkVectorDerivedMacro(vectorType, type, size)
#define | vtkVector3Cross(vectorType, type)

## Macro Definition Documentation

## ◆ vtkVectorNormalized

#define vtkVectorNormalized | ( |  | vectorType,
|  |  | type,
|  |  | size
| ) |  |

Value:
vectorType Normalized() const \
{ \
return vectorType(vtkVector<type, size>::Normalized().GetData()); \
}
vtkVector
templated base type for storage of vectors.
Definition: vtkVector.h:39
vtkIOSSUtilities::GetData
vtkSmartPointer< vtkDataArray > GetData(const Ioss::GroupingEntity *entity, const std::string &fieldname, Ioss::Transform *transform=nullptr, Cache *cache=nullptr, const std::string &cachekey=std::string())
Returns a VTK array for a given field (fieldname) on the chosen block (or set) entity.

Some inline functions for the derived types.

Definition at line 420 of file vtkVector.h.

## ◆ vtkVectorDerivedMacro

#define vtkVectorDerivedMacro | ( |  | vectorType,
|  |  | type,
|  |  | size
| ) |  |

Value:
vtkVectorNormalized(vectorType, type, size); \
explicit vectorType(type s) \
: Superclass(s) \
{ \
} \
explicit vectorType(const type* i) \
: Superclass(i) \
{ \
} \
explicit vectorType(const vtkTuple<type, size>& o) \
: Superclass(o.GetData()) \
{ \
} \
vectorType(const vtkVector<type, size>& o) \
: Superclass(o.GetData()) \
{ \
}
vtkTuple
templated base type for containers of constant size.
Definition: vtkTuple.h:27
vtkX3D::type
@ type
Definition: vtkX3D.h:516
vtkX3D::size
@ size
Definition: vtkX3D.h:253
vtkVectorNormalized
#define vtkVectorNormalized(vectorType, type, size)
Some inline functions for the derived types.
Definition: vtkVector.h:420

Definition at line 426 of file vtkVector.h.

## ◆ vtkVector3Cross

#define vtkVector3Cross | ( |  | vectorType,
|  |  | type
| ) |  |

Value:
vectorType Cross(const vectorType& other) const \
{ \
return vectorType(vtkVector3<type>::Cross(other).GetData()); \
}
vtkVector3
Definition: vtkVector.h:247

Definition at line 486 of file vtkVector.h.