CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
Config._AndModifier Class Reference
Inheritance diagram for Config._AndModifier:

Public Member Functions

def __and__ (self, other)
 
def __init__ (self, lhs, rhs)
 
def isChosen (self)
 
def makeProcessModifier (self, func)
 
def toModify (self, obj, func=None, kw)
 

Private Attributes

 __lhs
 
 __rhs
 

Detailed Description

A modifier which only applies if multiple Modifiers are chosen

Definition at line 1277 of file Config.py.

Constructor & Destructor Documentation

def Config._AndModifier.__init__ (   self,
  lhs,
  rhs 
)

Definition at line 1279 of file Config.py.

1279  def __init__(self, lhs, rhs):
1280  self.__lhs = lhs
1281  self.__rhs = rhs
def __init__(self, lhs, rhs)
Definition: Config.py:1279

Member Function Documentation

def Config._AndModifier.__and__ (   self,
  other 
)

Definition at line 1293 of file Config.py.

1293  def __and__(self, other):
1294  return _AndModifier(self,other)
1295 
1296 
1297 
def __and__(self, other)
Definition: Config.py:1293
def Config._AndModifier.isChosen (   self)

Definition at line 1282 of file Config.py.

Referenced by Config._AndModifier.toModify(), Config.Modifier.toModify(), and Config.Modifier.toReplaceWith().

1282  def isChosen(self):
1283  return self.__lhs.isChosen() and self.__rhs.isChosen()
def isChosen(self)
Definition: Config.py:1282
def Config._AndModifier.makeProcessModifier (   self,
  func 
)
This is used to create a ProcessModifer that can perform actions on the process as a whole.
This takes as argument a callable object (e.g. function) that takes as its sole argument an instance of Process.
In order to work, the value returned from this function must be assigned to a uniquely named variable.

Definition at line 1288 of file Config.py.

1288  def makeProcessModifier(self,func):
1289  """This is used to create a ProcessModifer that can perform actions on the process as a whole.
1290  This takes as argument a callable object (e.g. function) that takes as its sole argument an instance of Process.
1291  In order to work, the value returned from this function must be assigned to a uniquely named variable."""
1292  return ProcessModifier(self,func)
def makeProcessModifier(self, func)
Definition: Config.py:1288
def Config._AndModifier.toModify (   self,
  obj,
  func = None,
  kw 
)

Definition at line 1284 of file Config.py.

References Config._AndModifier.isChosen().

1284  def toModify(self,obj, func=None,**kw):
1285  if not self.isChosen():
1286  return
1287  self.__lhs.toModify(obj,func, **kw)
def isChosen(self)
Definition: Config.py:1282
def toModify(self, obj, func=None, kw)
Definition: Config.py:1284

Member Data Documentation

Config._AndModifier.__lhs
private

Definition at line 1280 of file Config.py.

Config._AndModifier.__rhs
private

Definition at line 1281 of file Config.py.