Cogs.Core
AnnotationAxisComponent.cpp
1#include "AnnotationAxisComponent.h"
2
3#include "Types.h"
4
5using namespace Cogs::Reflection;
6
7void Cogs::Core::AnnotationAxisComponent::registerType()
8{
9 Field fields [] = {
10 Field(Name("strings"), &AnnotationAxisComponent::strings),
11 Field(Name("positions"), &AnnotationAxisComponent::positions),
12 Field(Name("distance"), &AnnotationAxisComponent::distance),
14 Field(Name("viewDependentAnchorReference"), &AnnotationAxisComponent::viewDependentAnchorReference),
15 };
16
17 TypeDatabase::createType<AnnotationAxisComponent>().setBase<Component>().setFields(fields);
18}
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