Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::BufferRAMPrecision< T, Target > Class Template Reference
+ Inheritance diagram for inviwo::BufferRAMPrecision< T, Target >:

Public Types

using type = T
 
- Public Types inherited from inviwo::DataRepresentation< BufferBase >
using ReprOwner
 

Public Member Functions

 BufferRAMPrecision (BufferUsage usage=BufferUsage::Static)
 
 BufferRAMPrecision (size_t size, BufferUsage usage=BufferUsage::Static)
 
 BufferRAMPrecision (std::vector< T > data, BufferUsage usage=BufferUsage::Static)
 
 BufferRAMPrecision (const BufferRAMPrecision< T, Target > &rhs)=default
 
BufferRAMPrecision< T, Target > & operator= (const BufferRAMPrecision< T, Target > &that)=default
 
virtual BufferRAMPrecision< T, Target > * clone () const override
 
virtual const DataFormatBasegetDataFormat () const override
 
virtual void setSize (size_t size) override
 
virtual size_t getSize () const override
 
virtual void * getData () override
 
virtual const void * getData () const override
 
std::vector< T > & getDataContainer ()
 
const std::vector< T > & getDataContainer () const
 
virtual void reserve (size_t size) override
 
virtual double getAsDouble (const size_t &pos) const override
 
virtual dvec2 getAsDVec2 (const size_t &pos) const override
 
virtual dvec3 getAsDVec3 (const size_t &pos) const override
 
virtual dvec4 getAsDVec4 (const size_t &pos) const override
 
virtual void setFromDouble (const size_t &pos, double val) override
 
virtual void setFromDVec2 (const size_t &pos, dvec2 val) override
 
virtual void setFromDVec3 (const size_t &pos, dvec3 val) override
 
virtual void setFromDVec4 (const size_t &pos, dvec4 val) override
 
virtual double getAsNormalizedDouble (const size_t &pos) const override
 
virtual dvec2 getAsNormalizedDVec2 (const size_t &pos) const override
 
virtual dvec3 getAsNormalizedDVec3 (const size_t &pos) const override
 
virtual dvec4 getAsNormalizedDVec4 (const size_t &pos) const override
 
virtual void setFromNormalizedDouble (const size_t &pos, double val) override
 
virtual void setFromNormalizedDVec2 (const size_t &pos, dvec2 val) override
 
virtual void setFromNormalizedDVec3 (const size_t &pos, dvec3 val) override
 
virtual void setFromNormalizedDVec4 (const size_t &pos, dvec4 val) override
 
void add (const T &item)
 
void add (std::initializer_list< T > data)
 
void append (const std::vector< T > *data)
 
void append (const std::vector< T > &data)
 
T & operator[] (size_t i)
 
const T & operator[] (size_t i) const
 
void set (size_t index, const T &item)
 
get (size_t index) const
 
T & get (size_t index)
 
virtual void clear () override
 
- Public Member Functions inherited from inviwo::BufferRAM
virtual std::type_index getTypeIndex () const override final
 
template<typename Result , template< class > class Predicate = dispatching::filter::All, typename Callable , typename... Args>
auto dispatch (Callable &&callable, Args &&... args) -> Result
 
template<typename Result , template< class > class Predicate = dispatching::filter::All, typename Callable , typename... Args>
auto dispatch (Callable &&callable, Args &&... args) const -> Result
 
- Public Member Functions inherited from inviwo::BufferRepresentation
std::string_view getDataFormatString () const
 
DataFormatId getDataFormatId () const
 
virtual size_t getSizeOfElement () const
 
BufferUsage getBufferUsage () const
 
BufferTarget getBufferTarget () const
 
- Public Member Functions inherited from inviwo::DataRepresentation< BufferBase >
void setOwner (const BufferBase *owner)
 
const BufferBasegetOwner () const
 
bool isValid () const
 
void setValid (bool valid)
 
virtual void updateResource (const ResourceMeta &) const
 

Static Public Attributes

static const BufferTarget target = Target
 

Additional Inherited Members

- Protected Member Functions inherited from inviwo::BufferRAM
 BufferRAM (BufferUsage usage=BufferUsage::Static, BufferTarget target=BufferTarget::Data)
 
 BufferRAM (const BufferRAM &rhs)=default
 
BufferRAMoperator= (const BufferRAM &that)=default
 
- Protected Member Functions inherited from inviwo::BufferRepresentation
 BufferRepresentation (BufferUsage usage=BufferUsage::Static, BufferTarget target=BufferTarget::Data)
 
 BufferRepresentation (const BufferRepresentation &rhs)=default
 
BufferRepresentationoperator= (const BufferRepresentation &that)=default
 
- Protected Member Functions inherited from inviwo::DataRepresentation< BufferBase >
 DataRepresentation (const DataRepresentation &rhs)=default
 
DataRepresentationoperator= (const DataRepresentation &that)=default
 
- Protected Attributes inherited from inviwo::BufferRepresentation
BufferUsage usage_
 
BufferTarget target_
 
- Protected Attributes inherited from inviwo::DataRepresentation< BufferBase >
bool isValid_
 
const BufferBaseowner_
 

Member Function Documentation

◆ clear()

template<typename T , BufferTarget Target>
void inviwo::BufferRAMPrecision< T, Target >::clear ( )
overridevirtual

Implements inviwo::BufferRAM.

◆ clone()

template<typename T , BufferTarget Target>
BufferRAMPrecision< T, Target > * inviwo::BufferRAMPrecision< T, Target >::clone ( ) const
overridevirtual

