source: trunk/packages/vizservers/vtkvis/RpVtkDataSet.h @ 2112

Last change on this file since 2112 was 2112, checked in by ldelgass, 14 years ago

New features for vtk render server:

  • Add new ColorMap? supporting linear ramps with separate color and opacity control points
  • 3D camera modes with pan/rotate/zoom (FIXME: rotate uses Euler angles)
  • New axis commands, set titles/units, grid on 3D axes
  • New polydata command for rendering 3D meshes (to replace Tcl vtkviewer for drawing3d rappture element)
  • Pseudocolor can be applied to non-image datasets (tested with polydata) as long as point data is present. Added option to turn on edges.
  • Property svn:eol-style set to native
File size: 969 bytes
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2/*
3 * Copyright (C) 2011, Purdue Research Foundation
4 *
5 * Author: Leif Delgass <ldelgass@purdue.edu>
6 */
7
8#ifndef __RAPPTURE_VTKVIS_DATASET_H__
9#define __RAPPTURE_VTKVIS_DATASET_H__
10
11#include <vtkSmartPointer.h>
12#include <vtkDataSet.h>
13#include <vtkDataSetReader.h>
14
15#include <string>
16#include <vector>
17
18namespace Rappture {
19namespace VtkVis {
20
21/**
22 * \brief VTK DataSet wrapper
23 */
24class DataSet {
25public:
26    DataSet(const std::string& name);
27    virtual ~DataSet();
28
29    bool setData(char *data, int nbytes);
30
31    bool setDataFile(const char *filename);
32
33    const std::string& getName();
34
35    vtkDataSet *getVtkDataSet();
36
37    void getDataRange(double minmax[2]);
38
39    double getDataValue(double x, double y, double z);
40
41private:
42    DataSet();
43
44    bool setData(vtkDataSetReader *reader);
45
46    std::string _name;
47    vtkSmartPointer<vtkDataSet> _dataSet;
48    double _dataRange[2];
49};
50
51}
52}
53
54#endif
Note: See TracBrowser for help on using the repository browser.