Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::SpatialCoordinateTransformerImpl Class Reference
Inheritance diagram for inviwo::SpatialCoordinateTransformerImpl:

Public Member Functions

virtual SpatialCoordinateTransformerImpl * clone () const
virtual glm::mat4 getDataToModelMatrix () const
virtual glm::mat4 getDataToWorldMatrix () const
virtual glm::mat4 getModelToDataMatrix () const
virtual glm::mat4 getModelToWorldMatrix () const
virtual glm::mat4 getWorldToDataMatrix () const
virtual glm::mat4 getWorldToModelMatrix () const
void setEntity (const SpatialEntity &entity)
 SpatialCoordinateTransformerImpl (const SpatialEntity &entity)
Public Member Functions inherited from inviwo::SpatialCoordinateTransformer
glm::mat3 getInverseMetricTensor () const
 Computes the inverse metric tensor for the dataToWorld basis. This it useful for gradient computation.
virtual glm::mat4 getMatrix (CoordinateSpace from, CoordinateSpace to) const
glm::mat3 getMetricTensor () const
 Computes the metric tensor for the dataToWorld basis.
virtual glm::vec3 transformNormal (const vec3 &normal, CoordinateSpace from, CoordinateSpace to) const
virtual glm::vec3 transformPosition (const vec3 &pos, CoordinateSpace from, CoordinateSpace to) const
virtual glm::vec4 transformPositionHomogeneous (const vec4 &pos, CoordinateSpace from, CoordinateSpace to) const

Protected Member Functions

virtual glm::mat4 getModelMatrix () const
virtual glm::mat4 getWorldMatrix () const
SpatialCoordinateTransformerImpl & operator= (const SpatialCoordinateTransformerImpl &that)=delete
SpatialCoordinateTransformerImpl & operator= (SpatialCoordinateTransformerImpl &&that)=delete
 SpatialCoordinateTransformerImpl (const SpatialCoordinateTransformerImpl &rhs)=default
 SpatialCoordinateTransformerImpl (SpatialCoordinateTransformerImpl &&rhs)=delete
Protected Member Functions inherited from inviwo::SpatialCoordinateTransformer
SpatialCoordinateTransformer & operator= (const SpatialCoordinateTransformer &)=delete
SpatialCoordinateTransformer & operator= (SpatialCoordinateTransformer &&)=delete
 SpatialCoordinateTransformer (const SpatialCoordinateTransformer &)=default
 SpatialCoordinateTransformer (SpatialCoordinateTransformer &&)=delete

Additional Inherited Members

Static Public Member Functions inherited from inviwo::SpatialCoordinateTransformer
static glm::mat3 getMetricTensor (glm::mat3 basis)
 Computes the metric tensor g_ij from a set of basis vectors.

Member Function Documentation

◆ clone()

virtual SpatialCoordinateTransformerImpl * inviwo::SpatialCoordinateTransformerImpl::clone ( ) const
virtual

◆ getDataToModelMatrix()

virtual glm::mat4 inviwo::SpatialCoordinateTransformerImpl::getDataToModelMatrix ( ) const
virtual

Returns the matrix transformation mapping from raw data numbers to model space coordinates, i.e. from generally (-inf, inf), ([0,1] for textures) to (data min, data max)

Implements inviwo::SpatialCoordinateTransformer.

◆ getDataToWorldMatrix()

virtual glm::mat4 inviwo::SpatialCoordinateTransformerImpl::getDataToWorldMatrix ( ) const
virtual

Returns the matrix transformation mapping from raw data numbers to world space coordinates, i.e. from generally (-inf, inf), ([0,1] for textures) to (-inf, inf)

Implements inviwo::SpatialCoordinateTransformer.

◆ getModelToDataMatrix()

virtual glm::mat4 inviwo::SpatialCoordinateTransformerImpl::getModelToDataMatrix ( ) const
virtual

Returns the matrix transformation mapping from model space coordinates to raw data numbers, i.e. from (data min, data max) to generally (-inf, inf), ([0,1] for textures)

Implements inviwo::SpatialCoordinateTransformer.

◆ getModelToWorldMatrix()

virtual glm::mat4 inviwo::SpatialCoordinateTransformerImpl::getModelToWorldMatrix ( ) const
virtual

Returns the matrix transformation mapping from model space coordinates to world space coordinates, i.e. from (data min, data max) to (-inf, inf)

Implements inviwo::SpatialCoordinateTransformer.

◆ getWorldToDataMatrix()

virtual glm::mat4 inviwo::SpatialCoordinateTransformerImpl::getWorldToDataMatrix ( ) const
virtual

Returns the matrix transformation mapping from world space coordinates to raw data numbers, i.e. from (-inf, inf) to generally (-inf, inf), ([0,1] for textures)

Implements inviwo::SpatialCoordinateTransformer.

◆ getWorldToModelMatrix()

virtual glm::mat4 inviwo::SpatialCoordinateTransformerImpl::getWorldToModelMatrix ( ) const
virtual

Returns the matrix transformation mapping from world space coordinates to model space coordinates, i.e. from (-inf, inf) to (data min, data max)

Implements inviwo::SpatialCoordinateTransformer.


The documentation for this class was generated from the following file:
  • include/inviwo/core/datastructures/coordinatetransformer.h