mpacts.core. valueproperties

In order to be able to use this module import it like this:

import mpacts.core.valueproperties
#or assign it to a shorter name
import mpacts.core.valueproperties as val

IndexProperty

class mpacts.core.valueproperties.IndexProperty

Bases: mpacts.core.baseobject.BaseObject

A property BaseObject that holds an index that can be set/read from python and placed in the tree.
Has no default location.
  • Optional keywords:
    • description (default value = ) — description of this property.
    • value (default value = 0) — value of this property.
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [description, value]
IndexProperty(name, parent, **kwargs)

IntegerProperty

class mpacts.core.valueproperties.IntegerProperty

Bases: mpacts.core.baseobject.BaseObject

A property BaseObject that holds an integer that can be set/read from python and placed in the tree.
Has no default location.
  • Optional keywords:
    • description (default value = ) — description of this property.
    • value (default value = 0) — value of this property.
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [description, value]
IntegerProperty(name, parent, **kwargs)

MatrixProperty

class mpacts.core.valueproperties.MatrixProperty

Bases: mpacts.core.baseobject.BaseObject

A property BaseObject that holds a matrix that can be set/read from python and placed in the tree. | Has no default location.
  • Optional keywords:
    • description (default value = ) — description of this property.
    • value (default value = 0 0 0

0 0 0 0 0 0) — value of this property.

object __init__(tuple args, dict kwds) :
args: name, parent kwds: [description, value]
MatrixProperty(name, parent, **kwargs)

PythonObjectProperty

class mpacts.core.valueproperties.PythonObjectProperty

Bases: mpacts.core.baseobject.BaseObject

A property BaseObject that holds any python object that can be placed in the tree.
Has no default location.
object __init__(tuple args, dict kwds) :
args: name, parent kwds:
PythonObjectProperty(name, parent, **kwargs)

QuaternionProperty

class mpacts.core.valueproperties.QuaternionProperty

Bases: mpacts.core.baseobject.BaseObject

A property BaseObject that holds a quaternion that can be set/read from python and placed in the tree.
Has no default location.
  • Optional keywords:
    • description (default value = ) — description of this property.
    • value (default value = 0 + 0i + 0j + 0k ) — value of this property.
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [description, value]
QuaternionProperty(name, parent, **kwargs)

ScalarProperty

class mpacts.core.valueproperties.ScalarProperty

Bases: mpacts.core.baseobject.BaseObject

A property BaseObject that holds a scalar that can be set/read from python and placed in the tree.
Has no default location.
  • Optional keywords:
    • description (default value = ) — description of this property.
    • value (default value = 0) — value of this property.
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [description, value]
ScalarProperty(name, parent, **kwargs)

StringProperty

class mpacts.core.valueproperties.StringProperty

Bases: mpacts.core.baseobject.BaseObject

A property BaseObject that holds a String that can be set/read from python and placed in the tree.
Has no default location.
  • Optional keywords:
    • description (default value = ) — description of this property.
    • value (default value = ) — value of this property.
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [description, value]
StringProperty(name, parent, **kwargs)

SymmetricMatrixProperty

class mpacts.core.valueproperties.SymmetricMatrixProperty

Bases: mpacts.core.baseobject.BaseObject

A property BaseObject that holds a SymmetricMatrix (defined by 6 elements) that can be set/read from python and placed in the tree. | Has no default location.
  • Optional keywords:
    • description (default value = ) — description of this property.
    • value (default value = 0 0 0

0 0 0 0 0 0) — value of this property.

object __init__(tuple args, dict kwds) :
args: name, parent kwds: [description, value]
SymmetricMatrixProperty(name, parent, **kwargs)

Variable

class mpacts.core.valueproperties.Variable

Bases: mpacts.core.propertybase.PropertyBase, mpacts.core.baseobject.BaseObject

Special kind of property that can be directly created from python and assigned to different other (existing) properties. When this variables’s property is then updated, it will also update all properties it has been assigned to.
Has no default location.
  • Required keywords:
    • value — value of the property to be set.
  • Optional keywords:
    • description (default value = ) — Description of the variable.
    • property_list (default value = property_list_array) — list of properties that are ‘managed’ by this variable. Can be set directly but is also accessible.
object __init__(tuple args, dict kwds) :
args: name, parent kwds: value, [description, property_list]
Variable(name, parent, **kwargs)

VariableFunction

class mpacts.core.valueproperties.VariableFunction

Bases: mpacts.core.valueproperties.Variable, mpacts.core.baseobject.BaseObject

Kind of variable that is a function of other variables.
Has no default location.
  • Required keywords:
    • function — The expression that yields the result of the computation
    • value — value of the property to be set.
  • Optional keywords:
    • description (default value = ) — Description of the variable.
    • property_list (default value = property_list_array) — list of properties that are ‘managed’ by this variable. Can be set directly but is also accessible.
object __init__(tuple args, dict kwds) :
args: name, parent kwds: value, function, [description, property_list]
VariableFunction(name, parent, **kwargs)
set_value((VariableFunction)arg1, (object)arg2) → None :

Override so set cannot be used from python

VectorProperty

class mpacts.core.valueproperties.VectorProperty

Bases: mpacts.core.baseobject.BaseObject

A property BaseObject that holds a Vector that can be set/read from python and placed in the tree.
Has no default location.
  • Optional keywords:
    • description (default value = ) — description of this property.
    • value (default value = 0 0 0) — value of this property.
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [description, value]
VectorProperty(name, parent, **kwargs)