/usr/share/pyshared/mayavi/modules/metadata.py is in mayavi2 4.1.0-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 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 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 | """
Metadata for all modules.
"""
# Author: Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
# Copyright (c) 2008, Prabhu Ramachandran Enthought, Inc.
# License: BSD Style.
# Local imports.
from mayavi.core.metadata import ModuleMetadata
from mayavi.core.pipeline_info import PipelineInfo
BASE = 'mayavi.modules'
################################################################################
# Metadata.
axes_module = ModuleMetadata(
id = "AxesModule",
menu_name = "&Axes",
class_name = BASE + '.axes.Axes',
desc = "Draw cubical axes on the outline for given input",
tooltip = "Draw axes on the outline of input data",
help = "Draw axes on the outline of input data",
input_info = PipelineInfo(datasets=['any'],
attribute_types=['any'],
attributes=['any'])
)
contour_grid_plane_module = ModuleMetadata(
id = "ContourGridPlaneModule",
menu_name = "&ContourGridPlane",
class_name = BASE + '.contour_grid_plane.ContourGridPlane',
desc = "Shows a contour grid plane for the given input",
tooltip = "Shows a contour grid plane for the given input",
help = "Shows a contour grid plane for the given input",
input_info = PipelineInfo(datasets=['image_data',
'structured_grid',
'rectilinear_grid'],
attribute_types=['any'],
attributes=['any'])
)
custom_grid_plane_module = ModuleMetadata(
id = "CustomGridPlaneModule",
menu_name = "CustomGridPlane",
class_name = BASE + '.custom_grid_plane.CustomGridPlane',
desc = "Creates a highly customizable grid plane for given input",
tooltip = "Creates a highly customizable grid plane for given input",
help = "Creates a highly customizable grid plane for given input",
input_info = PipelineInfo(datasets=['image_data',
'structured_grid',
'rectilinear_grid'],
attribute_types=['any'],
attributes=['any'])
)
glyph_module = ModuleMetadata(
id = "GlyphModule",
menu_name = "Gl&yph",
class_name = BASE + '.glyph.Glyph',
desc = "Creates colored and scaled glyphs at at input points",
tooltip = "Creates colored and scaled glyphs at at input points",
help = "Creates colored and scaled glyphs at at input points",
input_info = PipelineInfo(datasets=['any'],
attribute_types=['any'],
attributes=['any'])
)
grid_plane_module = ModuleMetadata(
id = "GridPlaneModule",
menu_name = "&GridPlane",
class_name = BASE + '.grid_plane.GridPlane',
desc = "Shows a grid plane for the given input",
tooltip = "Shows a grid plane for the given input",
help = "Shows a grid plane for the given input",
input_info = PipelineInfo(datasets=['image_data',
'structured_grid',
'rectilinear_grid'],
attribute_types=['any'],
attributes=['any'])
)
hyper_streamline_module = ModuleMetadata(
id = "HyperStreamlineModule",
menu_name = "&HyperStreamline",
class_name = BASE + '.hyper_streamline.HyperStreamline',
desc = "Shows hyper streamlines for tensor data",
tooltip = "Shows hyper streamlines for tensor data",
help = "Shows hyper streamlines for tensor data",
input_info = PipelineInfo(datasets=['any'],
attribute_types=['any'],
attributes=['tensors'])
)
image_actor_module = ModuleMetadata(
id = "ImageActorModule",
menu_name = "&ImageActor",
class_name = BASE + '.image_actor.ImageActor',
desc = "Shows an image actor for image data",
tooltip = "Shows an image actor for image data",
help = "Shows an image actor for image data",
input_info = PipelineInfo(datasets=['image_data'],
attribute_types=['any'],
attributes=['any'])
)
image_plane_widget_module = ModuleMetadata(
id = "ImagePlaneWidgetModule",
menu_name = "I&magePlaneWidget",
class_name = BASE + '.image_plane_widget.ImagePlaneWidget',
desc = "Shows an image plane widget for image data",
tooltip = "Shows an image plane widget for image data",
help = "Shows an image plane widget for image data",
input_info = PipelineInfo(datasets=['image_data'],
attribute_types=['any'],
attributes=['scalars'])
)
isosurface_module = ModuleMetadata(
id = "IsoSurfaceModule",
menu_name = "&IsoSurface",
class_name = BASE + '.iso_surface.IsoSurface',
desc = "Creates an iso-surface for the given input",
tooltip = "Creates an iso-surface for the given input",
help = "Creates an iso-surface for the given input",
input_info = PipelineInfo(datasets=['any'],
attribute_types=['any'],
attributes=['scalars'])
)
labels_module = ModuleMetadata(
id = "LabelsModule",
menu_name = "&Labels",
class_name = BASE + '.labels.Labels',
desc = "Display labels for active dataset or active module",
tooltip = "Display labels for active dataset or active module",
help = "Display labels for active dataset or active module",
input_info = PipelineInfo(datasets=['any'],
attribute_types=['any'],
attributes=['any'])
)
orientation_axes_module = ModuleMetadata(
id = "OrientationAxesModule",
menu_name = "Orientation A&xes",
class_name = BASE + '.orientation_axes.OrientationAxes',
desc = "Show an axes indicating the current orientation",
tooltip = "Show an axes indicating the current orientation",
help = "Show an axes indicating the current orientation",
input_info = PipelineInfo(datasets=['any'],
attribute_types=['any'],
attributes=['any'])
)
outline_module = ModuleMetadata(
id = "OutlineModule",
menu_name = "&Outline",
class_name = BASE + '.outline.Outline',
desc = "Draw an outline for given input",
tooltip = "Draw an outline for given input",
help = "Draw an outline for given input",
input_info = PipelineInfo(datasets=['any'],
attribute_types=['any'],
attributes=['any'])
)
scalar_cut_plane_module = ModuleMetadata(
id = "ScalarCutPlaneModule",
menu_name = "Scalar Cut &Plane",
class_name = BASE + '.scalar_cut_plane.ScalarCutPlane',
desc = "Slice through the data with optional contours",
tooltip = "Slice through the data with optional contours",
help = "Slice through the data with optional contours",
input_info = PipelineInfo(datasets=['any'],
attribute_types=['any'],
attributes=['scalars'])
)
slice_ug_module = ModuleMetadata(
id = "SliceUnstructuredGridModule",
menu_name = "Slice &Unstructured Grid",
class_name = BASE + '.slice_unstructured_grid.SliceUnstructuredGrid',
desc = "Slice an unstructured grid to show cells",
tooltip = "Slice an unstructured grid to show cells",
help = "Slice an unstructured grid to show cells",
input_info = PipelineInfo(datasets=['unstructured_grid'],
attribute_types=['any'],
attributes=['any'])
)
sgrid_outline_module = ModuleMetadata(
id = "StructuredGridOutlineModule",
menu_name = "StructuredGridOutline",
class_name = BASE + '.structured_grid_outline.StructuredGridOutline',
desc = "Draw a grid-conforming outline for structured grids",
tooltip = "Draw a grid-conforming outline for structured grids",
help = "Draw a grid-conforming outline for structured grids",
input_info = PipelineInfo(datasets=['any'],
attribute_types=['any'],
attributes=['any'])
)
streamline_module = ModuleMetadata(
id = "StreamlineModule",
menu_name = "Stream&line",
class_name = BASE + '.streamline.Streamline',
desc = "Generate streamlines for the vectors",
tooltip = "Generate streamlines for the vectors",
help = "Generate streamlines for the vectors",
input_info = PipelineInfo(datasets=['any'],
attribute_types=['any'],
attributes=['vectors'])
)
surface_module = ModuleMetadata(
id = "SurfaceModule",
menu_name = "&Surface",
class_name = BASE + '.surface.Surface',
desc = "Creates a surface for the given input",
tooltip = "Creates a surface for the given input",
help = "Creates a surface for the given input",
input_info = PipelineInfo(datasets=['any'],
attribute_types=['any'],
attributes=['any'])
)
tensor_glyph_module = ModuleMetadata(
id = "TensorGlyphModule",
menu_name = "Te&nsorGlyph",
class_name = BASE + '.tensor_glyph.TensorGlyph',
desc = "Displays glyphs scaled and oriented as per tensor data",
tooltip = "Displays glyphs scaled and oriented as per tensor data",
help = "Displays glyphs scaled and oriented as per tensor data",
input_info = PipelineInfo(datasets=['any'],
attribute_types=['any'],
attributes=['tensors'])
)
text_module = ModuleMetadata(
id = "TextModule",
menu_name = "&Text",
class_name = BASE + '.text.Text',
desc = "Displays user specified text on screen",
tooltip = "Displays text on screen",
help = "Displays text on screen",
input_info = PipelineInfo(datasets=['any'],
attribute_types=['any'],
attributes=['any'])
)
text3d_module = ModuleMetadata(
id = "Text3DModule",
menu_name = "&Text3D",
class_name = BASE + '.text3d.Text3D',
desc = "Displays user-specified text at a 3D location in the scene",
tooltip = "Displays user-specified text at a 3D location in the scene",
help = "Displays user-specified text at a 3D location in the scene",
input_info = PipelineInfo(datasets=['any'],
attribute_types=['any'],
attributes=['any'])
)
vector_cut_plane_module = ModuleMetadata(
id = "VectorCutPlaneModule",
menu_name = "&VectorCutPlane",
class_name = BASE + '.vector_cut_plane.VectorCutPlane',
desc = "Display vectors along a cut plane",
tooltip = "Display vectors along a cut plane",
help = "Display vectors along a cut plane",
input_info = PipelineInfo(datasets=['any'],
attribute_types=['any'],
attributes=['vectors'])
)
vectors_module = ModuleMetadata(
id = "VectorsModule",
menu_name = "Vecto&rs",
class_name = BASE + '.vectors.Vectors',
desc = "Display input vectors using arrows or other glyphs",
tooltip = "Display input vectors using arrows or other glyphs",
help = "Display input vectors using arrows or other glyphs",
input_info = PipelineInfo(datasets=['any'],
attribute_types=['any'],
attributes=['any'])
)
volume_module = ModuleMetadata(
id = "VolumeModule",
menu_name = "Volum&e",
class_name = BASE + '.volume.Volume',
desc = "Use volume rendering to view the scalar field",
tooltip = "Use volume rendering to view the scalar field",
help = "Use volume rendering to view the scalar field",
input_info = PipelineInfo(datasets=['image_data',
'unstructured_grid'],
attribute_types=['any'],
attributes=['scalars'])
)
warp_vector_cut_plane_module = ModuleMetadata(
id = "WarpVectorCutPlaneModule",
menu_name = "&WarpVectorCutPlane",
class_name = BASE + '.warp_vector_cut_plane.WarpVectorCutPlane',
desc = "Warp cut plane along scaled input vectors",
tooltip = "Warp cut plane along scaled input vectors",
help = "Warp cut plane along scaled input vectors",
input_info = PipelineInfo(datasets=['any'],
attribute_types=['any'],
attributes=['vectors'])
)
# Now collect all the modules for the mayavi registry.
modules = [axes_module,
contour_grid_plane_module,
custom_grid_plane_module,
glyph_module,
grid_plane_module,
hyper_streamline_module,
image_actor_module,
image_plane_widget_module,
isosurface_module,
labels_module,
orientation_axes_module,
outline_module,
scalar_cut_plane_module,
slice_ug_module,
sgrid_outline_module,
streamline_module,
surface_module,
tensor_glyph_module,
text_module,
text3d_module,
vector_cut_plane_module,
vectors_module,
volume_module,
warp_vector_cut_plane_module,
]
|