Inviwo  0.9.10.1
Inviwo documentation
inviwo::StructuredGridEntity< N > Class Template Referenceabstract
+ Inheritance diagram for inviwo::StructuredGridEntity< N >:

Public Member Functions

 StructuredGridEntity (const StructuredGridEntity< N > &rhs)=default
 
 StructuredGridEntity (const Vector< N, size_t > &dimensions, const Vector< N, float > &spacing)
 
 StructuredGridEntity (const Matrix< N+1, float > &modelMatrix)
 
 StructuredGridEntity (const Matrix< N+1, float > &modelMatrix, const Matrix< N+1, float > &worldMatrix)
 
StructuredGridEntity< N > & operator= (const StructuredGridEntity< N > &that)=default
 
virtual StructuredGridEntity< N > * clone () const =0
 
virtual Vector< N, size_t > getDimensions () const =0
 
Matrix< N+1, float > getIndexMatrix () const
 
virtual const StructuredCoordinateTransformer< N > & getCoordinateTransformer () const
 
virtual const StructuredCameraCoordinateTransformer< N > & getCoordinateTransformer (const CameraND< N > &camera) const
 
- Public Member Functions inherited from inviwo::SpatialEntity< N >
 SpatialEntity (const SpatialEntity< N > &rhs)
 
 SpatialEntity (const Matrix< N+1, float > &modelMatrix)
 
 SpatialEntity (const Matrix< N+1, float > &modelMatrix, const Matrix< N+1, float > &worldMatrix)
 
SpatialEntity< N > & operator= (const SpatialEntity< N > &that)
 
Vector< N, float > getOffset () const
 
void setOffset (const Vector< N, float > &offset)
 
Matrix< N, float > getBasis () const
 
void setBasis (const Matrix< N, float > &basis)
 
Matrix< N+1, float > getModelMatrix () const
 
void setModelMatrix (const Matrix< N+1, float > &modelMatrix)
 
Matrix< N+1, float > getWorldMatrix () const
 
void setWorldMatrix (const Matrix< N+1, float > &worldMatrix)
 

Additional Inherited Members

- Protected Attributes inherited from inviwo::SpatialEntity< N >
SpatialCoordinateTransformer< N > * transformer_
 
SpatialCameraCoordinateTransformer< N > * cameraTransformer_
 
Matrix< N+1, float > modelMatrix_
 
Matrix< N+1, float > worldMatrix_
 

Member Function Documentation

◆ getIndexMatrix()

template<unsigned int N>
Matrix< N+1, float > 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: