File: vtkrendering_vtkviewtheme.html

package info (click to toggle)
freemat 4.2%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 141,800 kB
  • ctags: 14,082
  • sloc: ansic: 126,788; cpp: 62,046; python: 2,080; perl: 1,255; sh: 1,146; yacc: 1,019; lex: 239; makefile: 100
file content (252 lines) | stat: -rw-r--r-- 13,710 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>FreeMat: vtkViewTheme</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">FreeMat
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="pages.html"><span>Related&#160;Pages</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('vtkrendering_vtkviewtheme.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">vtkViewTheme </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><p>Section: <a class="el" href="sec_vtkrendering.html">Visualization Toolkit Rendering Classes</a> </p>
<h1><a class="anchor" id="Usage"></a>
Usage</h1>
<p>This may be set on any subclass of vtkView. The view class will attempt to use the values set in the theme to customize the view. Views will not generally use every aspect of the theme. NOTICE: This class will be deprecated in favor of a more robust solution based on style sheets. Do not become overly-dependent on the functionality of themes.</p>
<p>To create an instance of class vtkViewTheme, simply invoke its constructor as follows </p>
<pre class="fragment">  obj = vtkViewTheme
</pre> <h1><a class="anchor" id="Methods"></a>
Methods</h1>
<p>The class vtkViewTheme has several methods that can be used. They are listed below. Note that the documentation is translated automatically from the VTK sources, and may not be completely intelligible. When in doubt, consult the VTK website. In the methods listed below, <code>obj</code> is an instance of the vtkViewTheme class. </p>
<ul>
<li>
<code>string = obj.GetClassName ()</code>  </li>
<li>
<code>int = obj.IsA (string name)</code>  </li>
<li>
<code>vtkViewTheme = obj.NewInstance ()</code>  </li>
<li>
<code>vtkViewTheme = obj.SafeDownCast (vtkObject o)</code>  </li>
<li>
<code>obj.SetPointSize (double )</code> - The size of points or vertices  </li>
<li>
<code>double = obj.GetPointSize ()</code> - The size of points or vertices  </li>
<li>
<code>obj.SetLineWidth (double )</code> - The width of lines or edges  </li>
<li>
<code>double = obj.GetLineWidth ()</code> - The width of lines or edges  </li>
<li>
<code>obj.SetPointColor (double , double , double )</code> - The color and opacity of points or vertices when not mapped through a lookup table.  </li>
<li>
<code>obj.SetPointColor (double a[3])</code> - The color and opacity of points or vertices when not mapped through a lookup table.  </li>
<li>
<code>double = obj. GetPointColor ()</code> - The color and opacity of points or vertices when not mapped through a lookup table.  </li>
<li>
<code>obj.SetPointOpacity (double )</code> - The color and opacity of points or vertices when not mapped through a lookup table.  </li>
<li>
<code>double = obj.GetPointOpacity ()</code> - The color and opacity of points or vertices when not mapped through a lookup table.  </li>
<li>
<code>obj.SetPointHueRange (double mn, double mx)</code> - The ranges to use in the point lookup table. You may also do this by accessing the point lookup table directly with GetPointLookupTable() and calling these methods.  </li>
<li>
<code>obj.SetPointHueRange (double rng[2])</code> - The ranges to use in the point lookup table. You may also do this by accessing the point lookup table directly with GetPointLookupTable() and calling these methods.  </li>
<li>
<code>obj.GetPointHueRange (double rng[2])</code> - The ranges to use in the point lookup table. You may also do this by accessing the point lookup table directly with GetPointLookupTable() and calling these methods.  </li>
<li>
<code>obj.SetPointSaturationRange (double mn, double mx)</code>  </li>
<li>
<code>obj.SetPointSaturationRange (double rng[2])</code>  </li>
<li>
<code>obj.GetPointSaturationRange (double rng[2])</code>  </li>
<li>
<code>obj.SetPointValueRange (double mn, double mx)</code>  </li>
<li>
<code>obj.SetPointValueRange (double rng[2])</code>  </li>
<li>
<code>obj.GetPointValueRange (double rng[2])</code>  </li>
<li>
<code>obj.SetPointAlphaRange (double mn, double mx)</code>  </li>
<li>
<code>obj.SetPointAlphaRange (double rng[2])</code>  </li>
<li>
<code>obj.GetPointAlphaRange (double rng[2])</code>  </li>
<li>
<code>vtkScalarsToColors = obj.GetPointLookupTable ()</code> - Set/Get the point lookup table.  </li>
<li>
<code>obj.SetPointLookupTable (vtkScalarsToColors lut)</code> - Set/Get the point lookup table.  </li>
<li>
<code>obj.SetScalePointLookupTable (bool )</code> - Whether to scale the lookup table to fit the range of the data.  </li>
<li>
<code>bool = obj.GetScalePointLookupTable ()</code> - Whether to scale the lookup table to fit the range of the data.  </li>
<li>
<code>obj.ScalePointLookupTableOn ()</code> - Whether to scale the lookup table to fit the range of the data.  </li>
<li>
<code>obj.ScalePointLookupTableOff ()</code> - Whether to scale the lookup table to fit the range of the data.  </li>
<li>
<code>obj.SetCellColor (double , double , double )</code> - The color and opacity of cells or edges when not mapped through a lookup table.  </li>
<li>
<code>obj.SetCellColor (double a[3])</code> - The color and opacity of cells or edges when not mapped through a lookup table.  </li>
<li>
<code>double = obj. GetCellColor ()</code> - The color and opacity of cells or edges when not mapped through a lookup table.  </li>
<li>
<code>obj.SetCellOpacity (double )</code> - The color and opacity of cells or edges when not mapped through a lookup table.  </li>
<li>
<code>double = obj.GetCellOpacity ()</code> - The color and opacity of cells or edges when not mapped through a lookup table.  </li>
<li>
<code>obj.SetCellHueRange (double mn, double mx)</code> - The ranges to use in the cell lookup table. You may also do this by accessing the cell lookup table directly with GetCellLookupTable() and calling these methods.  </li>
<li>
<code>obj.SetCellHueRange (double rng[2])</code> - The ranges to use in the cell lookup table. You may also do this by accessing the cell lookup table directly with GetCellLookupTable() and calling these methods.  </li>
<li>
<code>obj.GetCellHueRange (double rng[2])</code> - The ranges to use in the cell lookup table. You may also do this by accessing the cell lookup table directly with GetCellLookupTable() and calling these methods.  </li>
<li>
<code>obj.SetCellSaturationRange (double mn, double mx)</code>  </li>
<li>
<code>obj.SetCellSaturationRange (double rng[2])</code>  </li>
<li>
<code>obj.GetCellSaturationRange (double rng[2])</code>  </li>
<li>
<code>obj.SetCellValueRange (double mn, double mx)</code>  </li>
<li>
<code>obj.SetCellValueRange (double rng[2])</code>  </li>
<li>
<code>obj.GetCellValueRange (double rng[2])</code>  </li>
<li>
<code>obj.SetCellAlphaRange (double mn, double mx)</code>  </li>
<li>
<code>obj.SetCellAlphaRange (double rng[2])</code>  </li>
<li>
<code>obj.GetCellAlphaRange (double rng[2])</code>  </li>
<li>
<code>vtkScalarsToColors = obj.GetCellLookupTable ()</code> - Set/Get the cell lookup table.  </li>
<li>
<code>obj.SetCellLookupTable (vtkScalarsToColors lut)</code> - Set/Get the cell lookup table.  </li>
<li>
<code>obj.SetScaleCellLookupTable (bool )</code> - Whether to scale the lookup table to fit the range of the data.  </li>
<li>
<code>bool = obj.GetScaleCellLookupTable ()</code> - Whether to scale the lookup table to fit the range of the data.  </li>
<li>
<code>obj.ScaleCellLookupTableOn ()</code> - Whether to scale the lookup table to fit the range of the data.  </li>
<li>
<code>obj.ScaleCellLookupTableOff ()</code> - Whether to scale the lookup table to fit the range of the data.  </li>
<li>
<code>obj.SetOutlineColor (double , double , double )</code> - The color of any outlines in the view.  </li>
<li>
<code>obj.SetOutlineColor (double a[3])</code> - The color of any outlines in the view.  </li>
<li>
<code>double = obj. GetOutlineColor ()</code> - The color of any outlines in the view.  </li>
<li>
<code>obj.SetSelectedPointColor (double , double , double )</code> - The color of selected points or vertices.  </li>
<li>
<code>obj.SetSelectedPointColor (double a[3])</code> - The color of selected points or vertices.  </li>
<li>
<code>double = obj. GetSelectedPointColor ()</code> - The color of selected points or vertices.  </li>
<li>
<code>obj.SetSelectedPointOpacity (double )</code> - The color of selected points or vertices.  </li>
<li>
<code>double = obj.GetSelectedPointOpacity ()</code> - The color of selected points or vertices.  </li>
<li>
<code>obj.SetSelectedCellColor (double , double , double )</code> - The color of selected cells or edges.  </li>
<li>
<code>obj.SetSelectedCellColor (double a[3])</code> - The color of selected cells or edges.  </li>
<li>
<code>double = obj. GetSelectedCellColor ()</code> - The color of selected cells or edges.  </li>
<li>
<code>obj.SetSelectedCellOpacity (double )</code> - The color of selected cells or edges.  </li>
<li>
<code>double = obj.GetSelectedCellOpacity ()</code> - The color of selected cells or edges.  </li>
<li>
<code>obj.SetBackgroundColor (double , double , double )</code> - The view background color.  </li>
<li>
<code>obj.SetBackgroundColor (double a[3])</code> - The view background color.  </li>
<li>
<code>double = obj. GetBackgroundColor ()</code> - The view background color.  </li>
<li>
<code>obj.SetBackgroundColor2 (double , double , double )</code> - The second background color (for gradients).  </li>
<li>
<code>obj.SetBackgroundColor2 (double a[3])</code> - The second background color (for gradients).  </li>
<li>
<code>double = obj. GetBackgroundColor2 ()</code> - The second background color (for gradients).  </li>
<li>
<code>obj.SetPointTextProperty (vtkTextProperty tprop)</code> - The text property to use for labelling points/vertices.  </li>
<li>
<code>vtkTextProperty = obj.GetPointTextProperty ()</code> - The text property to use for labelling points/vertices.  </li>
<li>
<code>obj.SetCellTextProperty (vtkTextProperty tprop)</code> - The text property to use for labelling edges/cells.  </li>
<li>
<code>vtkTextProperty = obj.GetCellTextProperty ()</code> - The text property to use for labelling edges/cells.  </li>
<li>
<code>obj.SetVertexLabelColor (double r, double g, double b)</code> - The color to use for labelling graph vertices. This is deprecated. Use GetPointTextProperty()-&gt;SetColor() instead.  </li>
<li>
<code>obj.SetVertexLabelColor (double c[3])</code> - The color to use for labelling graph vertices. This is deprecated. Use GetPointTextProperty()-&gt;SetColor() instead.  </li>
<li>
<code>obj.GetVertexLabelColor (double c[3])</code> - The color to use for labelling graph edges. This is deprecated. Use GetCellTextProperty()-&gt;SetColor() instead.  </li>
<li>
<code>obj.SetEdgeLabelColor (double r, double g, double b)</code> - The color to use for labelling graph edges. This is deprecated. Use GetCellTextProperty()-&gt;SetColor() instead.  </li>
<li>
<code>obj.SetEdgeLabelColor (double c[3])</code> - The color to use for labelling graph edges. This is deprecated. Use GetCellTextProperty()-&gt;SetColor() instead.  </li>
<li>
<code>obj.GetEdgeLabelColor (double c[3])</code> - Convenience methods for creating some default view themes. The return reference is reference-counted, so you will have to call Delete() on the reference when you are finished with it.  </li>
<li>
<code>bool = obj.LookupMatchesPointTheme (vtkScalarsToColors s2c)</code> - Whether a given lookup table matches the point or cell theme of this theme.  </li>
<li>
<code>bool = obj.LookupMatchesCellTheme (vtkScalarsToColors s2c)</code> - Whether a given lookup table matches the point or cell theme of this theme.  </li>
</ul>
</div></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="index.html">FreeMat Documentation</a></li><li class="navelem"><a class="el" href="sec_vtkrendering.html">Visualization Toolkit Rendering Classes</a></li>
    <li class="footer">Generated on Thu Jul 25 2013 17:18:35 for FreeMat by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.1.1 </li>
  </ul>
</div>
</body>
</html>