source: trunk/packages/vizservers/nanovis/PointSet.h @ 1018

Last change on this file since 1018 was 953, checked in by gah, 12 years ago

remove warnings from compile

File size: 1.3 KB
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
9class 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;
18public :
19    PointSet();
20    ~PointSet();
21
22public :
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
35inline bool PointSet::isVisible() const
36{
37    return _visible;
38}
39
40inline void PointSet::setVisible(bool visible)
41{
42    _visible = visible;
43}
44
45inline unsigned int PointSet::getSortLevel()const
46{
47    return _sortLevel;
48}
49
50inline PCA::ClusterAccel* PointSet::getCluster()
51{
52    return _cluster;
53}
54
55inline Vector3& PointSet::getScale()
56{
57    return _scale;
58}
59
60inline const Vector3& PointSet::getScale() const
61{
62    return _scale;
63}
64
65inline Vector3& PointSet::getOrigin()
66{
67    return _origin;
68}
69
70inline const Vector3& PointSet::getOrigin() const
71{
72    return _origin;
73}
74
75#endif //
Note: See TracBrowser for help on using the repository browser.