class VectorField

Represents a three dimensional field of vectors.

It is represented by spatial bounds which are split into a grid of values with user-defined density, where each grid cell is assigned a vector.

Public

Constructors

VectorField

VectorField() = default

*********************************************************************

Methods

staticCreate

static HVectorField Create(const VECTOR_FIELD_DESC &desc, const Vector<Vector3> &values)

Creates a new vector field.

desc
Description of the vector field to create.
values
Values to assign to the vector field. Number of entries must match countX * countY * countZ.

staticGetRttiStatic

static RTTIType *GetRttiStatic()

GetRtti

RTTIType *GetRtti() const override

Returns an interface you can use to access class' Run Time Type Information.

~TVectorField<IsRenderProxy>

virtual ~TVectorField<IsRenderProxy>() = default

GetTexture

TextureType GetTexture() const

Returns the internal texture representing the vector field.

GetDesc

const VECTOR_FIELD_DESC &GetDesc() const

Returns a structure describing the properties of the object.

Internal

Methods

staticCreatePtrInternal

static SPtr<VectorField> CreatePtrInternal(const VECTOR_FIELD_DESC &desc, const Vector<Vector3> &values)

Same as create() excepts it creates a pointer to the vector field instead of a handle.

staticCreateEmptyInternal

static SPtr<VectorField> CreateEmptyInternal()

Creates the resource without initializing it.

Protected

Constructors

VectorField

VectorField(const VECTOR_FIELD_DESC &desc, const Vector<Vector3> &values)

Methods

CreateRenderProxy

SPtr<render::RenderProxy> CreateRenderProxy() const override

Creates an object that contains render thread specific data and methods for this object.

Can be null if such object is not required.

Fields

mDesc

mTexture

TextureType mTexture