![]() |
Inviwo 0.9.12-pre
Inviwo documentation
|
Public Member Functions | |
| BufferBase (size_t defaultSize, const DataFormatBase *defaultFormat, BufferUsage usage, BufferTarget target) | |
| BufferBase (const BufferBase &rhs)=default | |
| BufferBase & | operator= (const BufferBase &that)=default |
| virtual BufferBase * | clone () const override=0 |
| void | setSize (size_t size) |
| size_t | getSize () const |
| bool | empty () const |
| size_t | getSizeInBytes () const |
| BufferUsage | getBufferUsage () const |
| BufferTarget | getBufferTarget () const |
| void | setDataFormat (const DataFormatBase *format) |
| const DataFormatBase * | getDataFormat () const |
| virtual void | append (const BufferBase &)=0 |
| virtual Document | getInfo () const =0 |
| Public Member Functions inherited from inviwo::Data< BufferBase, BufferRepresentation > | |
| const T * | getRepresentation () const |
| std::shared_ptr< const T > | getRepresentationShared () const |
| T * | getEditableRepresentation () |
| bool | hasRepresentation () const |
| bool | hasRepresentations () const |
| void | addRepresentation (std::shared_ptr< BufferRepresentation > representation) |
| void | removeRepresentation (const BufferRepresentation *representation) |
| void | removeOtherRepresentations (const BufferRepresentation *representation) |
| void | clearRepresentations () |
| void | invalidateAllOther (const BufferRepresentation *repr) |
| void | updateResource (const ResourceMeta &meta) const |
Static Public Attributes | |
| static constexpr uvec3 | colorCode {255, 113, 0} |
| static constexpr std::string_view | classIdentifier {"org.inviwo.Buffer"} |
| static constexpr std::string_view | dataName {"Buffer"} |
Protected Attributes | |
| size_t | defaultSize_ |
| BufferUsage | usage_ |
| BufferTarget | target_ |
| const DataFormatBase * | defaultDataFormat_ |
Additional Inherited Members | |
| Public Types inherited from inviwo::Data< BufferBase, BufferRepresentation > | |
| using | self |
| using | repr |
| Protected Member Functions inherited from inviwo::Data< BufferBase, BufferRepresentation > | |
| Data< BufferBase, BufferRepresentation > & | operator= (const Data< BufferBase, BufferRepresentation > &that) |
| decltype(auto) | getLastOr (F &&f, T &&fallback) const |
| void | setLastAndInvalidateOther (F &&f, T &&value) |
|
overridepure virtual |
Implements inviwo::Data< BufferBase, BufferRepresentation >.
| void inviwo::BufferBase::setDataFormat | ( | const DataFormatBase * | format | ) |
| void inviwo::BufferBase::setSize | ( | size_t | size | ) |
Set the number of elements in the buffer. This is destructive, the data will not be preserved.