Implements inviwo::BufferRAM.

◆ getAsDouble()

template<typename T , BufferTarget Target>
double inviwo::BufferRAMPrecision< T, Target >::getAsDouble ( const size_t & pos) const
overridevirtual

Implements inviwo::BufferRAM.

◆ getAsDVec2()

template<typename T , BufferTarget Target>
dvec2 inviwo::BufferRAMPrecision< T, Target >::getAsDVec2 ( const size_t & pos) const
overridevirtual

Implements inviwo::BufferRAM.

◆ getAsDVec3()

template<typename T , BufferTarget Target>
dvec3 inviwo::BufferRAMPrecision< T, Target >::getAsDVec3 ( const size_t & pos) const
overridevirtual

Implements inviwo::BufferRAM.

◆ getAsDVec4()

template<typename T , BufferTarget Target>
dvec4 inviwo::BufferRAMPrecision< T, Target >::getAsDVec4 ( const size_t & pos) const
overridevirtual

Implements inviwo::BufferRAM.

◆ getAsNormalizedDouble()

template<typename T , BufferTarget Target>
double inviwo::BufferRAMPrecision< T, Target >::getAsNormalizedDouble ( const size_t & pos) const
overridevirtual

Implements inviwo::BufferRAM.

◆ getAsNormalizedDVec2()

template<typename T , BufferTarget Target>
dvec2 inviwo::BufferRAMPrecision< T, Target >::getAsNormalizedDVec2 ( const size_t & pos) const
overridevirtual

Implements inviwo::BufferRAM.

◆ getAsNormalizedDVec3()

template<typename T , BufferTarget Target>
dvec3 inviwo::BufferRAMPrecision< T, Target >::getAsNormalizedDVec3 ( const size_t & pos) const
overridevirtual

Implements inviwo::BufferRAM.

◆ getAsNormalizedDVec4()

template<typename T , BufferTarget Target>
dvec4 inviwo::BufferRAMPrecision< T, Target >::getAsNormalizedDVec4 ( const size_t & pos) const
overridevirtual

Implements inviwo::BufferRAM.

◆ getData() [1/2]

template<typename T , BufferTarget Target>
const void * inviwo::BufferRAMPrecision< T, Target >::getData ( ) const
overridevirtual

Implements inviwo::BufferRAM.

◆ getData() [2/2]

template<typename T , BufferTarget Target>
void * inviwo::BufferRAMPrecision< T, Target >::getData ( )
overridevirtual

Implements inviwo::BufferRAM.

◆ getDataFormat()

template<typename T , BufferTarget Target>
const DataFormatBase * inviwo::BufferRAMPrecision< T, Target >::getDataFormat ( ) const
overridevirtual

◆ getSize()

template<typename T , BufferTarget Target>
size_t inviwo::BufferRAMPrecision< T, Target >::getSize ( ) const
overridevirtual

Return the number of elements in the buffer.

Implements inviwo::BufferRepresentation.

◆ reserve()

template<typename T , BufferTarget Target>
void inviwo::BufferRAMPrecision< T, Target >::reserve ( size_t size)
overridevirtual

Implements inviwo::BufferRAM.

◆ setFromDouble()

template<typename T , BufferTarget Target>
void inviwo::BufferRAMPrecision< T, Target >::setFromDouble ( const size_t & pos,
double val )
overridevirtual

Implements inviwo::BufferRAM.

◆ setFromDVec2()

template<typename T , BufferTarget Target>
void inviwo::BufferRAMPrecision< T, Target >::setFromDVec2 ( const size_t & pos,
dvec2 val )
overridevirtual

Implements inviwo::BufferRAM.

◆ setFromDVec3()

template<typename T , BufferTarget Target>
void inviwo::BufferRAMPrecision< T, Target >::setFromDVec3 ( const size_t & pos,
dvec3 val )
overridevirtual

Implements inviwo::BufferRAM.

◆ setFromDVec4()

template<typename T , BufferTarget Target>
void inviwo::BufferRAMPrecision< T, Target >::setFromDVec4 ( const size_t & pos,
dvec4 val )
overridevirtual

Implements inviwo::BufferRAM.

◆ setFromNormalizedDouble()

template<typename T , BufferTarget Target>
void inviwo::BufferRAMPrecision< T, Target >::setFromNormalizedDouble ( const size_t & pos,
double val )
overridevirtual

Implements inviwo::BufferRAM.

◆ setFromNormalizedDVec2()

template<typename T , BufferTarget Target>
void inviwo::BufferRAMPrecision< T, Target >::setFromNormalizedDVec2 ( const size_t & pos,
dvec2 val )
overridevirtual

Implements inviwo::BufferRAM.

◆ setFromNormalizedDVec3()

template<typename T , BufferTarget Target>
void inviwo::BufferRAMPrecision< T, Target >::setFromNormalizedDVec3 ( const size_t & pos,
dvec3 val )
overridevirtual

Implements inviwo::BufferRAM.

◆ setFromNormalizedDVec4()

template<typename T , BufferTarget Target>
void inviwo::BufferRAMPrecision< T, Target >::setFromNormalizedDVec4 ( const size_t & pos,
dvec4 val )
overridevirtual

Implements inviwo::BufferRAM.

◆ setSize()

template<typename T , BufferTarget Target>
void inviwo::BufferRAMPrecision< T, Target >::setSize ( size_t size)
overridevirtual

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