3#include "Foundation/ComponentModel/Component.h"
48 static void registerType();
50 std::shared_ptr<ComponentModel::Entity>
dataSet;
51 std::shared_ptr<ComponentModel::Entity>
colorMap;
70 return "HeightMapComponent";
73template<>
inline Cogs::StringView getName<Cogs::Core::HeightMapComponent::IsoLine>()
78template<>
inline Cogs::StringView getName<Cogs::Core::HeightMapComponent::TextureDomain>()
80 return "TextureDomain";
Base class for Component instances.
Provides a weakly referenced view over the contents of a string.
Contains all Cogs related functionality.
float yIncrement
Grid line separation along y axis.
float maxValue
Explicitly set maximum value, set to NaN to use dataset's maximum value.
std::shared_ptr< ComponentModel::Entity > colorMap
Color map used to colorize values from the dataset.
bool gridLines
Enable rendering of grid lines.
@ Bottom
Iso-line on bottom of bounding box.
@ Top
Iso-line on top of bounding box.
@ XY
compute texture coordinates based on the height of the points
std::shared_ptr< ComponentModel::Entity > dataSet
Underlying 2D scalar dataset.
TextureDomain textureDomain
Specify how the texture coordinates of the points in the mesh are computed.
float height
Height of maximum value.
float isoLineDistance
Distance between consecutive iso-lines, set to NaN to use default value.
IsoLine isoLine
Enable iso-line rendering.
glm::vec3 gridLineOffset
Offset of grid lines relative to surface.
float xIncrement
Grid line separation along x axis.
float minValue
Explicitly set minimum value, set to NaN to use dataset's minimum value.
float isoLineOrigin
Value of zero'th iso-line, set to NaN to use current minimum value.