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 /**--------------------------------------------------------------------------------------------------
9 \brief A Model which reprents a 3D spline, or curved path.
10 **/
11 class NDEVR_DESIGN_API SplineModel : public Model
12 {
13 public:
14 SplineModel(const Model& model);
15 void setPoints(const Buffer<Vertex<3, fltp08>>& spline);
16 Buffer<Vertex<3, fltp08>> points() const;
17 void setSplineType(const SplineType& spline);
18 SplineType splineType() const;
19 void setInterpolationSegments(uint04 segments);
20 uint04 interpolationSegments() const;
21 public:
22 static ApplicationOption<uint04> default_interpolation_segments;
23 static ApplicationOption<SplineType> default_spline_type;
24 static constexpr const char* TypeName() { return "spline"; }
25 protected:
26 void init();
27 };
28}
29#endif
#define NDEVR_DESIGN_API
Definition DLLInfo.h:55
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:96