Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::LayerConfig Struct Reference

Public Member Functions

DataMapper dataMap () const
 
DataMapper dataMap (const DataMapper &defaultMapper) const
 
LayerConfig orDefault () const
 
LayerReprConfig reprConfig () const
 
LayerConfig & updateFrom (const LayerConfig &config)
 
constexpr auto values ()
 
constexpr auto values () const
 

Static Public Member Functions

static glm::dmat4 aspectPreservingModelMatrixFromDimensions (size2_t dimensions)
 
static constexpr glm::dvec2 defaultDataRange (DataFormatId formatId=defaultFormatId)
 
static constexpr auto defaults ()
 
static constexpr glm::dvec2 defaultValueRange (DataFormatId formatId=defaultFormatId)
 
static constexpr auto names ()
 

Public Attributes

std::optional< glm::dvec2 > dataRange = std::nullopt
 
std::optional< size2_t > dimensions = std::nullopt
 
std::optional< DataFormatId > formatId = std::nullopt
 
std::optional< InterpolationType > interpolation = std::nullopt
 
std::optional< glm::dmat4 > model = std::nullopt
 
std::optional< SwizzleMask > swizzleMask = std::nullopt
 
std::optional< LayerType > type = std::nullopt
 
std::optional< Axis > valueAxis = std::nullopt
 
std::optional< glm::dvec2 > valueRange = std::nullopt
 
std::optional< glm::dmat4 > world = std::nullopt
 
std::optional< Wrapping2D > wrapping = std::nullopt
 
std::optional< Axis > xAxis = std::nullopt
 
std::optional< Axis > yAxis = std::nullopt
 

Static Public Attributes

static constexpr auto defaultDimensions = size2_t(8, 8)
 
static constexpr auto defaultFormatId = DataUInt8::id()
 
static constexpr auto defaultInterpolation = InterpolationType::Linear
 
static constexpr auto defaultModel = glm::dmat4{1.0f}
 
static constexpr auto defaultSwizzleMask = swizzlemasks::rgba
 
static constexpr auto defaultType = LayerType::Color
 
static const auto defaultValueAxis = Axis{}
 
static constexpr auto defaultWorld = glm::dmat4{1.0f}
 
static constexpr auto defaultWrapping = wrapping2d::clampAll
 
static const auto defaultXAxis = Axis{.name = "x", .unit = Unit{}}
 
static const auto defaultYAxis = Axis{.name = "y", .unit = Unit{}}
 

Friends

bool operator== (const LayerConfig &, const LayerConfig &)=default
 

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