|
| TemplateColumn (std::string_view header, std::shared_ptr< Buffer< T > > buffer=std::make_shared< Buffer< T > >(), Unit unit=Unit{}, std::optional< dvec2 > range=std::nullopt) |
|
| TemplateColumn (std::string_view header, std::vector< T > data, Unit unit=Unit{}, std::optional< dvec2 > range=std::nullopt) |
|
| TemplateColumn (std::string_view header, size_t size, Unit unit=Unit{}, std::optional< dvec2 > range=std::nullopt) |
|
| TemplateColumn (const TemplateColumn< T > &rhs) |
|
| TemplateColumn (const TemplateColumn< T > &rhs, const std::vector< std::uint32_t > &rowSelection) |
|
| TemplateColumn (TemplateColumn< T > &&rhs) |
|
TemplateColumn< T > & | operator= (const TemplateColumn< T > &rhs) |
|
TemplateColumn< T > & | operator= (TemplateColumn< T > &&rhs) |
|
virtual TemplateColumn * | clone () const override |
|
virtual TemplateColumn * | clone (const std::vector< std::uint32_t > &rowSelection) const override |
|
virtual ColumnType | getColumnType () const override |
|
virtual const std::string & | getHeader () const override |
|
void | setHeader (std::string_view header) override |
|
virtual Unit | getUnit () const override |
|
virtual void | setUnit (Unit unit) override |
|
virtual void | setCustomRange (std::optional< dvec2 > range) override |
|
virtual std::optional< dvec2 > | getCustomRange () const override |
|
virtual dvec2 | getDataRange () const override |
|
virtual dvec2 | getRange () const override |
|
virtual void | add (const T &value) |
|
virtual void | add (std::string_view value) override |
| Converts given value to type T, which is added to the column.
|
|
virtual void | append (const Column &col) override |
|
virtual void | set (size_t idx, const T &value) |
|
T | get (size_t idx) const |
|
T | operator[] (size_t idx) const |
|
virtual double | getAsDouble (size_t idx) const override |
|
void | setBuffer (std::shared_ptr< Buffer< T > > buffer) |
|
virtual std::string | getAsString (size_t idx) const override |
|
virtual std::shared_ptr< BufferBase > | getBuffer () override |
|
virtual std::shared_ptr< const BufferBase > | getBuffer () const override |
|
std::shared_ptr< Buffer< T > > | getTypedBuffer () |
|
std::shared_ptr< const Buffer< T > > | getTypedBuffer () const |
|
virtual size_t | getSize () const override |
|
auto | begin () |
|
auto | end () |
|
auto | begin () const |
|
auto | end () const |
|
Public Member Functions inherited from inviwo::Column |
| MetaDataOwner (const MetaDataOwner &rhs)=default |
|
| MetaDataOwner (MetaDataOwner &rhs)=default |
|
MetaDataOwner & | operator= (const MetaDataOwner &rhs)=default |
|
MetaDataOwner & | operator= (MetaDataOwner &)=default |
|
void | copyMetaDataFrom (const MetaDataOwner &src) |
|
void | copyMetaDataTo (MetaDataOwner &dst) |
|
template<typename T >
requires std::derived_from<T, MetaData> |
T * | createMetaData (std::string_view key) |
|
template<typename T , typename U >
requires std::derived_from<T, MetaData> && Settable<T, U> |
void | setMetaData (std::string_view key, U value) |
|
template<typename T >
requires std::derived_from<T, MetaData> |
bool | unsetMetaData (std::string_view key) |
| unset, i.e. remove the metadata entry matching the given key and type
|
|
template<typename T , typename U >
requires std::derived_from<T, MetaData> && Gettable<T, U> |
U | getMetaData (std::string_view key, U val) const |
|
template<typename T >
requires std::derived_from<T, MetaData> |
T * | getMetaData (std::string_view key) |
|
template<typename T >
requires std::derived_from<T, MetaData> |
const T * | getMetaData (std::string_view key) const |
|
MetaDataMap * | getMetaDataMap () |
|
const MetaDataMap * | getMetaDataMap () const |
|
bool | hasMetaData (std::string_view key) const |
|
template<typename T >
requires std::derived_from<T, MetaData> |
bool | hasMetaData (std::string_view key) const |
|
void | serialize (Serializer &s) const |
|
void | deserialize (Deserializer &d) |
|
template<typename T>
class inviwo::TemplateColumn< T >
Data column used for plotting which represents a named buffer of type T. The name is used as column header.