source: trunk/vizservers/nanovis/PointSet.h @ 827

Last change on this file since 827 was 827, checked in by vrinside, 14 years ago

Added color blending with point sprite texture

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