Cogs.Core
MarkerPointSetComponent.cpp
1#include "MarkerPointSetComponent.h"
2#include "Types.h"
3
4using namespace Cogs::Reflection;
5
6void Cogs::Core::MarkerPointSetComponent::registerType()
7{
8 {
9 static constexpr EnumeratorDef enumerators[] = {
10 { "ViewAlignedDisc", MarkerPointSetShape::ViewAlignedDisc },
11 { "ObjectSpaceFloorDisc", MarkerPointSetShape::ObjectSpaceFloorDisc },
12 { "FixedScreenSizeDisc", MarkerPointSetShape::FixedScreenSizeDisc }
13 };
14 TypeDatabase::createType<MarkerPointSetShape>().setEnumerators(enumerators);
15 }
16
17 Field fields[] = {
27 };
28
29 TypeDatabase::createType<MarkerPointSetComponent>().setBase<Component>().setFields(fields);
30}
float farDistance
Don't display points further than this distance from the camera.
MarkerPointSetShape shape
Specify the shape of the points.
glm::vec4 outlineColor
Points outline color.
bool smooth
Smooth out the point edges.
float nearDistance
Don't display points closer than this distance from the camera.
std::vector< glm::vec3 > positions
Marker points positions.
glm::vec4 diffuseColor
Points inner color.
Field definition describing a single data member of a data structure.
Definition: Field.h:68
@ ViewAlignedDisc
Point is a flat disc aligned with the main camera view.
@ ObjectSpaceFloorDisc
Point is a flat disc on the XY-plane, point size is object-space diameter of disc.
@ FixedScreenSizeDisc
Point is a screen-space disc, point size is screen-space diameter of disc, won't work with multiple c...
Contains reflection support.
Definition: Component.h:11
Represents an unique name.
Definition: Name.h:70