1 #!/usr/bin/env python
\r
6 Plotmanipulator class for Hooke.
\r
8 Copyright 2010 by Dr. Rolf Schmidt (Concordia University, Canada)
\r
10 This program is released under the GNU General Public License version 2.
\r
13 from string import replace
\r
15 class Plotmanipulator(object):
\r
16 def __init__(self, command=None, method=None):
\r
17 #the command (e.g. plotmanip_correct)
\r
18 self.command = command
\r
19 #the method associated with the command
\r
20 self.method = method
\r
21 #the suffix of the command (e.g. correct) to retrieve
\r
22 #status (active or not from config)
\r
23 self.name = command.replace('plotmanip_', '')
\r