Package empro :: Module empro :: Module geometry :: Class ConstraintManager
[frames] | no frames]

Class ConstraintManager

core.Updatable --+
                 |
                ConstraintManager

A collection of constraints are maintained by the ConstraintManager.

Class Hierarchy for ConstraintManager
Class Hierarchy for ConstraintManager

Instance Methods
 
__delitem__(x, y)
del x[y]
 
__getitem__(x, y)
x[y]
 
__len__(x)
len(x)
 
__setitem__(x, i, y)
x[i]=y
None
append(iConstraint)
Appends a Constraint to the constraint manager.
Constraint
at(iIndex)
Retrieves the Constraint at the specified index.
bool
check(iConstraint)
Checks to see if adding the provided constraint will result in an overdefined system.
None
clear()
Removes all constraints from the constraint manager.
list(Constraint)
constraints()
Returns the list of the constraints from the constraint manager.
None
insert(iIndex, iConstraint)
Inserts a Constraint.
None
remove(iIndex)
Removes a Constraint.
None
removeOrphanedConstraints()
This method cycles through all defined constraints and determines if they are referencing geometry that is no longer present.
None
removeUnlockedConstraints()
Removes all constraints that are not locked.
int
size()
The number of constraints managed by this constraint manager.
None
solve()
Solve the constraints.

Inherited from core.Updatable: __enter__, __exit__, clone, hash, isValid, reasonWhyInvalid

Properties
  solveMode
No documentation available.
Method Details

append(iConstraint)

 

Appends a Constraint to the constraint manager.

Parameters:
  • iConstraint (Constraint) - The constraint to append.
Returns: None

at(iIndex)

 

Retrieves the Constraint at the specified index.

Parameters:
  • iIndex (int) - The index of the contraint to retrieve.
Returns: Constraint

check(iConstraint)

 

Checks to see if adding the provided constraint will result in an overdefined system.

Parameters:
  • iConstraint (Constraint) - The constraint to check.
Returns: bool

insert(iIndex, iConstraint)

 

Inserts a Constraint.

Parameters:
  • iIndex (int) - The position to insert the constraint.
  • iConstraint (Constraint) - The constraint to insert.
Returns: None

remove(iIndex)

 

Removes a Constraint.

Parameters:
  • iIndex (int) - The position of the constraint to remove.
Returns: None

removeOrphanedConstraints()

 

This method cycles through all defined constraints and determines if they are referencing geometry that is no longer present. Any that meet this condition are removed.

Returns: None