Rev | Line | |
---|
[2798] | 1 | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ |
---|
[3502] | 2 | /* |
---|
| 3 | * Copyright (c) 2004-2013 HUBzero Foundation, LLC |
---|
| 4 | * |
---|
| 5 | */ |
---|
[4889] | 6 | #ifndef NV_POINT_SET_RENDERER_H |
---|
| 7 | #define NV_POINT_SET_RENDERER_H |
---|
[825] | 8 | |
---|
[3492] | 9 | #include <vrmath/Vector3f.h> |
---|
| 10 | #include <vrmath/Matrix4x4d.h> |
---|
| 11 | |
---|
[825] | 12 | #include "PCASplit.h" |
---|
| 13 | #include "BucketSort.h" |
---|
| 14 | #include "PointShader.h" |
---|
| 15 | #include "Texture2D.h" |
---|
| 16 | |
---|
[4889] | 17 | namespace nv { |
---|
| 18 | |
---|
[2831] | 19 | class PointSetRenderer |
---|
| 20 | { |
---|
[2953] | 21 | public: |
---|
[825] | 22 | PointSetRenderer(); |
---|
| 23 | ~PointSetRenderer(); |
---|
| 24 | |
---|
[3492] | 25 | void render(PCA::ClusterAccel *cluster, const vrmath::Matrix4x4d& mat, |
---|
| 26 | int sortLevel, const vrmath::Vector3f& scale, const vrmath::Vector3f& origin); |
---|
[825] | 27 | |
---|
[2831] | 28 | private: |
---|
| 29 | void renderPoints(PCA::Point *points, int length); |
---|
| 30 | |
---|
| 31 | void renderCluster(PCA::ClusterList **bucket, int size, int level); |
---|
| 32 | |
---|
| 33 | PCA::BucketSort *_bucketSort; |
---|
| 34 | PointShader *_shader; |
---|
| 35 | Texture2D *_pointTexture; |
---|
[825] | 36 | }; |
---|
| 37 | |
---|
[4889] | 38 | } |
---|
| 39 | |
---|
[825] | 40 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.