![]() |
Inviwo 0.9.12-pre
Inviwo documentation
|
Public Member Functions | |
| virtual SpatialCoordinateTransformer * | clone () const =0 |
| virtual glm::dmat4 | getDataToModelMatrix () const =0 |
| virtual glm::dmat4 | getDataToWorldMatrix () const =0 |
| glm::dmat3 | getInverseMetricTensor () const |
| Computes the inverse metric tensor for the dataToWorld basis. This it useful for gradient computation. | |
| virtual glm::dmat4 | getMatrix (CoordinateSpace from, CoordinateSpace to) const |
| glm::dmat3 | getMetricTensor () const |
| Computes the metric tensor for the dataToWorld basis. | |
| virtual glm::dmat4 | getModelToDataMatrix () const =0 |
| virtual glm::dmat4 | getModelToWorldMatrix () const =0 |
| virtual glm::dmat4 | getWorldToDataMatrix () const =0 |
| virtual glm::dmat4 | getWorldToModelMatrix () const =0 |
| virtual glm::dvec3 | transformNormal (const dvec3 &normal, CoordinateSpace from, CoordinateSpace to) const |
| virtual glm::dvec3 | transformPosition (const dvec3 &pos, CoordinateSpace from, CoordinateSpace to) const |
| virtual glm::dvec4 | transformPositionHomogeneous (const dvec4 &pos, CoordinateSpace from, CoordinateSpace to) const |
Static Public Member Functions | |
| static glm::dmat3 | getMetricTensor (glm::dmat3 basis) |
| Computes the metric tensor g_ij from a set of basis vectors. | |
|
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::SpatialCameraCoordinateTransformerImpl, inviwo::SpatialCoordinateTransformerImpl, inviwo::StructuredCameraCoordinateTransformerImpl< N >, and 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::SpatialCameraCoordinateTransformerImpl, inviwo::SpatialCoordinateTransformerImpl, inviwo::StructuredCameraCoordinateTransformerImpl< N >, and inviwo::StructuredCoordinateTransformerImpl< N >.
| glm::dmat3 inviwo::SpatialCoordinateTransformer::getInverseMetricTensor | ( | ) | const |
Computes the inverse metric tensor for the dataToWorld basis. This it useful for gradient computation.
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.
|
virtual |
Returns the matrix transformation mapping from from coordinates to to coordinates
Reimplemented in inviwo::SpatialCameraCoordinateTransformer, inviwo::StructuredCameraCoordinateTransformer, and inviwo::StructuredCoordinateTransformer.
|
static |
Computes the metric tensor g_ij from a set of basis vectors.
The metric tensor is defined as:
g_ij = dot(a_i, a_j)
where a_i are the basis vectors of the coordinate system.
| basis | A 3×3 matrix whose columns contain the basis vectors of the coordinate system expressed in Cartesian coordinates. |
|
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::SpatialCameraCoordinateTransformerImpl, inviwo::SpatialCoordinateTransformerImpl, inviwo::StructuredCameraCoordinateTransformerImpl< N >, and inviwo::StructuredCoordinateTransformerImpl< N >.
|
pure virtual |
Returns the matrix transformation mapping from model space coordinates to world space coordinates, i.e. from (data min, data max) to (-inf, inf)
Implemented in inviwo::SpatialCameraCoordinateTransformerImpl, inviwo::SpatialCoordinateTransformerImpl, inviwo::StructuredCameraCoordinateTransformerImpl< N >, and 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::SpatialCameraCoordinateTransformerImpl, inviwo::SpatialCoordinateTransformerImpl, inviwo::StructuredCameraCoordinateTransformerImpl< N >, and inviwo::StructuredCoordinateTransformerImpl< N >.
|
pure virtual |
Returns the matrix transformation mapping from world space coordinates to model space coordinates, i.e. from (-inf, inf) to (data min, data max)
Implemented in inviwo::SpatialCameraCoordinateTransformerImpl, inviwo::SpatialCoordinateTransformerImpl, inviwo::StructuredCameraCoordinateTransformerImpl< N >, and inviwo::StructuredCoordinateTransformerImpl< N >.
|
virtual |
Transforms the given normal from from coordinates to to coordinates. Only considers transformations between supported by this SpatialCoordinateTransformer. That is Data to Model, Model to World, Data to World and their inverse, camera or index coordinates are not supported.
|
virtual |
Transforms the given position pos from from coordinates to to coordinates. The resulting position is divided by w.
|
virtual |
Transforms the given position pos from from coordinates to to coordinates using homogeneous coordinates