Inviwo  0.9.10.1
Inviwo documentation
inviwo::buffertraits::TypedMeshBufferBase< T, DIM, attrib, location > Class Template Reference

#include <typedmesh.h>

+ Inheritance diagram for inviwo::buffertraits::TypedMeshBufferBase< T, DIM, attrib, location >:

Public Types

using type = Vector< DIM, T >
 

Public Member Functions

 TypedMeshBufferBase (Mesh &mesh)
 
auto getTypedRAMRepresentation () const
 
auto getTypedEditableRAMRepresentation ()
 
auto & getTypedDataContainer () const
 
auto & getTypedDataContainer ()
 

Static Public Member Functions

static inviwo::Mesh::BufferInfo bi ()
 

Public Attributes

std::shared_ptr< Buffer< type > > buffer_ {std::make_shared<Buffer<type>>()}
 

Detailed Description

template<typename T, unsigned DIM, int attrib, int location = attrib>
class inviwo::buffertraits::TypedMeshBufferBase< T, DIM, attrib, location >

Based class used to decorate TypedMesh with buffers. Handles creation of buffers and adds it to the mesh. Also has convince functions to access the buffers and its data containers. Note on Template parameters The first two template parameters, typename T, unsigned DIM is used instead of Vector<DIM,T> or glm::TvecX, this is due to compiler issues related to the clone function. Similarly, The template parameter int attrib can't be a strongly typed enum (inviwo::BufferType) and therefor it is an int.

See also
TypedMesh
TypedMesh

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