source: nanovis/branches/1.1/PointSetRenderer.h @ 4804

Last change on this file since 4804 was 3502, checked in by ldelgass, 11 years ago

Add basic VTK structured points reader to nanovis, update copyright dates.

  • Property svn:eol-style set to native
File size: 836 bytes
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2/*
3 * Copyright (c) 2004-2013  HUBzero Foundation, LLC
4 *
5 */
6#ifndef POINT_SET_RENDERER_H
7#define POINT_SET_RENDERER_H
8
9#include <vrmath/Vector3f.h>
10#include <vrmath/Matrix4x4d.h>
11
12#include "PCASplit.h"
13#include "BucketSort.h"
14#include "PointShader.h"
15#include "Texture2D.h"
16
17class PointSetRenderer
18{
19public:
20    PointSetRenderer();
21    ~PointSetRenderer();
22
23    void render(PCA::ClusterAccel *cluster, const vrmath::Matrix4x4d& mat,
24                int sortLevel, const vrmath::Vector3f& scale, const vrmath::Vector3f& origin);
25
26private:
27    void renderPoints(PCA::Point *points, int length);
28
29    void renderCluster(PCA::ClusterList **bucket, int size, int level);
30
31    PCA::BucketSort *_bucketSort;
32    PointShader *_shader;
33    Texture2D *_pointTexture;
34};
35
36#endif
Note: See TracBrowser for help on using the repository browser.