OCC.TFunction module¶
-
class
Handle_TFunction_DataMapNodeOfDataMapOfGUIDDriver(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_MapNode-
static
DownCast()¶
-
GetObject()¶
-
IsNull()¶
-
Nullify()¶
-
thisown¶ The membership flag
-
static
-
class
Handle_TFunction_DataMapNodeOfDataMapOfLabelListOfLabel(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_MapNode-
static
DownCast()¶
-
GetObject()¶
-
IsNull()¶
-
Nullify()¶
-
thisown¶ The membership flag
-
static
-
class
Handle_TFunction_DoubleMapNodeOfDoubleMapOfIntegerLabel(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_MapNode-
static
DownCast()¶
-
GetObject()¶
-
IsNull()¶
-
Nullify()¶
-
thisown¶ The membership flag
-
static
-
class
Handle_TFunction_Driver(*args)¶ Bases:
OCC.MMgt.Handle_MMgt_TShared-
static
DownCast()¶
-
GetObject()¶
-
IsNull()¶
-
Nullify()¶
-
thisown¶ The membership flag
-
static
-
class
Handle_TFunction_DriverTable(*args)¶ Bases:
OCC.MMgt.Handle_MMgt_TShared-
static
DownCast()¶
-
GetObject()¶
-
IsNull()¶
-
Nullify()¶
-
thisown¶ The membership flag
-
static
-
class
Handle_TFunction_Function(*args)¶ Bases:
OCC.TDF.Handle_TDF_Attribute-
static
DownCast()¶
-
GetObject()¶
-
IsNull()¶
-
Nullify()¶
-
thisown¶ The membership flag
-
static
-
class
Handle_TFunction_GraphNode(*args)¶ Bases:
OCC.TDF.Handle_TDF_Attribute-
static
DownCast()¶
-
GetObject()¶
-
IsNull()¶
-
Nullify()¶
-
thisown¶ The membership flag
-
static
-
class
Handle_TFunction_HArray1OfDataMapOfGUIDDriver(*args)¶ Bases:
OCC.MMgt.Handle_MMgt_TShared-
static
DownCast()¶
-
GetObject()¶
-
IsNull()¶
-
Nullify()¶
-
thisown¶ The membership flag
-
static
-
class
Handle_TFunction_Scope(*args)¶ Bases:
OCC.TDF.Handle_TDF_Attribute-
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
TFunction_Array1OfDataMapOfGUIDDriver(*args)¶ Bases:
objectParameters: Return type: Return type: -
Assign()¶ Parameters: Other (TFunction_Array1OfDataMapOfGUIDDriver &) – Return type: TFunction_Array1OfDataMapOfGUIDDriver
-
ChangeValue()¶ Parameters: Index (int) – Return type: TFunction_DataMapOfGUIDDriver
-
Set()¶ Parameters: Other (TFunction_Array1OfDataMapOfGUIDDriver &) – Return type: TFunction_Array1OfDataMapOfGUIDDriver
-
Value()¶ Parameters: Index (int) – Return type: TFunction_DataMapOfGUIDDriver
-
thisown¶ The membership flag
-
-
class
TFunction_DataMapIteratorOfDataMapOfGUIDDriver(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMapIteratorReturn type: None Parameters: aMap (TFunction_DataMapOfGUIDDriver &) – Return type: None -
Key()¶ Return type: Standard_GUID
-
Value()¶ Return type: Handle_TFunction_Driver
-
thisown¶ The membership flag
-
-
class
TFunction_DataMapIteratorOfDataMapOfLabelListOfLabel(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMapIteratorReturn type: None Parameters: aMap (TFunction_DataMapOfLabelListOfLabel &) – Return type: None -
Value()¶ Return type: TDF_LabelList
-
thisown¶ The membership flag
-
-
class
TFunction_DataMapNodeOfDataMapOfGUIDDriver(*args)¶ Bases:
OCC.TCollection.TCollection_MapNodeParameters: - K (Standard_GUID &) –
- I (Handle_TFunction_Driver &) –
- n (TCollection_MapNodePtr &) –
Return type: -
GetHandle()¶
-
Key()¶ Return type: Standard_GUID
-
Value()¶ Return type: Handle_TFunction_Driver
-
thisown¶ The membership flag
-
class
TFunction_DataMapNodeOfDataMapOfLabelListOfLabel(*args)¶ Bases:
OCC.TCollection.TCollection_MapNodeParameters: - K (TDF_Label &) –
- I (TDF_LabelList &) –
- n (TCollection_MapNodePtr &) –
Return type: -
GetHandle()¶
-
Value()¶ Return type: TDF_LabelList
-
thisown¶ The membership flag
-
class
TFunction_DataMapOfGUIDDriver(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMapParameters: NbBuckets (int) – default value is 1 Return type: None -
Assign()¶ Parameters: Other (TFunction_DataMapOfGUIDDriver &) – Return type: TFunction_DataMapOfGUIDDriver
-
ChangeFind()¶ Parameters: K (Standard_GUID &) – Return type: Handle_TFunction_Driver
-
ChangeFind1()¶ Parameters: K (Standard_GUID &) – Return type: Standard_Address
-
Find()¶ Parameters: K (Standard_GUID &) – Return type: Handle_TFunction_Driver
-
Find1()¶ Parameters: K (Standard_GUID &) – Return type: Standard_Address
-
Set()¶ Parameters: Other (TFunction_DataMapOfGUIDDriver &) – Return type: TFunction_DataMapOfGUIDDriver
-
thisown¶ The membership flag
-
-
class
TFunction_DataMapOfLabelListOfLabel(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMapParameters: NbBuckets (int) – default value is 1 Return type: None -
Assign()¶ Parameters: Other (TFunction_DataMapOfLabelListOfLabel &) – Return type: TFunction_DataMapOfLabelListOfLabel
-
ChangeFind()¶ Parameters: K (TDF_Label &) – Return type: TDF_LabelList
-
ChangeFind1()¶ Parameters: K (TDF_Label &) – Return type: Standard_Address
-
Find()¶ Parameters: K (TDF_Label &) – Return type: TDF_LabelList
-
Find1()¶ Parameters: K (TDF_Label &) – Return type: Standard_Address
-
Set()¶ Parameters: Other (TFunction_DataMapOfLabelListOfLabel &) – Return type: TFunction_DataMapOfLabelListOfLabel
-
thisown¶ The membership flag
-
-
class
TFunction_DoubleMapIteratorOfDoubleMapOfIntegerLabel(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMapIteratorReturn type: None Parameters: aMap (TFunction_DoubleMapOfIntegerLabel &) – Return type: None -
thisown¶ The membership flag
-
-
class
TFunction_DoubleMapNodeOfDoubleMapOfIntegerLabel(*args)¶ Bases:
OCC.TCollection.TCollection_MapNodeParameters: - K1 (int &) –
- K2 (TDF_Label &) –
- n1 (TCollection_MapNodePtr &) –
- n2 (TCollection_MapNodePtr &) –
Return type: -
GetHandle()¶
-
GetKey1()¶ TFunction_DoubleMapNodeOfDoubleMapOfIntegerLabel_GetKey1(TFunction_DoubleMapNodeOfDoubleMapOfIntegerLabel self) -> Standard_Integer
-
Next2()¶ Return type: TCollection_MapNodePtr
-
SetKey1()¶ TFunction_DoubleMapNodeOfDoubleMapOfIntegerLabel_SetKey1(TFunction_DoubleMapNodeOfDoubleMapOfIntegerLabel self, Standard_Integer value)
-
thisown¶ The membership flag
-
class
TFunction_DoubleMapOfIntegerLabel(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMapParameters: NbBuckets (int) – default value is 1 Return type: None -
Assign()¶ Parameters: Other (TFunction_DoubleMapOfIntegerLabel &) – Return type: TFunction_DoubleMapOfIntegerLabel
-
Set()¶ Parameters: Other (TFunction_DoubleMapOfIntegerLabel &) – Return type: TFunction_DoubleMapOfIntegerLabel
-
thisown¶ The membership flag
-
-
class
TFunction_Driver(*args, **kwargs)¶ Bases:
OCC.MMgt.MMgt_TShared-
Arguments()¶ - The method fills-in the list by labels, where the arguments of the function are located.
Parameters: args (TDF_LabelList &) – Return type: void
-
Execute()¶ - Executes the function in this function driver and puts the impacted labels in the logbook log. arguments & results of functions ================================
Parameters: log (TFunction_Logbook &) – Return type: int
-
GetHandle()¶
-
Init()¶ - Initializes the label L for this function prior to its execution.
Parameters: L (TDF_Label &) – Return type: None
-
MustExecute()¶ - Analyzes the labels in the logbook log. Returns true if attributes have been modified. If the function label itself has been modified, the function must be executed.
Parameters: log (TFunction_Logbook &) – Return type: bool
-
Results()¶ - The method fills-in the list by labels, where the results of the function are located.
Parameters: res (TDF_LabelList &) – Return type: void
-
Validate()¶ - Validates labels of a function in <log>. This function is the one initialized in this function driver. Warning In regeneration mode, the solver must call this method even if the function is not executed. execution of function =====================
Parameters: log (TFunction_Logbook &) – Return type: void
-
thisown¶ The membership flag
-
-
class
TFunction_DriverTable(*args)¶ Bases:
OCC.MMgt.MMgt_TShared- Default constructor
Return type: None -
AddDriver()¶ - Returns true if the driver has been added successfully to the driver table.
Parameters: - guid (Standard_GUID &) –
- driver (Handle_TFunction_Driver &) –
- thread (int) – default value is 0
Return type:
-
Clear()¶ - Removes all drivers. Returns true if the driver has been removed successfully.
Return type: None
-
DumpToString()¶ TFunction_DriverTable_DumpToString(TFunction_DriverTable self) -> std::string
-
FindDriver()¶ - Returns true if the driver was found.
Parameters: - guid (Standard_GUID &) –
- driver (Handle_TFunction_Driver &) –
- thread (int) – default value is 0
Return type:
-
static
Get(*args)¶ - Returns the driver table. If a driver does not exist, creates it.
Return type: Handle_TFunction_DriverTable
-
GetHandle()¶
-
HasDriver()¶ - Returns true if the driver exists in the driver table.
Parameters: - guid (Standard_GUID &) –
- thread (int) – default value is 0
Return type:
-
RemoveDriver()¶ - Removes a driver with the given GUID. Returns true if the driver has been removed successfully.
Parameters: - guid (Standard_GUID &) –
- thread (int) – default value is 0
Return type:
-
thisown¶ The membership flag
-
TFunction_DriverTable_Get(*args)¶ - Returns the driver table. If a driver does not exist, creates it.
Return type: Handle_TFunction_DriverTable
-
class
TFunction_Function(*args)¶ Bases:
OCC.TDF.TDF_AttributeReturn type: None -
DumpToString()¶ TFunction_Function_DumpToString(TFunction_Function self) -> std::string
-
GetDriverGUID()¶ - Returns the GUID for this function’s driver.
Return type: Standard_GUID
-
GetFailure()¶ - Returns an index of failure if the execution of this function failed. If this integer value is 0, no failure has occurred. Implementation of Attribute methods: ===================================
Return type: int
-
GetHandle()¶
-
static
GetID(*args)¶ - Returns the GUID for functions. Returns a function found on the label. Instance methods: ================
Return type: Standard_GUID
-
static
Set(*args)¶ - Static methods: ============== Finds or Creates a function attribute on the label <L>. Returns the function attribute.
Parameters: L (TDF_Label &) – Return type: Handle_TFunction_Function - Finds or Creates a function attribute on the label <L>. Sets a driver ID to the function. Returns the function attribute.
Parameters: - L (TDF_Label &) –
- DriverID (Standard_GUID &) –
Return type:
-
SetDriverGUID()¶ - Sets the driver for this function as that indentified by the GUID guid.
Parameters: guid (Standard_GUID &) – Return type: None
-
thisown¶ The membership flag
-
-
TFunction_Function_GetID(*args)¶ - Returns the GUID for functions. Returns a function found on the label. Instance methods: ================
Return type: Standard_GUID
-
TFunction_Function_Set(*args)¶ - Static methods: ============== Finds or Creates a function attribute on the label <L>. Returns the function attribute.
Parameters: L (TDF_Label &) – Return type: Handle_TFunction_Function - Finds or Creates a function attribute on the label <L>. Sets a driver ID to the function. Returns the function attribute.
Parameters: - L (TDF_Label &) –
- DriverID (Standard_GUID &) –
Return type:
-
class
TFunction_GraphNode(*args)¶ Bases:
OCC.TDF.TDF_AttributeReturn type: None -
AddNext()¶ - Defines a reference to the function as a next one.
Parameters: funcID (int) – Return type: bool - Defines a reference to the function as a next one.
Parameters: func (TDF_Label &) – Return type: bool
-
AddPrevious()¶ - Defines a reference to the function as a previous one.
Parameters: funcID (int) – Return type: bool - Defines a reference to the function as a previous one.
Parameters: func (TDF_Label &) – Return type: bool
-
DumpToString()¶ TFunction_GraphNode_DumpToString(TFunction_GraphNode self) -> std::string
-
GetHandle()¶
-
static
GetID(*args)¶ - Returns the GUID for GraphNode attribute. Instant methods =============== Constructor (empty).
Return type: Standard_GUID
-
GetNext()¶ - Returns a map of next functions.
Return type: TColStd_MapOfInteger
-
GetPrevious()¶ - Returns a map of previous functions.
Return type: TColStd_MapOfInteger
-
GetStatus()¶ - Returns the execution status of the function.
Return type: TFunction_ExecutionStatus
-
RemoveNext()¶ - Removes a reference to the function as a next one.
Parameters: funcID (int) – Return type: bool - Removes a reference to the function as a next one.
Parameters: func (TDF_Label &) – Return type: bool
-
RemovePrevious()¶ - Removes a reference to the function as a previous one.
Parameters: funcID (int) – Return type: bool - Removes a reference to the function as a previous one.
Parameters: func (TDF_Label &) – Return type: bool
-
static
Set(*args)¶ - Static methods ============== Finds or Creates a graph node attribute at the label <L>. Returns the attribute.
Parameters: L (TDF_Label &) – Return type: Handle_TFunction_GraphNode
-
SetStatus()¶ - Defines an execution status for a function. Implementation of Attribute methods ===================================
Parameters: status (TFunction_ExecutionStatus) – Return type: None
-
thisown¶ The membership flag
-
-
TFunction_GraphNode_GetID(*args)¶ - Returns the GUID for GraphNode attribute. Instant methods =============== Constructor (empty).
Return type: Standard_GUID
-
TFunction_GraphNode_Set(*args)¶ - Static methods ============== Finds or Creates a graph node attribute at the label <L>. Returns the attribute.
Parameters: L (TDF_Label &) – Return type: Handle_TFunction_GraphNode
-
class
TFunction_HArray1OfDataMapOfGUIDDriver(*args)¶ Bases:
OCC.MMgt.MMgt_TSharedParameters: Return type: Return type: -
Array1()¶ Return type: TFunction_Array1OfDataMapOfGUIDDriver
-
ChangeArray1()¶ Return type: TFunction_Array1OfDataMapOfGUIDDriver
-
ChangeValue()¶ Parameters: Index (int) – Return type: TFunction_DataMapOfGUIDDriver
-
GetHandle()¶
-
Value()¶ Parameters: Index (int) – Return type: TFunction_DataMapOfGUIDDriver
-
thisown¶ The membership flag
-
-
class
TFunction_IFunction(*args)¶ Bases:
objectReturn type: None - A constructor. Initializes the interface by the label of function.
Parameters: L (TDF_Label &) – Return type: None -
Arguments()¶ - The method fills-in the list by labels, where the arguments of the function are located.
Parameters: args (TDF_LabelList &) – Return type: None
-
static
DeleteFunction(*args)¶ - Deletes a function attached to a label <L>. It deletes a TFunction_Function attribute and a TFunction_GraphNode. It deletes the functions from the scope of function of this document.
Parameters: L (TDF_Label &) – Return type: bool
-
GetAllFunctions()¶ - Returns the scope of all functions.
Return type: TFunction_DoubleMapOfIntegerLabel
-
GetDriver()¶ - Returns a driver of the function.
Parameters: thread (int) – default value is 0 Return type: Handle_TFunction_Driver
-
GetGraphNode()¶ - Returns a graph node of the function.
Return type: Handle_TFunction_GraphNode
-
GetLogbook()¶ - Returns the Logbook - keeper of modifications.
Return type: TFunction_Logbook
-
GetPrevious()¶ - Returns a list of previous functions.
Parameters: prev (TDF_LabelList &) – Return type: None
-
GetStatus()¶ - Returns the execution status of the function.
Return type: TFunction_ExecutionStatus
-
Init()¶ - Initializes the interface by the label of function.
Parameters: L (TDF_Label &) – Return type: None
-
static
NewFunction(*args)¶ - Sets a new function attached to a label <L> with <ID>. It creates a new TFunction_Function attribute initialized by the <ID>, a new TFunction_GraphNode with an empty list of dependencies and the status equal to TFunction_ES_WrongDefinition. It registers the function in the scope of functions for this document.
Parameters: - L (TDF_Label &) –
- ID (Standard_GUID &) –
Return type:
-
Results()¶ - The method fills-in the list by labels, where the results of the function are located.
Parameters: res (TDF_LabelList &) – Return type: None
-
SetStatus()¶ - Defines an execution status for a function.
Parameters: status (TFunction_ExecutionStatus) – Return type: None
-
UpdateDependencies()¶ - Updates dependencies for all functions of the scope. It returns false in case of an error. An empty constructor.
Parameters: Access (TDF_Label &) – Return type: bool - Updates the dependencies of this function only.
Return type: bool
-
thisown¶ The membership flag
-
TFunction_IFunction_DeleteFunction(*args)¶ - Deletes a function attached to a label <L>. It deletes a TFunction_Function attribute and a TFunction_GraphNode. It deletes the functions from the scope of function of this document.
Parameters: L (TDF_Label &) – Return type: bool
-
TFunction_IFunction_NewFunction(*args)¶ - Sets a new function attached to a label <L> with <ID>. It creates a new TFunction_Function attribute initialized by the <ID>, a new TFunction_GraphNode with an empty list of dependencies and the status equal to TFunction_ES_WrongDefinition. It registers the function in the scope of functions for this document.
Parameters: - L (TDF_Label &) –
- ID (Standard_GUID &) –
Return type:
-
class
TFunction_Iterator(*args)¶ Bases:
object- An empty constructor.
Return type: None - A constructor. Initializes the iterator.
Parameters: Access (TDF_Label &) – Return type: None -
Current()¶ - Returns the current list of functions. If the iterator uses the execution status, the returned list contains only the functions with ‘not executed’ status.
Return type: TDF_LabelList
-
DumpToString()¶ TFunction_Iterator_DumpToString(TFunction_Iterator self) -> std::string
-
GetMaxNbThreads()¶ - Analyses the graph of dependencies and returns maximum number of threads may be used to calculate the model.
Return type: int
-
GetStatus()¶ - A help-function aimed to help the user to check the status of retrurned function. It calls TFunction_GraphNode::GetStatus() inside.
Parameters: func (TDF_Label &) – Return type: TFunction_ExecutionStatus
-
Init()¶ - Initializes the Iterator.
Parameters: Access (TDF_Label &) – Return type: void
-
Next()¶ - Switches the iterator to the next list of current functions.
Return type: void
-
SetStatus()¶ - A help-function aimed to help the user to change the execution status of a function. It calls TFunction_GraphNode::SetStatus() inside.
Parameters: - func (TDF_Label &) –
- status (TFunction_ExecutionStatus) –
Return type:
-
SetUsageOfExecutionStatus()¶ - Defines the mode of iteration - usage or not of the execution status. If the iterator takes into account the execution status, the method ::Current() returns only ‘not executed’ functions while their status is not changed. If the iterator ignores the execution status, the method ::Current() returns the functions following their dependencies and ignoring the execution status.
Parameters: usage (bool) – Return type: None
-
thisown¶ The membership flag
-
class
TFunction_Logbook(*args)¶ Bases:
object- next methods are solving declaration ===================================
Return type: None -
ChangeValid()¶ Return type: TDF_LabelMap
-
DumpToString()¶ TFunction_Logbook_DumpToString(TFunction_Logbook self) -> std::string
-
GetImpacted()¶ - Returns the map of impacted labels contained in this logbook.
Return type: TDF_LabelMap
-
GetTouched()¶ - Returns the map of touched labels in this logbook. A touched label is the one modified by the end user.
Return type: TDF_LabelMap
-
GetValid()¶ - Returns the map of valid labels in this logbook.
Return type: TDF_LabelMap
-
IsModified()¶ - Returns True if the label L is touched or impacted. This method is called by <TFunction_FunctionDriver::MustExecute>. If <WithChildren> is set to true, the method checks all the sublabels of <L> too. next method to consult solving result =====================================
Parameters: - L (TDF_Label &) –
- WithChildren (bool) – default value is Standard_False
Return type:
-
SetImpacted()¶ - Sets the label L as an impacted label in this logbook. This method is called by execution of the function driver.
Parameters: - L (TDF_Label &) –
- WithChildren (bool) – default value is Standard_False
Return type:
-
SetTouched()¶ - Sets the label L as a touched label in this logbook. In other words, L is understood to have been modified by the end user.
Parameters: L (TDF_Label &) – Return type: None
-
SetValid()¶ - Sets the label L as a valid label in this logbook.
Parameters: - L (TDF_Label &) –
- WithChildren (bool) – default value is Standard_False
Return type:
-
thisown¶ The membership flag
-
class
TFunction_Scope(*args)¶ Bases:
OCC.TDF.TDF_AttributeReturn type: None -
AddFunction()¶ - Adds a function to the scope of functions.
Parameters: L (TDF_Label &) – Return type: bool
-
ChangeFunctions()¶ - Returns the scope of functions for modification. Warning: Don’t use this method if You are not sure what You do!
Return type: TFunction_DoubleMapOfIntegerLabel
-
DumpToString()¶ TFunction_Scope_DumpToString(TFunction_Scope self) -> std::string
-
GetFunction()¶ - Returns an ID of the function.
Parameters: L (TDF_Label &) – Return type: int - Returns the label of the function with this ID.
Parameters: ID (int) – Return type: TDF_Label
-
GetFunctions()¶ - Returns the scope of functions.
Return type: TFunction_DoubleMapOfIntegerLabel
-
GetHandle()¶
-
static
GetID(*args)¶ - Returns the GUID for Scope attribute. Instant methods =============== Constructor (empty).
Return type: Standard_GUID
-
GetLogbook()¶ - Returns the Logbook used in TFunction_Driver methods. Implementation of Attribute methods ===================================
Return type: TFunction_Logbook
-
HasFunction()¶ - Returns true if the function exists with such an ID.
Parameters: ID (int) – Return type: bool - Returns true if the label contains a function of this scope.
Parameters: L (TDF_Label &) – Return type: bool
-
RemoveFunction()¶ - Removes a function from the scope of functions.
Parameters: L (TDF_Label &) – Return type: bool - Removes a function from the scope of functions.
Parameters: ID (int) – Return type: bool
-
static
Set(*args)¶ - Static methods ============== Finds or Creates a TFunction_Scope attribute at the root label accessed by <Access>. Returns the attribute.
Parameters: Access (TDF_Label &) – Return type: Handle_TFunction_Scope
-
thisown¶ The membership flag
-
-
TFunction_Scope_GetID(*args)¶ - Returns the GUID for Scope attribute. Instant methods =============== Constructor (empty).
Return type: Standard_GUID
-
TFunction_Scope_Set(*args)¶ - Static methods ============== Finds or Creates a TFunction_Scope attribute at the root label accessed by <Access>. Returns the attribute.
Parameters: Access (TDF_Label &) – Return type: Handle_TFunction_Scope
-
register_handle(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases