OCC.Expr module¶
-
class
Expr_Absolute
(*args)¶ Bases:
OCC.Expr.Expr_UnaryExpression
- Creates the Abs of <exp>
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: None -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_ArcCosine
(*args)¶ Bases:
OCC.Expr.Expr_UnaryExpression
- Creates the Arccos of <exp>
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: None -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_ArcSine
(*args)¶ Bases:
OCC.Expr.Expr_UnaryExpression
- Creates the Arcsin of <exp>
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: None -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_ArcTangent
(*args)¶ Bases:
OCC.Expr.Expr_UnaryExpression
- Creates the Arctan of <exp>.
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: None -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_ArgCosh
(*args)¶ Bases:
OCC.Expr.Expr_UnaryExpression
- Creates the ArgCosh of <exp>
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: None -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_ArgSinh
(*args)¶ Bases:
OCC.Expr.Expr_UnaryExpression
- Creates the ArgSinh of <exp>.
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: None -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_ArgTanh
(*args)¶ Bases:
OCC.Expr.Expr_UnaryExpression
- Creates the Argtanh of <exp>.
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: None -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_Array1OfGeneralExpression
(*args)¶ Bases:
object
Parameters: Return type: Return type: -
Assign
()¶ Parameters: Other (Expr_Array1OfGeneralExpression &) – Return type: Expr_Array1OfGeneralExpression
-
ChangeValue
()¶ Parameters: Index (int) – Return type: Handle_Expr_GeneralExpression
-
Set
()¶ Parameters: Other (Expr_Array1OfGeneralExpression &) – Return type: Expr_Array1OfGeneralExpression
-
Value
()¶ Parameters: Index (int) – Return type: Handle_Expr_GeneralExpression
-
thisown
¶ The membership flag
-
-
class
Expr_Array1OfNamedUnknown
(*args)¶ Bases:
object
Parameters: Return type: Return type: -
Assign
()¶ Parameters: Other (Expr_Array1OfNamedUnknown &) – Return type: Expr_Array1OfNamedUnknown
-
ChangeValue
()¶ Parameters: Index (int) – Return type: Handle_Expr_NamedUnknown
-
Set
()¶ Parameters: Other (Expr_Array1OfNamedUnknown &) – Return type: Expr_Array1OfNamedUnknown
-
Value
()¶ Parameters: Index (int) – Return type: Handle_Expr_NamedUnknown
-
thisown
¶ The membership flag
-
-
class
Expr_Array1OfSingleRelation
(*args)¶ Bases:
object
Parameters: Return type: Return type: -
Assign
()¶ Parameters: Other (Expr_Array1OfSingleRelation &) – Return type: Expr_Array1OfSingleRelation
-
ChangeValue
()¶ Parameters: Index (int) – Return type: Handle_Expr_SingleRelation
-
Set
()¶ Parameters: Other (Expr_Array1OfSingleRelation &) – Return type: Expr_Array1OfSingleRelation
-
Value
()¶ Parameters: Index (int) – Return type: Handle_Expr_SingleRelation
-
thisown
¶ The membership flag
-
-
class
Expr_BinaryExpression
(*args, **kwargs)¶ Bases:
OCC.Expr.Expr_GeneralExpression
-
FirstOperand
()¶ Return type: Handle_Expr_GeneralExpression
-
GetHandle
()¶
-
SecondOperand
()¶ Return type: Handle_Expr_GeneralExpression
-
SetFirstOperand
()¶ - Sets first operand of <self> Raises InvalidOperand if exp = me
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: None
-
SetSecondOperand
()¶ - Sets second operand of <self> Raises InvalidOperand if <exp> contains <self>.
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: None
-
SubExpression
()¶ - returns the <I>-th sub-expression of <self> raises OutOfRange if <I> > NbSubExpressions(me)
Parameters: I (int) – Return type: Handle_Expr_GeneralExpression
-
thisown
¶ The membership flag
-
-
class
Expr_BinaryFunction
(*args)¶ Bases:
OCC.Expr.Expr_BinaryExpression
- Creates <self> as <func> (<exp1>,<exp2>). Raises exception if <func> is not binary.
Parameters: - func (Handle_Expr_GeneralFunction &) –
- exp1 (Handle_Expr_GeneralExpression &) –
- exp2 (Handle_Expr_GeneralExpression &) –
Return type: -
Function
()¶ - Returns the function defining <self>.
Return type: Handle_Expr_GeneralFunction
-
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_Cosh
(*args)¶ Bases:
OCC.Expr.Expr_UnaryExpression
- Creates the Cosh of <exp>
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: None -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_Cosine
(*args)¶ Bases:
OCC.Expr.Expr_UnaryExpression
- Creates the cosine of Exp
Parameters: Exp (Handle_Expr_GeneralExpression &) – Return type: None -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_Difference
(*args)¶ Bases:
OCC.Expr.Expr_BinaryExpression
- Creates the difference <exp1> - <exp2>.
Parameters: - exp1 (Handle_Expr_GeneralExpression &) –
- exp2 (Handle_Expr_GeneralExpression &) –
Return type: -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_Different
(*args)¶ Bases:
OCC.Expr.Expr_SingleRelation
- Creates the relation <exp1> # <exp2>.
Parameters: - exp1 (Handle_Expr_GeneralExpression &) –
- exp2 (Handle_Expr_GeneralExpression &) –
Return type: -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_Division
(*args)¶ Bases:
OCC.Expr.Expr_BinaryExpression
- Creates the division <exp1>/<exp2>
Parameters: - exp1 (Handle_Expr_GeneralExpression &) –
- exp2 (Handle_Expr_GeneralExpression &) –
Return type: -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_Equal
(*args)¶ Bases:
OCC.Expr.Expr_SingleRelation
- Creates the relation <exp1> = <exp2>.
Parameters: - exp1 (Handle_Expr_GeneralExpression &) –
- exp2 (Handle_Expr_GeneralExpression &) –
Return type: -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_Exponential
(*args)¶ Bases:
OCC.Expr.Expr_UnaryExpression
- Creates the exponential of <exp>
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: None -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_Exponentiate
(*args)¶ Bases:
OCC.Expr.Expr_BinaryExpression
- Creates the exponential <exp1> ^ <exp2>
Parameters: - exp1 (Handle_Expr_GeneralExpression &) –
- exp2 (Handle_Expr_GeneralExpression &) –
Return type: -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_FunctionDerivative
(*args)¶ Bases:
OCC.Expr.Expr_GeneralFunction
- Creates a FunctionDerivative of degree <deg> relative to the <withX> variable. Raises OutOfRange if <deg> lower or equal to zero.
Parameters: - func (Handle_Expr_GeneralFunction &) –
- withX (Handle_Expr_NamedUnknown &) –
- deg (int) –
Return type: -
DerivVariable
()¶ - Returns the derivation variable of <self>.
Return type: Handle_Expr_NamedUnknown
-
Derivative
()¶ - Returns Derivative of <self> for variable <var>.
Parameters: var (Handle_Expr_NamedUnknown &) – Return type: Handle_Expr_GeneralFunction - Returns Derivative of <self> for variable <var> with degree <deg>.
Parameters: - var (Handle_Expr_NamedUnknown &) –
- deg (int) –
Return type:
-
Expression
()¶ Return type: Handle_Expr_GeneralExpression
-
Function
()¶ - Returns the function of which <self> is the derivative.
Return type: Handle_Expr_GeneralFunction
-
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_GeneralExpression
(*args, **kwargs)¶ Bases:
OCC.MMgt.MMgt_TShared
-
Contains
()¶ - Tests if <exp> is contained in <self>.
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: bool
-
Copy
()¶ - Returns a copy of <self> having the same unknowns and functions.
Return type: Handle_Expr_GeneralExpression
-
Derivative
()¶ - Returns the derivative on <X> unknown of <self>
Parameters: X (Handle_Expr_NamedUnknown &) – Return type: Handle_Expr_GeneralExpression
-
Evaluate
()¶ - Returns the value of <self> (as a Real) by replacement of <vars> by <vals>. Raises NotEvaluable if <self> contains NamedUnknown not in <vars> or NumericError if result cannot be computed.
Parameters: - vars (Expr_Array1OfNamedUnknown &) –
- vals (TColStd_Array1OfReal &) –
Return type:
-
EvaluateNumeric
()¶ - Returns the value of <self> (as a Real) by replacement of <vars> by <vals>. Raises NotEvaluable if <self> contains NamedUnknown not in <vars> or NumericError if result cannot be computed.
Return type: float
-
GetHandle
()¶
-
IsIdentical
()¶ - Tests if <self> and <Other> define the same expression. Warning: This method does not include any simplification before testing. It could also be very slow; to be used carefully.
Parameters: Other (Handle_Expr_GeneralExpression &) – Return type: bool
- Tests if <self> can be shared by one or more expressions or must be copied. This method returns False as a default value. To be redefined ( especially for NamedUnknown).
Return type: bool
-
NDerivative
()¶ - Returns the <N>-th derivative on <X> unknown of <self>. Raise OutOfRange if N <= 0
Parameters: - X (Handle_Expr_NamedUnknown &) –
- N (int) –
Return type:
-
NbSubExpressions
()¶ - Returns the number of sub-expressions contained in <self> ( >= 0)
Return type: int
-
Replace
()¶ - Replaces all occurences of <var> with copies of <with> in <self>. Copies of <with> are made with the Copy() method. Raises InvalidOperand if <with> contains <self>.
Parameters: - var (Handle_Expr_NamedUnknown &) –
- with (Handle_Expr_GeneralExpression &) –
Return type: void
-
ShallowSimplified
()¶ - Returns a GeneralExpression after a simplification of the arguments of <self>.
Return type: Handle_Expr_GeneralExpression
-
Simplified
()¶ - Returns a GeneralExpression after replacement of NamedUnknowns by an associated expression and after values computation.
Return type: Handle_Expr_GeneralExpression
-
String
()¶ - returns a string representing <self> in a readable way.
Return type: TCollection_AsciiString
-
SubExpression
()¶ - Returns the <I>-th sub-expression of <self> raises OutOfRange if <I> > NbSubExpressions(me)
Parameters: I (int) – Return type: Handle_Expr_GeneralExpression
-
thisown
¶ The membership flag
-
-
class
Expr_GeneralFunction
(*args, **kwargs)¶ Bases:
OCC.MMgt.MMgt_TShared
-
Copy
()¶ - Returns a copy of <self> with the same form.
Return type: Handle_Expr_GeneralFunction
-
Derivative
()¶ - Returns Derivative of <self> for variable <var>.
Parameters: var (Handle_Expr_NamedUnknown &) – Return type: Handle_Expr_GeneralFunction - Returns Derivative of <self> for variable <var> with degree <deg>.
Parameters: - var (Handle_Expr_NamedUnknown &) –
- deg (int) –
Return type:
-
Evaluate
()¶ - Computes the value of <self> with the given variables. Raises NotEvaluable if <vars> does not match all variables of <self>.
Parameters: - vars (Expr_Array1OfNamedUnknown &) –
- vals (TColStd_Array1OfReal &) –
Return type:
-
GetHandle
()¶
-
GetStringName
()¶ Return type: TCollection_AsciiString
-
IsIdentical
()¶ - Tests if <self> and <func> are similar functions (same name and same used expression).
Parameters: func (Handle_Expr_GeneralFunction &) – Return type: bool
-
IsLinearOnVariable
()¶ - Tests if <self> is linear on variable on range <index>
Parameters: index (int) – Return type: bool
-
Variable
()¶ - Returns the variable denoted by <index> in <self>. Raises OutOfRange if index > NbOfVariables.
Parameters: index (int) – Return type: Handle_Expr_NamedUnknown
-
thisown
¶ The membership flag
-
-
class
Expr_GeneralRelation
(*args, **kwargs)¶ Bases:
OCC.MMgt.MMgt_TShared
-
Contains
()¶ - Tests if <exp> contains <var>.
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: bool
-
Copy
()¶ - Returns a copy of <self> having the same unknowns and functions.
Return type: Handle_Expr_GeneralRelation
-
GetHandle
()¶
-
Replace
()¶ - Replaces all occurences of <var> with <with> in <self>.
Parameters: - var (Handle_Expr_NamedUnknown &) –
- with (Handle_Expr_GeneralExpression &) –
Return type: void
-
Simplified
()¶ - Returns a GeneralRelation after replacement of NamedUnknowns by an associated expression, and after values computation.
Return type: Handle_Expr_GeneralRelation
-
Simplify
()¶ - Replaces NamedUnknowns by associated expressions, and computes values in <self>.
Return type: void
-
String
()¶ - returns a string representing <self> in a readable way.
Return type: TCollection_AsciiString
-
SubRelation
()¶ - Returns the relation denoted by <index> in <self>. An exception is raised if <index> is out of range.
Parameters: index (int) – Return type: Handle_Expr_GeneralRelation
-
thisown
¶ The membership flag
-
-
class
Expr_GreaterThan
(*args)¶ Bases:
OCC.Expr.Expr_SingleRelation
- Creates the relation <exp1> > <exp2>.
Parameters: - exp1 (Handle_Expr_GeneralExpression &) –
- exp2 (Handle_Expr_GeneralExpression &) –
Return type: -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_GreaterThanOrEqual
(*args)¶ Bases:
OCC.Expr.Expr_SingleRelation
- Creates the relation <exp1> >= <exp2>.
Parameters: - exp1 (Handle_Expr_GeneralExpression &) –
- exp2 (Handle_Expr_GeneralExpression &) –
Return type: -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_IndexedMapNodeOfMapOfNamedUnknown
(*args)¶ Bases:
OCC.TCollection.TCollection_MapNode
Parameters: - K1 (Handle_Expr_NamedUnknown &) –
- K2 (int) –
- n1 (TCollection_MapNodePtr &) –
- n2 (TCollection_MapNodePtr &) –
Return type: -
GetHandle
()¶
-
GetKey2
()¶ Expr_IndexedMapNodeOfMapOfNamedUnknown_GetKey2(Expr_IndexedMapNodeOfMapOfNamedUnknown self) -> Standard_Integer
-
Key1
()¶ Return type: Handle_Expr_NamedUnknown
-
Next2
()¶ Return type: TCollection_MapNodePtr
-
SetKey2
()¶ Expr_IndexedMapNodeOfMapOfNamedUnknown_SetKey2(Expr_IndexedMapNodeOfMapOfNamedUnknown self, Standard_Integer value)
-
thisown
¶ The membership flag
-
class
Expr_LessThan
(*args)¶ Bases:
OCC.Expr.Expr_SingleRelation
- Creates the relation <exp1> < <exp2>.
Parameters: - exp1 (Handle_Expr_GeneralExpression &) –
- exp2 (Handle_Expr_GeneralExpression &) –
Return type: -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_LessThanOrEqual
(*args)¶ Bases:
OCC.Expr.Expr_SingleRelation
- Creates the relation <exp1> <= <exp2>.
Parameters: - exp1 (Handle_Expr_GeneralExpression &) –
- exp2 (Handle_Expr_GeneralExpression &) –
Return type: -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_LogOf10
(*args)¶ Bases:
OCC.Expr.Expr_UnaryExpression
- Creates the base 10 logarithm of <exp>
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: None -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_LogOfe
(*args)¶ Bases:
OCC.Expr.Expr_UnaryExpression
- Creates the natural logarithm of <exp>
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: None -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_MapOfNamedUnknown
(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMap
Parameters: - NbBuckets (int) – default value is 1
- Other (Expr_MapOfNamedUnknown &) –
Return type: Return type: -
Assign
()¶ Parameters: Other (Expr_MapOfNamedUnknown &) – Return type: Expr_MapOfNamedUnknown
-
FindKey
()¶ Parameters: I (int) – Return type: Handle_Expr_NamedUnknown
-
Set
()¶ Parameters: Other (Expr_MapOfNamedUnknown &) – Return type: Expr_MapOfNamedUnknown
-
thisown
¶ The membership flag
-
class
Expr_NamedConstant
(*args)¶ Bases:
OCC.Expr.Expr_NamedExpression
- Creates a constant value of name <name> and value <value>.
Parameters: - name (TCollection_AsciiString &) –
- value (float) –
Return type: -
GetHandle
()¶
-
SubExpression
()¶ - returns the <I>-th sub-expression of <self> raises OutOfRange
Parameters: I (int) – Return type: Handle_Expr_GeneralExpression
-
thisown
¶ The membership flag
-
class
Expr_NamedExpression
(*args, **kwargs)¶ Bases:
OCC.Expr.Expr_GeneralExpression
-
GetHandle
()¶
-
GetName
()¶ Return type: TCollection_AsciiString
-
thisown
¶ The membership flag
-
-
class
Expr_NamedFunction
(*args)¶ Bases:
OCC.Expr.Expr_GeneralFunction
- Creates a function of given variables <vars> with name <name> defined by the expression <exp>.
Parameters: - name (TCollection_AsciiString &) –
- exp (Handle_Expr_GeneralExpression &) –
- vars (Expr_Array1OfNamedUnknown &) –
Return type: -
Derivative
()¶ - Returns Derivative of <self> for variable <var>.
Parameters: var (Handle_Expr_NamedUnknown &) – Return type: Handle_Expr_GeneralFunction - Returns Derivative of <self> for variable <var> with degree <deg>.
Parameters: - var (Handle_Expr_NamedUnknown &) –
- deg (int) –
Return type:
-
Expression
()¶ - Returns equivalent expression of <self>.
Return type: Handle_Expr_GeneralExpression
-
GetHandle
()¶
-
GetName
()¶ - Returns the name assigned to <self>
Return type: TCollection_AsciiString
-
SetExpression
()¶ - Modifies expression of <self>. Warning: Beware of derivatives. See FunctionDerivative
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: None
-
SetName
()¶ - Sets the name <newname> to <self>.
Parameters: newname (TCollection_AsciiString &) – Return type: None
-
thisown
¶ The membership flag
-
class
Expr_NamedUnknown
(*args)¶ Bases:
OCC.Expr.Expr_NamedExpression
Parameters: name (TCollection_AsciiString &) – Return type: None -
Assign
()¶ - Assigns <self> to <exp> expression. Raises exception if <exp> refers to <self>.
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: None
-
AssignedExpression
()¶ - If exists, returns the assigned expression. An exception is raised if the expression does not exist.
Return type: Handle_Expr_GeneralExpression
-
GetHandle
()¶
-
SubExpression
()¶ - Returns the <I>-th sub-expression of <self> raises OutOfRange if <I> > NbSubExpressions(me)
Parameters: I (int) – Return type: Handle_Expr_GeneralExpression
-
thisown
¶ The membership flag
-
-
class
Expr_NumericValue
(*args)¶ Bases:
OCC.Expr.Expr_GeneralExpression
Parameters: val (float) – Return type: None -
GetHandle
()¶
-
SubExpression
()¶ - Returns the <I>-th sub-expression of <self> raises OutOfRange if <I> > NbSubExpressions(me)
Parameters: I (int) – Return type: Handle_Expr_GeneralExpression
-
thisown
¶ The membership flag
-
-
class
Expr_PolyExpression
(*args, **kwargs)¶ Bases:
OCC.Expr.Expr_GeneralExpression
-
GetHandle
()¶
-
Operand
()¶ - Returns the <index>-th operand used in <self>. An exception is raised if index is out of range
Parameters: index (int) – Return type: Handle_Expr_GeneralExpression
-
SetOperand
()¶ - Sets the <index>-th operand used in <self>. An exception is raised if <index> is out of range Raises InvalidOperand if <exp> contains <self>.
Parameters: - exp (Handle_Expr_GeneralExpression &) –
- index (int) –
Return type:
-
SubExpression
()¶ - Returns the sub-expression denoted by <I> in <self> Raises OutOfRange if <I> > NbSubExpressions(me)
Parameters: I (int) – Return type: Handle_Expr_GeneralExpression
-
thisown
¶ The membership flag
-
-
class
Expr_PolyFunction
(*args)¶ Bases:
OCC.Expr.Expr_PolyExpression
- Creates <self> as <func>(<exps_1>,<exps_2>,...,<exps_n>)
Parameters: - func (Handle_Expr_GeneralFunction &) –
- exps (Expr_Array1OfGeneralExpression &) –
Return type: -
Function
()¶ - Returns the function defining <self>.
Return type: Handle_Expr_GeneralFunction
-
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_Product
(*args)¶ Bases:
OCC.Expr.Expr_PolyExpression
- Creates the product of all members of sequence <exps>
Parameters: exps (Expr_SequenceOfGeneralExpression &) – Return type: None - Creates the product of <exp1> and <exp2>.
Parameters: - exp1 (Handle_Expr_GeneralExpression &) –
- exp2 (Handle_Expr_GeneralExpression &) –
Return type: -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_RUIterator
(*args)¶ Bases:
object
- Creates an iterator on every NamedUnknown contained in <rel>.
Parameters: rel (Handle_Expr_GeneralRelation &) – Return type: None -
Value
()¶ - Returns current NamedUnknown. Raises exception if no more unknowns remain.
Return type: Handle_Expr_NamedUnknown
-
thisown
¶ The membership flag
-
class
Expr_RelationIterator
(*args)¶ Bases:
object
Parameters: rel (Handle_Expr_GeneralRelation &) – Return type: None -
Value
()¶ - Returns current basic relation. Exception is raised if no more relation remains.
Return type: Handle_Expr_SingleRelation
-
thisown
¶ The membership flag
-
-
class
Expr_SequenceNodeOfSequenceOfGeneralExpression
(*args)¶ Bases:
OCC.TCollection.TCollection_SeqNode
Parameters: - I (Handle_Expr_GeneralExpression &) –
- n (TCollection_SeqNodePtr &) –
- p (TCollection_SeqNodePtr &) –
Return type: -
GetHandle
()¶
-
Value
()¶ Return type: Handle_Expr_GeneralExpression
-
thisown
¶ The membership flag
-
class
Expr_SequenceNodeOfSequenceOfGeneralRelation
(*args)¶ Bases:
OCC.TCollection.TCollection_SeqNode
Parameters: - I (Handle_Expr_GeneralRelation &) –
- n (TCollection_SeqNodePtr &) –
- p (TCollection_SeqNodePtr &) –
Return type: -
GetHandle
()¶
-
Value
()¶ Return type: Handle_Expr_GeneralRelation
-
thisown
¶ The membership flag
-
class
Expr_SequenceOfGeneralExpression
(*args)¶ Bases:
OCC.TCollection.TCollection_BaseSequence
Return type: None Parameters: Other (Expr_SequenceOfGeneralExpression &) – Return type: None -
Append
()¶ Parameters: - T (Handle_Expr_GeneralExpression &) –
- S (Expr_SequenceOfGeneralExpression &) –
Return type: Return type:
-
Assign
()¶ Parameters: Other (Expr_SequenceOfGeneralExpression &) – Return type: Expr_SequenceOfGeneralExpression
-
ChangeValue
()¶ Parameters: Index (int) – Return type: Handle_Expr_GeneralExpression
-
First
()¶ Return type: Handle_Expr_GeneralExpression
-
InsertAfter
()¶ Parameters: - Index (int) –
- T (Handle_Expr_GeneralExpression &) –
- Index –
- S (Expr_SequenceOfGeneralExpression &) –
Return type: Return type:
-
InsertBefore
()¶ Parameters: - Index (int) –
- T (Handle_Expr_GeneralExpression &) –
- Index –
- S (Expr_SequenceOfGeneralExpression &) –
Return type: Return type:
-
Last
()¶ Return type: Handle_Expr_GeneralExpression
-
Prepend
()¶ Parameters: - T (Handle_Expr_GeneralExpression &) –
- S (Expr_SequenceOfGeneralExpression &) –
Return type: Return type:
-
Remove
()¶ Parameters: Return type: Return type:
-
Set
()¶ Parameters: Other (Expr_SequenceOfGeneralExpression &) – Return type: Expr_SequenceOfGeneralExpression
-
Value
()¶ Parameters: Index (int) – Return type: Handle_Expr_GeneralExpression
-
thisown
¶ The membership flag
-
-
class
Expr_SequenceOfGeneralRelation
(*args)¶ Bases:
OCC.TCollection.TCollection_BaseSequence
Return type: None Parameters: Other (Expr_SequenceOfGeneralRelation &) – Return type: None -
Append
()¶ Parameters: - T (Handle_Expr_GeneralRelation &) –
- S (Expr_SequenceOfGeneralRelation &) –
Return type: Return type:
-
Assign
()¶ Parameters: Other (Expr_SequenceOfGeneralRelation &) – Return type: Expr_SequenceOfGeneralRelation
-
ChangeValue
()¶ Parameters: Index (int) – Return type: Handle_Expr_GeneralRelation
-
First
()¶ Return type: Handle_Expr_GeneralRelation
-
InsertAfter
()¶ Parameters: - Index (int) –
- T (Handle_Expr_GeneralRelation &) –
- Index –
- S (Expr_SequenceOfGeneralRelation &) –
Return type: Return type:
-
InsertBefore
()¶ Parameters: - Index (int) –
- T (Handle_Expr_GeneralRelation &) –
- Index –
- S (Expr_SequenceOfGeneralRelation &) –
Return type: Return type:
-
Last
()¶ Return type: Handle_Expr_GeneralRelation
-
Prepend
()¶ Parameters: - T (Handle_Expr_GeneralRelation &) –
- S (Expr_SequenceOfGeneralRelation &) –
Return type: Return type:
-
Remove
()¶ Parameters: Return type: Return type:
-
Set
()¶ Parameters: Other (Expr_SequenceOfGeneralRelation &) – Return type: Expr_SequenceOfGeneralRelation
-
Value
()¶ Parameters: Index (int) – Return type: Handle_Expr_GeneralRelation
-
thisown
¶ The membership flag
-
-
class
Expr_Sine
(*args)¶ Bases:
OCC.Expr.Expr_UnaryExpression
- Creates the sine of <exp>.
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: None -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_SingleRelation
(*args, **kwargs)¶ Bases:
OCC.Expr.Expr_GeneralRelation
-
FirstMember
()¶ - Returns the first member of the relation
Return type: Handle_Expr_GeneralExpression
-
GetHandle
()¶
-
SecondMember
()¶ - Returns the second member of the relation
Return type: Handle_Expr_GeneralExpression
-
SetFirstMember
()¶ - Defines the first member of the relation
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: None
-
SetSecondMember
()¶ - Defines the second member of the relation
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: None
-
thisown
¶ The membership flag
-
-
class
Expr_Sinh
(*args)¶ Bases:
OCC.Expr.Expr_UnaryExpression
- Creates the sinh of <exp>.
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: None -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_Square
(*args)¶ Bases:
OCC.Expr.Expr_UnaryExpression
- Creates the square of <exp>.
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: None -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_SquareRoot
(*args)¶ Bases:
OCC.Expr.Expr_UnaryExpression
- Creates the square root of <exp>
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: None -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_Sum
(*args)¶ Bases:
OCC.Expr.Expr_PolyExpression
- Creates the sum of all the members of sequence <exps>.
Parameters: exps (Expr_SequenceOfGeneralExpression &) – Return type: None - Creates the sum of <exp1> and <exp2>.
Parameters: - exp1 (Handle_Expr_GeneralExpression &) –
- exp2 (Handle_Expr_GeneralExpression &) –
Return type: -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_SystemRelation
(*args)¶ Bases:
OCC.Expr.Expr_GeneralRelation
- Creates a system with one relation
Parameters: relation (Handle_Expr_GeneralRelation &) – Return type: None -
Add
()¶ - Appends <relation> in the list of components of <self>.
Parameters: relation (Handle_Expr_GeneralRelation &) – Return type: None
-
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_Tangent
(*args)¶ Bases:
OCC.Expr.Expr_UnaryExpression
- Creates the tangent of <exp>.
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: None -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_Tanh
(*args)¶ Bases:
OCC.Expr.Expr_UnaryExpression
- Creates the hyperbolic tangent of <exp>.
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: None -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_UnaryExpression
(*args, **kwargs)¶ Bases:
OCC.Expr.Expr_GeneralExpression
-
GetHandle
()¶
-
Operand
()¶ - Returns the operand used
Return type: Handle_Expr_GeneralExpression
-
SetOperand
()¶ - Sets the operand used Raises InvalidOperand if <exp> contains <self>.
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: None
-
SubExpression
()¶ - Returns the <I>-th sub-expression of <self>. Raises OutOfRange if <I> > NbSubExpressions(me)
Parameters: I (int) – Return type: Handle_Expr_GeneralExpression
-
thisown
¶ The membership flag
-
-
class
Expr_UnaryFunction
(*args)¶ Bases:
OCC.Expr.Expr_UnaryExpression
- Creates me as <func>(<exp>). Raises exception if <func> is not unary.
Parameters: - func (Handle_Expr_GeneralFunction &) –
- exp (Handle_Expr_GeneralExpression &) –
Return type: -
Function
()¶ - Returns the function defining <self>.
Return type: Handle_Expr_GeneralFunction
-
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_UnaryMinus
(*args)¶ Bases:
OCC.Expr.Expr_UnaryExpression
- Create the unary minus of <exp>.
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: None -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
Expr_UnknownIterator
(*args)¶ Bases:
object
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: None -
Value
()¶ Return type: Handle_Expr_NamedUnknown
-
thisown
¶ The membership flag
-
-
class
Handle_Expr_Absolute
(*args)¶ Bases:
OCC.Expr.Handle_Expr_UnaryExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_ArcCosine
(*args)¶ Bases:
OCC.Expr.Handle_Expr_UnaryExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_ArcSine
(*args)¶ Bases:
OCC.Expr.Handle_Expr_UnaryExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_ArcTangent
(*args)¶ Bases:
OCC.Expr.Handle_Expr_UnaryExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_ArgCosh
(*args)¶ Bases:
OCC.Expr.Handle_Expr_UnaryExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_ArgSinh
(*args)¶ Bases:
OCC.Expr.Handle_Expr_UnaryExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_ArgTanh
(*args)¶ Bases:
OCC.Expr.Handle_Expr_UnaryExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_BinaryExpression
(*args)¶ Bases:
OCC.Expr.Handle_Expr_GeneralExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_BinaryFunction
(*args)¶ Bases:
OCC.Expr.Handle_Expr_BinaryExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_Cosh
(*args)¶ Bases:
OCC.Expr.Handle_Expr_UnaryExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_Cosine
(*args)¶ Bases:
OCC.Expr.Handle_Expr_UnaryExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_Difference
(*args)¶ Bases:
OCC.Expr.Handle_Expr_BinaryExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_Different
(*args)¶ Bases:
OCC.Expr.Handle_Expr_SingleRelation
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_Division
(*args)¶ Bases:
OCC.Expr.Handle_Expr_BinaryExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_Equal
(*args)¶ Bases:
OCC.Expr.Handle_Expr_SingleRelation
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_Exponential
(*args)¶ Bases:
OCC.Expr.Handle_Expr_UnaryExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_Exponentiate
(*args)¶ Bases:
OCC.Expr.Handle_Expr_BinaryExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_FunctionDerivative
(*args)¶ Bases:
OCC.Expr.Handle_Expr_GeneralFunction
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_GeneralExpression
(*args)¶ Bases:
OCC.MMgt.Handle_MMgt_TShared
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_GeneralFunction
(*args)¶ Bases:
OCC.MMgt.Handle_MMgt_TShared
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_GeneralRelation
(*args)¶ Bases:
OCC.MMgt.Handle_MMgt_TShared
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_GreaterThan
(*args)¶ Bases:
OCC.Expr.Handle_Expr_SingleRelation
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_GreaterThanOrEqual
(*args)¶ Bases:
OCC.Expr.Handle_Expr_SingleRelation
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_IndexedMapNodeOfMapOfNamedUnknown
(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_MapNode
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_LessThan
(*args)¶ Bases:
OCC.Expr.Handle_Expr_SingleRelation
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_LessThanOrEqual
(*args)¶ Bases:
OCC.Expr.Handle_Expr_SingleRelation
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_LogOf10
(*args)¶ Bases:
OCC.Expr.Handle_Expr_UnaryExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_LogOfe
(*args)¶ Bases:
OCC.Expr.Handle_Expr_UnaryExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_NamedConstant
(*args)¶ Bases:
OCC.Expr.Handle_Expr_NamedExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_NamedExpression
(*args)¶ Bases:
OCC.Expr.Handle_Expr_GeneralExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_NamedFunction
(*args)¶ Bases:
OCC.Expr.Handle_Expr_GeneralFunction
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_NamedUnknown
(*args)¶ Bases:
OCC.Expr.Handle_Expr_NamedExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_NumericValue
(*args)¶ Bases:
OCC.Expr.Handle_Expr_GeneralExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_PolyExpression
(*args)¶ Bases:
OCC.Expr.Handle_Expr_GeneralExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_PolyFunction
(*args)¶ Bases:
OCC.Expr.Handle_Expr_PolyExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_Product
(*args)¶ Bases:
OCC.Expr.Handle_Expr_PolyExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_SequenceNodeOfSequenceOfGeneralExpression
(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_SeqNode
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_SequenceNodeOfSequenceOfGeneralRelation
(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_SeqNode
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_Sine
(*args)¶ Bases:
OCC.Expr.Handle_Expr_UnaryExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_SingleRelation
(*args)¶ Bases:
OCC.Expr.Handle_Expr_GeneralRelation
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_Sinh
(*args)¶ Bases:
OCC.Expr.Handle_Expr_UnaryExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_Square
(*args)¶ Bases:
OCC.Expr.Handle_Expr_UnaryExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_SquareRoot
(*args)¶ Bases:
OCC.Expr.Handle_Expr_UnaryExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_Sum
(*args)¶ Bases:
OCC.Expr.Handle_Expr_PolyExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_SystemRelation
(*args)¶ Bases:
OCC.Expr.Handle_Expr_GeneralRelation
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_Tangent
(*args)¶ Bases:
OCC.Expr.Handle_Expr_UnaryExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_Tanh
(*args)¶ Bases:
OCC.Expr.Handle_Expr_UnaryExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_UnaryExpression
(*args)¶ Bases:
OCC.Expr.Handle_Expr_GeneralExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_UnaryFunction
(*args)¶ Bases:
OCC.Expr.Handle_Expr_UnaryExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Expr_UnaryMinus
(*args)¶ Bases:
OCC.Expr.Handle_Expr_UnaryExpression
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
SwigPyIterator
(*args, **kwargs)¶ Bases:
object
-
advance
()¶
-
copy
()¶
-
decr
()¶
-
distance
()¶
-
equal
()¶
-
incr
()¶
-
next
()¶
-
previous
()¶
-
thisown
¶ The membership flag
-
value
()¶
-
-
class
expr
¶ Bases:
object
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: Handle_Expr_GeneralExpression
-
static
NbOfFreeVariables
(*args)¶ Parameters: - exp (Handle_Expr_GeneralRelation &) –
- exp –
Return type: Return type:
-
thisown
¶ The membership flag
Parameters: exp (Handle_Expr_GeneralExpression &) – Return type: Handle_Expr_GeneralExpression
-
expr_NbOfFreeVariables
(*args)¶ Parameters: - exp (Handle_Expr_GeneralRelation &) –
- exp –
Return type: Return type:
-
register_handle
(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases