File: vtkrendering_vtkgraphmapper.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 (210 lines) | stat: -rw-r--r-- 11,089 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
<!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: vtkGraphMapper</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_vtkgraphmapper.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">vtkGraphMapper </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>vtkGraphMapper is a mapper to map vtkGraph (and all derived classes) to graphics primitives.</p>
<p>To create an instance of class vtkGraphMapper, simply invoke its constructor as follows </p>
<pre class="fragment">  obj = vtkGraphMapper
</pre> <h1><a class="anchor" id="Methods"></a>
Methods</h1>
<p>The class vtkGraphMapper 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 vtkGraphMapper class. </p>
<ul>
<li>
<code>string = obj.GetClassName ()</code>  </li>
<li>
<code>int = obj.IsA (string name)</code>  </li>
<li>
<code>vtkGraphMapper = obj.NewInstance ()</code>  </li>
<li>
<code>vtkGraphMapper = obj.SafeDownCast (vtkObject o)</code>  </li>
<li>
<code>obj.Render (vtkRenderer ren, vtkActor act)</code>  </li>
<li>
<code>obj.SetVertexColorArrayName (string name)</code> - The array to use for coloring vertices. Default is "color".  </li>
<li>
<code>string = obj.GetVertexColorArrayName ()</code> - The array to use for coloring vertices. Default is "color".  </li>
<li>
<code>obj.SetColorVertices (bool vis)</code> - Whether to color vertices. Default is off.  </li>
<li>
<code>bool = obj.GetColorVertices ()</code> - Whether to color vertices. Default is off.  </li>
<li>
<code>obj.ColorVerticesOn ()</code> - Whether to color vertices. Default is off.  </li>
<li>
<code>obj.ColorVerticesOff ()</code> - Whether to color vertices. Default is off.  </li>
<li>
<code>obj.SetScaledGlyphs (bool arg)</code> - Whether scaled glyphs are on or not. Default is off. By default this mapper uses vertex glyphs that do not scale. If you turn this option on you will get circles at each vertex and they will scale as you zoom in/out.  </li>
<li>
<code>bool = obj.GetScaledGlyphs ()</code> - Whether scaled glyphs are on or not. Default is off. By default this mapper uses vertex glyphs that do not scale. If you turn this option on you will get circles at each vertex and they will scale as you zoom in/out.  </li>
<li>
<code>obj.ScaledGlyphsOn ()</code> - Whether scaled glyphs are on or not. Default is off. By default this mapper uses vertex glyphs that do not scale. If you turn this option on you will get circles at each vertex and they will scale as you zoom in/out.  </li>
<li>
<code>obj.ScaledGlyphsOff ()</code> - Whether scaled glyphs are on or not. Default is off. By default this mapper uses vertex glyphs that do not scale. If you turn this option on you will get circles at each vertex and they will scale as you zoom in/out.  </li>
<li>
<code>obj.SetScalingArrayName (string )</code> - Glyph scaling array name. Default is "scale"  </li>
<li>
<code>string = obj.GetScalingArrayName ()</code> - Glyph scaling array name. Default is "scale"  </li>
<li>
<code>obj.SetEdgeVisibility (bool vis)</code> - Whether to show edges or not. Default is on.  </li>
<li>
<code>bool = obj.GetEdgeVisibility ()</code> - Whether to show edges or not. Default is on.  </li>
<li>
<code>obj.EdgeVisibilityOn ()</code> - Whether to show edges or not. Default is on.  </li>
<li>
<code>obj.EdgeVisibilityOff ()</code> - Whether to show edges or not. Default is on.  </li>
<li>
<code>obj.SetEdgeColorArrayName (string name)</code> - The array to use for coloring edges. Default is "color".  </li>
<li>
<code>string = obj.GetEdgeColorArrayName ()</code> - The array to use for coloring edges. Default is "color".  </li>
<li>
<code>obj.SetColorEdges (bool vis)</code> - Whether to color edges. Default is off.  </li>
<li>
<code>bool = obj.GetColorEdges ()</code> - Whether to color edges. Default is off.  </li>
<li>
<code>obj.ColorEdgesOn ()</code> - Whether to color edges. Default is off.  </li>
<li>
<code>obj.ColorEdgesOff ()</code> - Whether to color edges. Default is off.  </li>
<li>
<code>obj.SetEnabledEdgesArrayName (string )</code> - The array to use for coloring edges. Default is "color".  </li>
<li>
<code>string = obj.GetEnabledEdgesArrayName ()</code> - The array to use for coloring edges. Default is "color".  </li>
<li>
<code>obj.SetEnableEdgesByArray (int )</code> - Whether to enable/disable edges using array values. Default is off.  </li>
<li>
<code>int = obj.GetEnableEdgesByArray ()</code> - Whether to enable/disable edges using array values. Default is off.  </li>
<li>
<code>obj.EnableEdgesByArrayOn ()</code> - Whether to enable/disable edges using array values. Default is off.  </li>
<li>
<code>obj.EnableEdgesByArrayOff ()</code> - Whether to enable/disable edges using array values. Default is off.  </li>
<li>
<code>obj.SetEnabledVerticesArrayName (string )</code> - The array to use for coloring edges. Default is "color".  </li>
<li>
<code>string = obj.GetEnabledVerticesArrayName ()</code> - The array to use for coloring edges. Default is "color".  </li>
<li>
<code>obj.SetEnableVerticesByArray (int )</code> - Whether to enable/disable vertices using array values. Default is off.  </li>
<li>
<code>int = obj.GetEnableVerticesByArray ()</code> - Whether to enable/disable vertices using array values. Default is off.  </li>
<li>
<code>obj.EnableVerticesByArrayOn ()</code> - Whether to enable/disable vertices using array values. Default is off.  </li>
<li>
<code>obj.EnableVerticesByArrayOff ()</code> - Whether to enable/disable vertices using array values. Default is off.  </li>
<li>
<code>obj.SetIconArrayName (string name)</code> - The array to use for assigning icons.  </li>
<li>
<code>string = obj.GetIconArrayName ()</code> - The array to use for assigning icons.  </li>
<li>
<code>obj.AddIconType (string type, int index)</code> - Associate the icon at index "index" in the vtkTexture to all vertices containing "type" as a value in the vertex attribute array specified by IconArrayName.  </li>
<li>
<code>obj.ClearIconTypes ()</code> - Clear all icon mappings.  </li>
<li>
<code>obj.SetIconSize (int size)</code> - Specify the Width and Height, in pixels, of an icon in the icon sheet.  </li>
<li>
<code>obj.SetIconAlignment (int alignment)</code> - Specify where the icons should be placed in relation to the vertex. See vtkIconGlyphFilter.h for possible values.  </li>
<li>
<code>vtkTexture = obj.GetIconTexture ()</code> - The texture containing the icon sheet.  </li>
<li>
<code>obj.SetIconTexture (vtkTexture texture)</code> - The texture containing the icon sheet.  </li>
<li>
<code>obj.SetIconVisibility (bool vis)</code> - Whether to show icons. Default is off.  </li>
<li>
<code>bool = obj.GetIconVisibility ()</code> - Whether to show icons. Default is off.  </li>
<li>
<code>obj.IconVisibilityOn ()</code> - Whether to show icons. Default is off.  </li>
<li>
<code>obj.IconVisibilityOff ()</code> - Whether to show icons. Default is off.  </li>
<li>
<code>float = obj.GetVertexPointSize ()</code> - Get/Set the vertex point size  </li>
<li>
<code>obj.SetVertexPointSize (float size)</code> - Get/Set the vertex point size  </li>
<li>
<code>float = obj.GetEdgeLineWidth ()</code> - Get/Set the edge line width  </li>
<li>
<code>obj.SetEdgeLineWidth (float width)</code> - Get/Set the edge line width  </li>
<li>
<code>obj.ApplyViewTheme (vtkViewTheme theme)</code> - Apply the theme to this view.  </li>
<li>
<code>obj.ReleaseGraphicsResources (vtkWindow )</code> - Release any graphics resources that are being consumed by this mapper. The parameter window could be used to determine which graphic resources to release.  </li>
<li>
<code>long = obj.GetMTime ()</code> - Get the mtime also considering the lookup table.  </li>
<li>
<code>obj.SetInput (vtkGraph input)</code> - Set the Input of this mapper.  </li>
<li>
<code>vtkGraph = obj.GetInput ()</code> - Set the Input of this mapper.  </li>
<li>
<code>double = obj.GetBounds ()</code> - Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax, zmin,zmax).  </li>
<li>
<code>obj.GetBounds (double bounds)</code> - Access to the lookup tables used by the vertex and edge mappers.  </li>
<li>
<code>vtkLookupTable = obj.GetEdgeLookupTable ()</code> - Access to the lookup tables used by the vertex and edge mappers.  </li>
<li>
<code>vtkLookupTable = obj.GetVertexLookupTable ()</code> - Access to the lookup tables used by the vertex and edge mappers.  </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>