Cogs.Core
SwathIsoComponent.cpp
1#include "../Components/SwathIsoComponent.h"
2
3#include "Types.h"
4
5using namespace Cogs::Reflection;
6
7void Cogs::Core::EchoSounder::SwathIsoComponent::registerType()
8{
9 static constexpr EnumeratorDef enumerators[] = {
10 { "Zero", TextureDomain::Zero },
11 { "One", TextureDomain::One },
12 { "PositionX", TextureDomain::PositionX },
13 { "PositionY", TextureDomain::PositionY },
14 { "VerticalDepth", TextureDomain::VerticalDepth },
15 { "BeamDistance", TextureDomain::BeamDistance },
16 { "Value", TextureDomain::Value },
17 { "LayerNormalized", TextureDomain::LayerNormalized },
18 { "Age", TextureDomain::Age },
19 };
20 TypeDatabase::createType<TextureDomain>().setEnumerators(enumerators);
21
22 Field fields[] = {
23 Field(Name("thresholds"), &SwathIsoComponent::thresholds),
24 Field(Name("capSeparation"), &SwathIsoComponent::capSeparation),
25 Field(Name("flipOrientation"), &SwathIsoComponent::flipOrientation),
26 Field(Name("innerLayerOpaque"), &SwathIsoComponent::innerLayerOpaque),
27 Field(Name("layerDepthBiasStep"), &SwathIsoComponent::layerDepthBiasStep),
28 Field(Name("seabedClipOffset"), &SwathIsoComponent::seabedClipOffset),
29 Field(Name("overflowThreshold"), &SwathIsoComponent::overflowThreshold),
30 Field(Name("minVerticalDepth"), &SwathIsoComponent::minVerticalDepth),
31 Field(Name("maxVerticalDepth"), &SwathIsoComponent::maxVerticalDepth),
32 Field(Name("uTextureDomain"), &SwathIsoComponent::uTextureDomain),
33 Field(Name("uTextureRange"), &SwathIsoComponent::uTextureRange),
34 Field(Name("vTextureDomain"), &SwathIsoComponent::vTextureDomain),
35 Field(Name("vTextureRange"), &SwathIsoComponent::vTextureRange),
36
37 Field(Name("material"), &SwathIsoComponent::material),
38 };
39
40 TypeDatabase::createType<SwathIsoComponent>()
41 .setBase<Component>()
42 .setFields(fields);
43}
Field definition describing a single data member of a data structure.
Definition: Field.h:68
Contains reflection support.
Definition: Component.h:11
Represents an unique name.
Definition: Name.h:70