![]() |
LibCarna Version 3.4.0
|
Specializes the ManagedTexture3D class s.t. the texture's data is initialized from a math::VectorField that supports a buffer method, like BufferedIntensityVolume and BufferedNormalMap3D do.
More...
#include <BufferedVectorFieldTexture.hpp>
Inheritance diagram for LibCarna::base::BufferedVectorFieldTexture< BufferedVectorFieldType >:
Collaboration diagram for LibCarna::base::BufferedVectorFieldTexture< BufferedVectorFieldType >:Public Member Functions | |
| virtual bool | controlsSameVideoResource (const GeometryFeature &other) const override |
Tells true if other is of same type and references the same field. Tells false otherwise. | |
Public Member Functions inherited from LibCarna::base::ManagedTexture3D | |
| virtual ManagedTexture3DInterface * | acquireVideoResource () override |
Acquires the video resources from this GeometryFeature by returning new instance of a class derived from ManagedInterface, that realizes the RAII idiom. Refer to its documentation for details. May return nullptr if this GeometryFeature does not provide any video resources. | |
Public Member Functions inherited from LibCarna::base::GeometryFeature | |
| unsigned int | videoResourceAcquisitionsCount () const |
| Tells current number of video resource acquisitions. | |
| void | release () |
| Denotes that this object is no longer required and may be deleted as soon as it is valid to delete it. | |
| void | addTo (Geometry &sceneGraphNode, unsigned int role) |
| Puts this geometry feature on the sceneGraphNode. | |
| void | removeFrom (Geometry &sceneGraphNode) |
| Removes this geometry feature from the sceneGraphNode. | |
Static Public Member Functions | |
| static BufferedVectorFieldTexture< BufferedVectorFieldType > & | create (const BufferedVectorFieldType &field) |
| Instantiates. Invoke release when it isn't needed any longer. | |
Static Public Member Functions inherited from LibCarna::base::ManagedTexture3D | |
| static ManagedTexture3D & | create (const math::Vector3ui &size, int internalFormat, int pixelFormat, int bufferType, const void *bufferPtr) |
| Instantiates. Invoke release when it isn't needed any longer. | |
Public Attributes | |
| const BufferedVectorFieldType & | field |
| References the math::VectorField to be uploaded to the texture. | |
Public Attributes inherited from LibCarna::base::ManagedTexture3D | |
| const math::Vector3ui | size |
| Tells the resolution of this texture. | |
| const int | internalFormat |
Holds the number of color components in the texture, e.g. GL_RGBA8UI or GL_INTENSITY16. | |
| const int | pixelFormat |
Holds the format of the pixel data, e.g. GL_RED, GL_RGB or GL_RGBA. | |
| const int | bufferType |
| Specifies the data type of the pixel data to be uploaded to the texture. | |
| const void *const | bufferPtr |
| Points to the pixel data that will be uploaded to the texture. | |
| const base::math::Matrix4f | textureCoordinatesCorrection |
| Stretches texture coordinates s.t. the centers of the texels, that are located in the texture corners, become located in those corners. | |
Protected Member Functions | |
| BufferedVectorFieldTexture (const BufferedVectorFieldType &field) | |
| Instantiates. | |
Protected Member Functions inherited from LibCarna::base::ManagedTexture3D | |
| ManagedTexture3D (const math::Vector3ui &size, int internalFormat, int pixelFormat, int bufferType, const void *bufferPtr) | |
| Instantiates. | |
| ~ManagedTexture3D () | |
| Deletes. | |
Protected Member Functions inherited from LibCarna::base::GeometryFeature | |
| GeometryFeature () | |
| Instantiates. | |
| virtual | ~GeometryFeature () |
| Deletes and logs an error if video resources are leaked. | |
Additional Inherited Members | |
Public Types inherited from LibCarna::base::ManagedTexture3D | |
| typedef ManagedTexture3DInterface | ManagedInterface |
| Defines the type to be used for interfacing the video resource. | |
Protected Attributes inherited from LibCarna::base::ManagedTexture3D | |
| std::unique_ptr< Texture< 3 > > | textureObject |
| Holds the maintained OpenGL texture object. | |
Specializes the ManagedTexture3D class s.t. the texture's data is initialized from a math::VectorField that supports a buffer method, like BufferedIntensityVolume and BufferedNormalMap3D do.
Definition at line 47 of file BufferedVectorFieldTexture.hpp.
|
protected |
Instantiates.
| field | references the math::VectorField to be uploaded to the texture. |
Definition at line 85 of file BufferedVectorFieldTexture.hpp.
|
overridevirtual |
Tells true if other is of same type and references the same field. Tells false otherwise.
Reimplemented from LibCarna::base::ManagedTexture3D.
Definition at line 106 of file BufferedVectorFieldTexture.hpp.
|
static |
Instantiates. Invoke release when it isn't needed any longer.
| field | references the math::VectorField to be uploaded to the texture. |
Definition at line 98 of file BufferedVectorFieldTexture.hpp.
| const BufferedVectorFieldType& LibCarna::base::BufferedVectorFieldTexture< BufferedVectorFieldType >::field |
References the math::VectorField to be uploaded to the texture.
Definition at line 65 of file BufferedVectorFieldTexture.hpp.
Written by Leonid Kostrykin © 2021–2025. Based on Carna (© 2010-2016).
Documentation generated by Doxygen