# Author: Prabhu Ramachandran # Copyright (c) 2006, Enthought, Inc. # License: BSD Style. # Enthought library imports. from traits.api import Instance from tvtk.api import tvtk # Local imports from mayavi.filters.poly_data_normals import PolyDataNormals from mayavi.core.pipeline_info import PipelineInfo ###################################################################### # `WarpScalar` class. ###################################################################### class WarpScalar(PolyDataNormals): """Warps the input data along a particular direction (either the normals or a specified direction) with a scale specified by the local scalar value. Useful for making carpet plots. """ # The version of this class. Used for persistence. __version__ = 0 # The actual TVTK filter that this class manages. filter = Instance(tvtk.WarpScalar, args=(), allow_none=False, record=True) input_info = PipelineInfo(datasets=['any'], attribute_types=['any'], attributes=['scalars']) output_info = PipelineInfo(datasets=['any'], attribute_types=['any'], attributes=['any'])