diff --git a/mayavi/tests/test_glyph.py b/mayavi/tests/test_glyph.py
index 5f15cea..50e5177 100644
a
|
b
|
def test_glyph(self): |
140 | 140 | def test_mask_input_points_with_random_mode(self): |
141 | 141 | """Test if masking input points works with random mode. |
142 | 142 | Tests Issue #165""" |
143 | | s = self.scene |
144 | | src = s.children[0] |
145 | | g = src.children[0].children[1] |
146 | | g.glyph.mask_input_points = True |
147 | 143 | self.check(mask=True, mask_random_mode=True) |
148 | 144 | |
149 | 145 | def test_mask_input_points_without_random_mode(self): |
diff --git a/tvtk/common.py b/tvtk/common.py
index 0c82372..fb04270 100644
a
|
b
|
def get_tvtk_name(vtk_name): |
47 | 47 | def is_old_pipeline(): |
48 | 48 | return vtk_major_version < 6 |
49 | 49 | |
50 | | def is_version_62(): |
51 | | return vtk_major_version == 6 and vtk_minor_version == 2 |
| 50 | def is_version_62_or_later(): |
| 51 | return vtk_major_version == 6 and vtk_minor_version > 1 |
52 | 52 | |
53 | 53 | def is_version_58(): |
54 | 54 | return vtk_major_version == 5 and vtk_minor_version == 8 |
diff --git a/tvtk/tests/test_vtk_parser.py b/tvtk/tests/test_vtk_parser.py
index 28a8c4d..27537dd 100644
a
|
b
|
def test_parse(self): |
94 | 94 | 'DiffuseColor': ((1.0, 1.0, 1.0), None), |
95 | 95 | 'EdgeColor': ((1.0, 1.0, 1.0), None), |
96 | 96 | 'LineStipplePattern': (65535, None), |
97 | | 'LineStippleRepeatFactor': (1, (1, vtk.VTK_LARGE_INTEGER)), |
98 | | 'LineWidth': (1.0, (0.0, vtk.VTK_LARGE_FLOAT)), |
| 97 | 'LineStippleRepeatFactor': (1, (1, vtk.VTK_INT_MAX)), |
| 98 | 'LineWidth': (1.0, (0.0, vtk.VTK_FLOAT_MAX)), |
99 | 99 | 'Opacity': (1.0, (0.0, 1.0)), |
100 | | 'PointSize': (1.0, (0.0, vtk.VTK_LARGE_FLOAT)), |
| 100 | 'PointSize': (1.0, (0.0, vtk.VTK_FLOAT_MAX)), |
101 | 101 | 'ReferenceCount': (1, None), |
102 | 102 | 'Specular': (0.0, (0.0, 1.0)), |
103 | 103 | 'SpecularColor': ((1.0, 1.0, 1.0), None), |
… |
… |
def test_parse(self): |
140 | 140 | res = ['AddShaderVariable', 'BackfaceRender', 'DeepCopy', |
141 | 141 | 'ReleaseGraphicsResources', 'RemoveAllTextures', |
142 | 142 | 'RemoveTexture', 'Render'] |
143 | | if vtk_minor_version == 2: |
| 143 | if vtk_minor_version > 1: |
144 | 144 | res.append('VTKTextureUnit') |
145 | 145 | else: |
146 | 146 | res = ['AddShaderVariable', 'BackfaceRender', 'DeepCopy', |
diff --git a/tvtk/vtk_parser.py b/tvtk/vtk_parser.py
index 0ffec78..8800f07 100644
a
|
b
|
|
12 | 12 | # Local imports (these are relative imports for a good reason). |
13 | 13 | import class_tree |
14 | 14 | import vtk_module as vtk |
15 | | from common import is_version_62 |
| 15 | from common import is_version_62_or_later |
16 | 16 | |
17 | 17 | class VTKMethodParser: |
18 | 18 | """This class provides useful methods for parsing methods of a VTK |
… |
… |
def get_method_signature(self, method): |
301 | 301 | |
302 | 302 | """ |
303 | 303 | # VTK 6.2 false built in funcs/methods are ignored |
304 | | if is_version_62(): |
| 304 | if is_version_62_or_later(): |
305 | 305 | built_in_func = isinstance(method, types.BuiltinFunctionType) |
306 | 306 | built_in_meth = isinstance(method, types.BuiltinMethodType) |
307 | 307 | if not (built_in_func or built_in_meth): |
diff --git a/tvtk/wrapper_gen.py b/tvtk/wrapper_gen.py
index 277ed1d..3506135 100644
a
|
b
|
|
16 | 16 | |
17 | 17 | # Local imports (these are relative imports because the package is not |
18 | 18 | # installed when these modules are imported). |
19 | | from common import get_tvtk_name, camel2enthought, is_version_62, is_version_58 |
| 19 | from common import get_tvtk_name, camel2enthought, is_version_58 |
20 | 20 | import vtk_parser |
21 | 21 | import indenter |
22 | 22 | import special_gen |