Cogs.Core
PingIsoComponent.cpp
1#include "../Components/PingIsoComponent.h"
2
3#include "Types.h"
4
5using namespace Cogs::Reflection;
6
7void Cogs::Core::EchoSounder::PingIsoComponent::registerType()
8{
9 Field fields[] = {
10 // Modifying these causes re-creation of geometry.
11 Field(Name("thresholds"), &PingIsoComponent::thresholds),
12 Field(Name("capSeparation"), &PingIsoComponent::capSeparation),
13 Field(Name("depthSpacing"), &PingIsoComponent::depthSpacing),
14 Field(Name("beamSpacing"), &PingIsoComponent::beamSpacing),
15 Field(Name("beamMaxUpsample"), &PingIsoComponent::beamMaxUpsample),
16 Field(Name("overflowThreshold"), &PingIsoComponent::overflowThreshold),
17 Field(Name("minVerticalDepth"), &PingIsoComponent::minVerticalDepth),
18 Field(Name("maxVerticalDepth"), &PingIsoComponent::maxVerticalDepth),
19 Field(Name("flipOrientation"), &PingIsoComponent::flipOrientation),
20 Field(Name("seabedClipOffset"), &PingIsoComponent::seabedClipOffset),
21
22 // These only sets material properties.
23 Field(Name("material"), &PingIsoComponent::material),
24 Field(Name("innerLayerOpaque"), &PingIsoComponent::innerLayerOpaque),
25 Field(Name("layerDepthBiasStep"), &PingIsoComponent::layerDepthBiasStep),
26 Field(Name("opacity"), &PingIsoComponent::opacity)
27 };
28
29 TypeDatabase::createType<PingIsoComponent>()
30 .setBase<Component>()
31 .setFields(fields);
32}
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