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

Last change on this file since 3464 was 2844, checked in by ldelgass, 12 years ago

Cleanups, no functional changes

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
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{
11public :
12    PointSet() :
13        _sortLevel(4),
14        _cluster(0),
15        _max(1.0f),
16        _min(0.0f),
17        _visible(false)
18    {
19    }
20
21    ~PointSet() {
22        if (_cluster) {
23            delete _cluster;
24        }
25    }
26
27    void initialize(Vector4 *values, const unsigned int count,
28                    const Vector3& scale, const Vector3& origin,
29                    float min, float max);
30
31    void updateColor(float *color, int count);
32
33    bool isVisible() const
34    {
35        return _visible;
36    }
37
38    void setVisible(bool visible)
39    {
40        _visible = visible;
41    }
42
43    unsigned int getSortLevel() const
44    {
45        return _sortLevel;
46    }
47
48    PCA::ClusterAccel* getCluster()
49    {
50        return _cluster;
51    }
52
53    Vector3& getScale()
54    {
55        return _scale;
56    }
57
58    const Vector3& getScale() const
59    {
60        return _scale;
61    }
62
63    Vector3& getOrigin()
64    {
65        return _origin;
66    }
67
68    const Vector3& getOrigin() const
69    {
70        return _origin;
71    }
72
73private:
74    unsigned int _sortLevel;
75    PCA::ClusterAccel *_cluster;
76
77    Vector3 _scale;
78    Vector3 _origin;
79    float _max;
80    float _min;
81    bool _visible;
82};
83
84#endif
Note: See TracBrowser for help on using the repository browser.