3#include "Components/Core/DynamicComponent.h"
5#include "Resources/Buffer.h"
11 static void registerType();
13 void initialize(
Context * context);
36 void generateHighSide();
46template<>
inline Cogs::StringView getName<Cogs::Core::RadialLogComponent>() {
return "RadialLogComponent"; }
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Base class for components implementing dynamic behavior.
Provides a weakly referenced view over the contents of a string.
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
std::shared_ptr< ComponentModel::Entity > EntityPtr
Smart pointer for Entity access.
BufferView provides a typed, reference-counted, span of an underlying buffer resource.
float r_max
Manual max radius for gradient.
glm::vec4 high_side_color
Color for drawing high side indicator.
uint32_t high_side_index
Index of sector to use for finding radius.
BufferView< glm::vec3 > positions
Center position for each sample.
BufferView< float > azimuths
Clockwise rotation from grid north in radians, per sample.
bool normalize_range
Automatically use min/max radius (from buffer) with gradient.
BufferView< float > radiuses
One radius per sector (sectors = radiuses/samples).
BufferView< glm::vec4 > colors
One color per radius value, only used if set.
BufferView< float > indexes
Measured depth per sample.
float high_side_size
Height of high side indicator.
BufferView< glm::vec3 > gradient
Color gradient.
BufferView< float > inclinations
Positive values interpreted as down, per sample.
float r_min
Manual min radius for gradient.