Line | |
---|
1 | |
---|
2 | #ifndef __POINT_SET_H__ |
---|
3 | #define __POINT_SET_H__ |
---|
4 | |
---|
5 | #include <PCASplit.h> |
---|
6 | #include <Vector4.h> |
---|
7 | #include <Vector3.h> |
---|
8 | |
---|
9 | class PointSet { |
---|
10 | unsigned int _sortLevel; |
---|
11 | PCA::ClusterAccel* _cluster; |
---|
12 | |
---|
13 | Vector3 _scale; |
---|
14 | Vector3 _origin; |
---|
15 | float _max; |
---|
16 | float _min; |
---|
17 | bool _visible; |
---|
18 | public : |
---|
19 | PointSet(); |
---|
20 | ~PointSet(); |
---|
21 | |
---|
22 | public : |
---|
23 | void initialize(Vector4* values, const unsigned int count, const Vector3& scale, const Vector3& origin, float min, float max); |
---|
24 | bool isVisible() const; |
---|
25 | void setVisible(bool visible); |
---|
26 | unsigned int getSortLevel()const; |
---|
27 | PCA::ClusterAccel* getCluster(); |
---|
28 | void updateColor(float* color, int count); |
---|
29 | const Vector3& getScale() const; |
---|
30 | Vector3& getScale(); |
---|
31 | const Vector3& getOrigin() const; |
---|
32 | Vector3& getOrigin(); |
---|
33 | }; |
---|
34 | |
---|
35 | inline bool PointSet::isVisible() const |
---|
36 | { |
---|
37 | return _visible; |
---|
38 | } |
---|
39 | |
---|
40 | inline void PointSet::setVisible(bool visible) |
---|
41 | { |
---|
42 | _visible = visible; |
---|
43 | } |
---|
44 | |
---|
45 | inline unsigned int PointSet::getSortLevel()const |
---|
46 | { |
---|
47 | return _sortLevel; |
---|
48 | } |
---|
49 | |
---|
50 | inline PCA::ClusterAccel* PointSet::getCluster() |
---|
51 | { |
---|
52 | return _cluster; |
---|
53 | } |
---|
54 | |
---|
55 | inline Vector3& PointSet::getScale() |
---|
56 | { |
---|
57 | return _scale; |
---|
58 | } |
---|
59 | |
---|
60 | inline const Vector3& PointSet::getScale() const |
---|
61 | { |
---|
62 | return _scale; |
---|
63 | } |
---|
64 | |
---|
65 | inline Vector3& PointSet::getOrigin() |
---|
66 | { |
---|
67 | return _origin; |
---|
68 | } |
---|
69 | |
---|
70 | inline const Vector3& PointSet::getOrigin() const |
---|
71 | { |
---|
72 | return _origin; |
---|
73 | } |
---|
74 | |
---|
75 | #endif // |
---|
Note: See
TracBrowser
for help on using the repository browser.