-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathattrib_handle_manager.h
64 lines (41 loc) · 1.08 KB
/
attrib_handle_manager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#pragma once
// C++ STL
#include <iostream>
#include <vector>
// CGV framework core
#include <cgv/math/fvec.h>
#include <cgv/math/fmat.h>
#include <cgv/media/color.h>
// local includes
#include "traj_loader.h"
/// provides read and write capabilites for Hermite splines in .bezdat format
template <class flt_type>
class attrib_handle_manager
{
public:
/// real number type
typedef typename traj_format_handler<flt_type>::real real;
/// 2D vector type
typedef typename traj_format_handler<real>::Vec2 vec2;
/// 3D vector type
typedef typename traj_format_handler<real>::Vec3 vec3;
/// 4D vector type
typedef typename traj_format_handler<real>::Vec4 vec4;
/// rgb color type
typedef typename traj_format_handler<real>::Color color;
private:
/// implementation forward
struct Impl;
/// implementation handle
Impl *pimpl;
protected:
/// cleanup logic
void clear (void);
public:
/// default constructor
attrib_handle_manager();
/// the destructor
~attrib_handle_manager();
/// assign a dataset to handle
void set_dataset (const traj_dataset<real> &dataset);
};