#include <dataframetomesh.h>
Classes | |
struct | Info |
struct | OffsetAndPicking |
struct | ScaleAndOffset |
struct | Type |
Public Types | |
using | SpatialType = Type<3, vec3, OrdinalProperty<dmat4>> |
using | RealType = Type<1, float, ScaleAndOffset> |
using | IntType = Type<1, uint32_t, ScaleAndOffset> |
using | PickingType = Type<1, uint32_t, OffsetAndPicking> |
using | ColorType = Type<1, vec4, TransferFunctionProperty> |
using | Types = std::variant<SpatialType, RealType, IntType, PickingType, ColorType> |
Public Member Functions | |
ColumnMapper (std::span< Info > infos) | |
bool | isModified () const |
void | updateSources (const DataFrame &df) |
Mesh::BufferVector | getBuffers (const DataFrame &df) |
This class manages the properties required for creating Buffers from a DataFrame dataset. In particular, it allows to select specific columns to be used for vertex data, normals, colors, etc. Data values can also be transformed.
Mesh::BufferVector inviwo::util::ColumnMapper::getBuffers | ( | const DataFrame & | df | ) |
Generate mesh buffers for the given DataFrame set df
based on the internal properties.
array | DataFrame used as data source |
bool inviwo::util::ColumnMapper::isModified | ( | ) | const |
Query the isModified() status of all nested composite properties
void inviwo::util::ColumnMapper::updateSources | ( | const DataFrame & | df | ) |
Update the internal state to match the DataFrame columns of df
and their names.
df | DataFrame used as source for generating mesh buffers and updating the internal properties. |