API Documentation
Loading...
Searching...
No Matches
SplineModel.h
Go to the documentation of this file.
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{
8 class NDEVR_DESIGN_API SplineModel : public Model
9 {
10 public:
11 SplineModel(const Model& model);
12 void setPoints(const Buffer<Vertex<3, fltp08>>& spline);
13 Buffer<Vertex<3, fltp08>> points() const;
14 void setSplineType(const SplineType& spline);
15 SplineType splineType() const;
16 void setInterpolationSegments(uint04 segments);
17 uint04 interpolationSegments() const;
18 public:
19 static ApplicationOption<uint04> default_interpolation_segments;
20 static ApplicationOption<SplineType> default_spline_type;
21 static constexpr const char* TypeName() { return "spline"; }
22 protected:
23 void init();
24 };
25}
26#endif
#define NDEVR_DESIGN_API
Definition DLLInfo.h:77
Definition ACIColor.h:37
SplineType
Definition SplineEnums.h:7
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:120