Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::StructuredGridEntity< N > Class Template Referenceabstract
+ Inheritance diagram for inviwo::StructuredGridEntity< N >:

Public Member Functions

 StructuredGridEntity (const StructuredGridEntity< N > &rhs)=default
 
 StructuredGridEntity (const glm::vec< N, size_t > &dimensions, const glm::vec< N, float > &spacing)
 
 StructuredGridEntity (const mat4 &modelMatrix)
 
 StructuredGridEntity (const mat4 &modelMatrix, const mat4 &worldMatrix)
 
StructuredGridEntity< N > & operator= (const StructuredGridEntity< N > &that)=default
 
virtual StructuredGridEntity< N > * clone () const override=0
 
virtual glm::vec< N, size_t > getDimensions () const =0
 
glm::mat4 getIndexMatrix () const
 
virtual const StructuredCoordinateTransformergetCoordinateTransformer () const override
 
virtual const StructuredCameraCoordinateTransformergetCoordinateTransformer (const Camera &camera) const override
 
- Public Member Functions inherited from inviwo::SpatialEntity
 SpatialEntity (const glm::mat4 &modelMatrix)
 
 SpatialEntity (const glm::mat4 &modelMatrix, const glm::mat4 &worldMatrix)
 
 SpatialEntity (const SpatialEntity &rhs)
 
SpatialEntityoperator= (const SpatialEntity &that)
 
glm::vec3 getOffset () const
 
void setOffset (const glm::vec3 &offset)
 
glm::mat3 getBasis () const
 
void setBasis (const glm::mat3 &basis)
 
glm::mat4 getModelMatrix () const
 
void setModelMatrix (const glm::mat4 &modelMatrix)
 
glm::mat4 getWorldMatrix () const
 
void setWorldMatrix (const glm::mat4 &worldMatrix)
 
virtual const AxisgetAxis (size_t index) const =0
 

Additional Inherited Members

- Protected Attributes inherited from inviwo::SpatialEntity
std::unique_ptr< SpatialCoordinateTransformertransformer_
 
std::unique_ptr< SpatialCameraCoordinateTransformercameraTransformer_
 
glm::mat4 modelMatrix_
 
glm::mat4 worldMatrix_
 

Member Function Documentation

◆ clone()

template<unsigned int N>
virtual StructuredGridEntity< N > * inviwo::StructuredGridEntity< N >::clone ( ) const
overridepure virtual

Implements inviwo::SpatialEntity.

◆ getCoordinateTransformer() [1/2]

template<unsigned int N>
const StructuredCoordinateTransformer & inviwo::StructuredGridEntity< N >::getCoordinateTransformer ( ) const
overridevirtual

Reimplemented from inviwo::SpatialEntity.

◆ getCoordinateTransformer() [2/2]

template<unsigned int N>
const StructuredCameraCoordinateTransformer & inviwo::StructuredGridEntity< N >::getCoordinateTransformer ( const Camera & camera) const
overridevirtual

Reimplemented from inviwo::SpatialEntity.

◆ getIndexMatrix()

template<unsigned int N>
glm::mat4 inviwo::StructuredGridEntity< N >::getIndexMatrix ( ) const

Returns the matrix transformation mapping from texture coordinates to voxel index coordinates, i.e. from [0,1] to [-0.5, number of voxels-0.5]

Note
Data is centered on the voxel, see OpenGL specifications, figure 8.3 http://www.opengl.org/registry/doc/glspec43.core.20120806.pdf or for instance http://bpeers.com/articles/glpixel/
See also
CoordinateTransformer::getTextureToIndexMatrix

The documentation for this class was generated from the following files: