Revision 4eaf0dce8350a336dd310a788f96f236db7f0d7f authored by Eh Tan on 08 September 2008, 19:18:16 UTC, committed by Eh Tan on 08 September 2008, 19:18:16 UTC
1 parent b20f4d7
CitcomSFilterActions.py
"""Actions to start the CitcomS filter.
"""
#Author: Martin Weier
#Copyright (C) 2006 California Institute of Technology
#This program is free software; you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation; either version 2 of the License, or
#any later version.
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#GNU General Public License for more details.
#You should have received a copy of the GNU General Public License
#along with this program; if not, write to the Free Software
#Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# Enthought library imports.
# Local imports.
from enthought.mayavi.action.common import WorkbenchAction, get_imayavi
class AddCitcomsReduceFilter(WorkbenchAction):
""" An action that starts a delaunay 2d filter. """
###########################################################################
# 'Action' interface.
###########################################################################
def perform(self):
""" Performs the action. """
from CitcomSreduce import CitcomSreduce
f = CitcomSreduce()
mv = get_imayavi(self.window)
mv.add_filter(f)
class AddCitcomsCapFilter(WorkbenchAction):
""" An action that starts a delaunay 2d filter. """
###########################################################################
# 'Action' interface.
###########################################################################
def perform(self):
""" Performs the action. """
from CitcomsCapFilter import CitcomsCapFilter
f = CitcomsCapFilter()
mv = get_imayavi(self.window)
mv.add_filter(f)
Computing file changes ...