![]() |
Inviwo 0.9.12-pre
Inviwo documentation
|
Public Member Functions | |
| virtual StructuredCoordinateTransformer * | clone () const override=0 |
| virtual glm::mat4 | getMatrix (CoordinateSpace from, CoordinateSpace to) const override |
| virtual glm::mat4 | getModelToTextureMatrix () const =0 |
| virtual glm::mat4 | getModelToIndexMatrix () const =0 |
| virtual glm::mat4 | getTextureToModelMatrix () const =0 |
| virtual glm::mat4 | getDataToIndexMatrix () const =0 |
| virtual glm::mat4 | getTextureToIndexMatrix () const =0 |
| virtual glm::mat4 | getTextureToWorldMatrix () const =0 |
| virtual glm::mat4 | getIndexToModelMatrix () const =0 |
| virtual glm::mat4 | getIndexToDataMatrix () const =0 |
| virtual glm::mat4 | getIndexToTextureMatrix () const =0 |
| virtual glm::mat4 | getIndexToWorldMatrix () const =0 |
| virtual glm::mat4 | getWorldToTextureMatrix () const =0 |
| virtual glm::mat4 | getWorldToIndexMatrix () const =0 |
| glm::mat3 | getInverseMetricTensor () const |
| Computes the inverse metric tensor to be used for gradient computation. Also works for layers with non-orthogonal basis. | |
| Public Member Functions inherited from inviwo::SpatialCoordinateTransformer | |
| virtual glm::mat4 | getModelToDataMatrix () const =0 |
| virtual glm::mat4 | getModelToWorldMatrix () const =0 |
| virtual glm::mat4 | getDataToModelMatrix () const =0 |
| virtual glm::mat4 | getDataToWorldMatrix () const =0 |
| virtual glm::mat4 | getWorldToModelMatrix () const =0 |
| virtual glm::mat4 | getWorldToDataMatrix () const =0 |
| virtual glm::vec3 | transformPosition (const vec3 &pos, CoordinateSpace from, CoordinateSpace to) const |
| virtual glm::vec4 | transformPositionHomogeneous (const vec4 &pos, CoordinateSpace from, CoordinateSpace to) const |
| virtual glm::vec3 | transformNormal (const vec3 &normal, CoordinateSpace from, CoordinateSpace to) const |
Protected Member Functions | |
| StructuredCoordinateTransformer (const StructuredCoordinateTransformer &)=default | |
| StructuredCoordinateTransformer (StructuredCoordinateTransformer &&)=delete | |
| StructuredCoordinateTransformer & | operator= (const StructuredCoordinateTransformer &)=delete |
| StructuredCoordinateTransformer & | operator= (StructuredCoordinateTransformer &&)=delete |
| Protected Member Functions inherited from inviwo::SpatialCoordinateTransformer | |
| SpatialCoordinateTransformer (const SpatialCoordinateTransformer &)=default | |
| SpatialCoordinateTransformer (SpatialCoordinateTransformer &&)=delete | |
| SpatialCoordinateTransformer & | operator= (const SpatialCoordinateTransformer &)=delete |
| SpatialCoordinateTransformer & | operator= (SpatialCoordinateTransformer &&)=delete |
|
overridepure virtual |
Implements inviwo::SpatialCoordinateTransformer.
|
pure virtual |
Returns the matrix transformation mapping from raw data numbers to voxel index coordinates, i.e. from generally (-inf, inf), ([0,1] for textures) to [0, number of voxels)
Implemented in inviwo::StructuredCoordinateTransformerImpl< N >.
|
pure virtual |
Returns the matrix transformation mapping from voxel index coordinates to raw data numbers, i.e. from [0, number of voxels) to generally (-inf, inf), ([0,1] for textures)
Implemented in inviwo::StructuredCoordinateTransformerImpl< N >.
|
pure virtual |
Returns the matrix transformation mapping from voxel index coordinates to model space coordinates, i.e. from [0, number of voxels) to (data min, data max)
Implemented in inviwo::StructuredCoordinateTransformerImpl< N >.
|
pure virtual |
Returns the matrix transformation mapping from voxel index coordinates to raw data numbers, i.e. from [0, number of voxels) to generally (-inf, inf), ([0,1] for textures)
Implemented in inviwo::StructuredCoordinateTransformerImpl< N >.
|
pure virtual |
Returns the matrix transformation mapping from voxel index coordinates to world space coordinates, i.e. from [0, number of voxels) to (-inf, inf)
Implemented in inviwo::StructuredCoordinateTransformerImpl< N >.
| glm::mat3 inviwo::StructuredCoordinateTransformer::getInverseMetricTensor | ( | ) | const |
Computes the inverse metric tensor to be used for gradient computation. Also works for layers with non-orthogonal basis.
The gradient ∇f in world space is then computed based on the partial derivatives in u and v direction ∇f = g_11 ∂f/∂u a_1 + g_12 ∂f/∂u a_2 + g_21 ∂f/∂v a_1 + g_22 ∂f/∂v a_2, where g_ij refers to the inverse metric tensor and a_i to the ith basis vector.
|
overridevirtual |
Returns the matrix transformation mapping from "from" coordinates to "to" coordinates
Reimplemented from inviwo::SpatialCoordinateTransformer.
|
pure virtual |
Returns the matrix transformation mapping from model space coordinates to voxel index coordinates, i.e. from (data min, data max) to [0, number of voxels)
Implemented in inviwo::StructuredCoordinateTransformerImpl< N >.
|
pure 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)
Implemented in inviwo::StructuredCoordinateTransformerImpl< N >.
|
pure virtual |
Returns the matrix transformation mapping from raw data numbers to voxel index coordinates, i.e. from generally (-inf, inf), ([0,1] for textures) to [0, number of voxels)
Implemented in inviwo::StructuredCoordinateTransformerImpl< N >.
|
pure 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)
Implemented in inviwo::StructuredCoordinateTransformerImpl< N >.
|
pure 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)
Implemented in inviwo::StructuredCoordinateTransformerImpl< N >.
|
pure virtual |
Returns the matrix transformation mapping from world space coordinates to voxel index coordinates, i.e. from (-inf, inf) to [0, number of voxels)
Implemented in inviwo::StructuredCoordinateTransformerImpl< N >.
|
pure 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)
Implemented in inviwo::StructuredCoordinateTransformerImpl< N >.