NDEVR
API Documentation
SplineModel.h
1#pragma once
2#include <NDEVR/Model.h>
3#include <NDEVR/SplineType.h>
4#include <NDEVR/ApplicationOptions.h>
5#if NDEVR_SPLINE_MODEL
6namespace NDEVR
7{
12 class NDEVR_DESIGN_API SplineModel : public Model
13 {
14 public:
19 SplineModel(const Model& model);
20
25 void setPoints(const Buffer<Vertex<3, fltp08>>& spline);
26
31 Buffer<Vertex<3, fltp08>> points() const;
32
37 void setSplineType(const SplineType& spline);
38
43 SplineType splineType() const;
44
49 void setInterpolationSegments(uint04 segments);
50
55 uint04 interpolationSegments() const;
56 public:
57 static ApplicationOption<uint04> default_interpolation_segments;
58 static ApplicationOption<SplineType> default_spline_type;
59
64 static constexpr StringView TypeName() { return "spline"; }
65 protected:
69 void init();
70 };
71}
72#endif
A core class that represents a node on model hierarchy.
Definition Model.h:292
The primary namespace for the NDEVR SDK.
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
SplineType
Defines the type of interpolation used for a spline curve.
Definition SplineEnums.h:9