/usr/share/doc/python-pyvtk/html/pyvtk.VtkData.html is in python-pyvtk 0.4.74-3.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: class VtkData</title>
<meta charset="utf-8">
</head><body bgcolor="#f0f0f8">
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><strong>pyvtk.VtkData</strong> = <a name="pyvtk.VtkData">class VtkData</a>(<a href="pyvtk.common.html#Common">pyvtk.common.Common</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>VtkData<br>
=======<br>
<br>
Represents VTK file that has four relevant parts:<br>
header - string up to length 255<br>
format - string: ascii | binary<br>
DataSet - StructuredPoints | StructuredGrid | UnstructuredGrid<br>
| RectilinearGrid | PolyData<br>
Data - PointData | CellData<br>
<br>
Usage:<br>
------<br>
v = VtkData(<DataSet instance> [,<header string>,<Data instances>,..])<br>
v = VtkData(<filename>, only_structure = 0) - read VTK data from file.<br>
v.<a href="#pyvtk.VtkData-tofile">tofile</a>(filename, format = 'ascii') - save VTK data to file.<br>
Attributes:<br>
header<br>
structure<br>
point_data<br>
cell_data<br>
Public methods:<br>
<a href="#pyvtk.VtkData-to_string">to_string</a>(format = 'ascii')<br>
<a href="#pyvtk.VtkData-tofile">tofile</a>(filename, format = 'ascii')<br>
<br>
DataSet<br>
=======<br>
<br>
StructuredPoints(<3-sequence of dimensions><br>
[,<3-sequence of origin> [, <3-sequence of spacing>]])<br>
StructuredGrid(<3-sequence of dimensions>,<br>
<sequence of 3-sequences of points>)<br>
UnstructuredGrid(<sequence of 3-sequences of points><br>
[,<cell> = <sequence of (sequences of) integers>])<br>
cell - vertex | poly_vertex | line | poly_line | triangle<br>
| triangle_strip | polygon | pixel | quad | tetra<br>
| voxel | hexahedron | wedge | pyramid<br>
RectilinearGrid([x = <sequence of x-coordinates>],<br>
[y = <sequence of y-coordinates>],<br>
[z = <sequence of z-coordinates>])<br>
PolyData(<sequence of 3-sequences of points>,<br>
[vertices = <sequence of (sequences of) integers>],<br>
[lines = <sequence of (sequences of) integers>],<br>
[polygons = <sequence of (sequences of) integers>],<br>
[triangle_strips = <sequence of (sequences of) integers>])<br>
<br>
Data<br>
====<br>
<br>
PointData | CellData ([<DataSetAttr instances>]) - construct Data instance<br>
<br>
DataSetAttr<br>
===========<br>
<br>
DataSetAttr - Scalars | ColorScalars | LookupTable | Vectors<br>
| Normals | TextureCoordinates | Tensors | Field<br>
Scalars(<sequence of scalars> [,name[, lookup_table]])<br>
ColorScalars(<sequence of scalar sequences> [,name])<br>
LookupTable(<sequence of 4-sequences> [,name])<br>
Vectors(<sequence of 3-sequences> [,name])<br>
Normals(<sequence of 3-sequences> [,name])<br>
TextureCoordinates(<sequence of (1,2, or 3)-sequences> [,name])<br>
Tensors(<sequence of (3x3)-sequences> [,name])<br>
Field([name,] [arrayname_1 = sequence of n_1-sequences, ...<br>
arrayname_m = sequence of n_m-sequences,])<br>
where len(array_1) == .. == len(array_m) must hold.<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="VtkData-__init__"><strong>__init__</strong></a>(self, *args, **kws)</dt></dl>
<dl><dt><a name="VtkData-fromfile"><strong>fromfile</strong></a>(self, filename, only_structure<font color="#909090">=0</font>)</dt></dl>
<dl><dt><a name="VtkData-to_string"><strong>to_string</strong></a>(self, format<font color="#909090">='ascii'</font>)</dt></dl>
<dl><dt><a name="VtkData-tofile"><strong>tofile</strong></a>(self, filename, format<font color="#909090">='ascii'</font>)</dt><dd><tt>Save VTK data to file.</tt></dd></dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>cell_data</strong> = None</dl>
<dl><dt><strong>header</strong> = None</dl>
<dl><dt><strong>point_data</strong> = None</dl>
<hr>
Methods inherited from <a href="pyvtk.common.html#Common">pyvtk.common.Common</a>:<br>
<dl><dt><a name="VtkData-__str__"><strong>__str__</strong></a>(self)</dt></dl>
<dl><dt><a name="VtkData-error"><strong>error</strong></a>(self, m<font color="#909090">=''</font>)</dt></dl>
<dl><dt><a name="VtkData-float01_to_int255"><strong>float01_to_int255</strong></a>(self, seq)</dt></dl>
<dl><dt><a name="VtkData-get_3_3_tuple"><strong>get_3_3_tuple</strong></a>(self, obj, default<font color="#909090">=None</font>)</dt><dd><tt>Return tuple of 3-tuples</tt></dd></dl>
<dl><dt><a name="VtkData-get_3_3_tuple_list"><strong>get_3_3_tuple_list</strong></a>(self, obj, default<font color="#909090">=None</font>)</dt><dd><tt>Return list of 3x3-tuples.</tt></dd></dl>
<dl><dt><a name="VtkData-get_3_tuple"><strong>get_3_tuple</strong></a>(self, obj, default<font color="#909090">=None</font>)</dt><dd><tt>Return 3-tuple from<br>
number -> (obj,default[1],default[2])<br>
0-sequence|None -> default<br>
1-sequence -> (obj[0],default[1],default[2])<br>
2-sequence -> (obj[0],obj[1],default[2])<br>
(3 or more)-sequence -> (obj[0],obj[1],obj[2])</tt></dd></dl>
<dl><dt><a name="VtkData-get_3_tuple_list"><strong>get_3_tuple_list</strong></a>(self, obj, default<font color="#909090">=None</font>)</dt><dd><tt>Return list of 3-tuples from<br>
sequence of a sequence,<br>
sequence - it is mapped to sequence of 3-sequences if possible<br>
number</tt></dd></dl>
<dl><dt><a name="VtkData-get_datatype"><strong>get_datatype</strong></a>(self, obj)</dt></dl>
<dl><dt><a name="VtkData-get_n_seq_seq"><strong>get_n_seq_seq</strong></a>(self, obj, default)</dt></dl>
<dl><dt><a name="VtkData-get_seq"><strong>get_seq</strong></a>(self, obj, default<font color="#909090">=None</font>)</dt><dd><tt>Return sequence.</tt></dd></dl>
<dl><dt><a name="VtkData-get_seq_seq"><strong>get_seq_seq</strong></a>(self, obj, default<font color="#909090">=None</font>)</dt><dd><tt>Return sequence of sequences.</tt></dd></dl>
<dl><dt><a name="VtkData-int255_to_float01"><strong>int255_to_float01</strong></a>(self, seq)</dt></dl>
<dl><dt><a name="VtkData-message"><strong>message</strong></a>(self, m<font color="#909090">=''</font>)</dt></dl>
<dl><dt><a name="VtkData-seq_to_string"><strong>seq_to_string</strong></a>(self, seq, format, datatype)</dt></dl>
<dl><dt><a name="VtkData-skipping"><strong>skipping</strong></a>(self, m<font color="#909090">=''</font>)</dt></dl>
<dl><dt><a name="VtkData-warning"><strong>warning</strong></a>(self, m<font color="#909090">=''</font>)</dt></dl>
<hr>
Data and other attributes inherited from <a href="pyvtk.common.html#Common">pyvtk.common.Common</a>:<br>
<dl><dt><strong>default_float</strong> = 'float'</dl>
<dl><dt><strong>default_int</strong> = 'int'</dl>
<dl><dt><strong>struct_fmt_map</strong> = {'char': 'c', 'double': 'd', 'float': 'f', 'int': 'i', 'long': 'l', 'unsigned char': 'B'}</dl>
</td></tr></table>
</body></html>
|