Last change
on this file since 2261 was
2261,
checked in by ldelgass, 13 years ago
|
Add GPU volume rendering support to vtkvis render server
|
-
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 | /* |
---|
3 | * Copyright (C) 2011, Purdue Research Foundation |
---|
4 | * |
---|
5 | * Author: Leif Delgass <ldelgass@purdue.edu> |
---|
6 | */ |
---|
7 | |
---|
8 | #ifndef __RAPPTURE_VTKVIS_POLYDATA_H__ |
---|
9 | #define __RAPPTURE_VTKVIS_POLYDATA_H__ |
---|
10 | |
---|
11 | #include <vtkSmartPointer.h> |
---|
12 | #include <vtkPolyDataMapper.h> |
---|
13 | #include <vtkActor.h> |
---|
14 | |
---|
15 | #include <vector> |
---|
16 | |
---|
17 | #include "RpVtkDataSet.h" |
---|
18 | |
---|
19 | namespace Rappture { |
---|
20 | namespace VtkVis { |
---|
21 | |
---|
22 | /** |
---|
23 | * \brief VTK Mesh (Polygon data) |
---|
24 | */ |
---|
25 | class PolyData { |
---|
26 | public: |
---|
27 | PolyData(); |
---|
28 | virtual ~PolyData(); |
---|
29 | |
---|
30 | void setDataSet(DataSet *dataset); |
---|
31 | |
---|
32 | DataSet *getDataSet(); |
---|
33 | |
---|
34 | vtkProp *getProp(); |
---|
35 | |
---|
36 | void setVisibility(bool state); |
---|
37 | |
---|
38 | bool getVisibility(); |
---|
39 | |
---|
40 | void setOpacity(double opacity); |
---|
41 | |
---|
42 | void setWireframe(bool state); |
---|
43 | |
---|
44 | void setColor(float color[3]); |
---|
45 | |
---|
46 | void setEdgeVisibility(bool state); |
---|
47 | |
---|
48 | void setEdgeColor(float color[3]); |
---|
49 | |
---|
50 | void setEdgeWidth(float edgeWidth); |
---|
51 | |
---|
52 | void setClippingPlanes(vtkPlaneCollection *planes); |
---|
53 | |
---|
54 | void setLighting(bool state); |
---|
55 | |
---|
56 | private: |
---|
57 | void initProp(); |
---|
58 | void update(); |
---|
59 | |
---|
60 | DataSet *_dataSet; |
---|
61 | |
---|
62 | float _color[3]; |
---|
63 | float _edgeColor[3]; |
---|
64 | float _edgeWidth; |
---|
65 | double _opacity; |
---|
66 | bool _lighting; |
---|
67 | vtkSmartPointer<vtkPolyDataMapper> _pdMapper; |
---|
68 | vtkSmartPointer<vtkActor> _pdActor; |
---|
69 | }; |
---|
70 | |
---|
71 | } |
---|
72 | } |
---|
73 | |
---|
74 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.