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 1281 of file Config.py.

Constructor & Destructor Documentation

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

Definition at line 1283 of file Config.py.

1283  def __init__(self, lhs, rhs):
1284  self.__lhs = lhs
1285  self.__rhs = rhs
def __init__(self, lhs, rhs)
Definition: Config.py:1283

Member Function Documentation

def Config._AndModifier.__and__ (   self,
  other 
)

Definition at line 1297 of file Config.py.

1297  def __and__(self, other):
1298  return _AndModifier(self,other)
1299 
1300 
1301 
def __and__(self, other)
Definition: Config.py:1297
def Config._AndModifier.isChosen (   self)

Definition at line 1286 of file Config.py.

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

1286  def isChosen(self):
1287  return self.__lhs.isChosen() and self.__rhs.isChosen()
def isChosen(self)
Definition: Config.py:1286
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 1292 of file Config.py.

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

Definition at line 1288 of file Config.py.

References Config._AndModifier.isChosen().

1288  def toModify(self,obj, func=None,**kw):
1289  if not self.isChosen():
1290  return
1291  self.__lhs.toModify(obj,func, **kw)
def isChosen(self)
Definition: Config.py:1286
def toModify(self, obj, func=None, kw)
Definition: Config.py:1288

Member Data Documentation

Config._AndModifier.__lhs
private

Definition at line 1284 of file Config.py.

Config._AndModifier.__rhs
private

Definition at line 1285 of file Config.py.