Inviwo 0.9.12-pre
Inviwo documentation
|
Public Member Functions | |
virtual SpatialCoordinateTransformer * | clone () const =0 |
virtual glm::mat4 | getMatrix (CoordinateSpace from, CoordinateSpace to) const |
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 | |
SpatialCoordinateTransformer (const SpatialCoordinateTransformer &)=default | |
SpatialCoordinateTransformer (SpatialCoordinateTransformer &&)=delete | |
SpatialCoordinateTransformer & | operator= (const SpatialCoordinateTransformer &)=delete |
SpatialCoordinateTransformer & | operator= (SpatialCoordinateTransformer &&)=delete |
|
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 >.
|
virtual |
Returns the matrix transformation mapping from from
coordinates to to
coordinates
Reimplemented in inviwo::SpatialCameraCoordinateTransformer, inviwo::StructuredCameraCoordinateTransformer, and inviwo::StructuredCoordinateTransformer.
|
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