|
Open CASCADE Technology
6.7.1
|
This class provides general services for a data framework.
More...
#include <TDF_Tool.hxx>
Static Public Member Functions | |
| static Standard_Integer | NbLabels (const TDF_Label &aLabel) |
Returns the number of labels of the tree, <br> including <aLabel>. aLabel is also included in this figure. | |
| static Standard_Integer | NbAttributes (const TDF_Label &aLabel) |
Returns the total number of attributes attached <br> to the labels dependent on the label aLabel. | |
| static Standard_Integer | NbAttributes (const TDF_Label &aLabel, const TDF_IDFilter &aFilter) |
| Returns the number of attributes of the tree, selected by a<Filter>, including those of <aLabel>. More... | |
| static Standard_Boolean | IsSelfContained (const TDF_Label &aLabel) |
| Returns true if <aLabel> and its descendants reference only attributes or labels attached to themselves. More... | |
| static Standard_Boolean | IsSelfContained (const TDF_Label &aLabel, const TDF_IDFilter &aFilter) |
| Returns true if <aLabel> and its descendants reference only attributes or labels attached to themselves and kept by <aFilter>. More... | |
| static void | OutReferers (const TDF_Label &theLabel, TDF_AttributeMap &theAtts) |
Returns in <theAtts> the attributes having out <br>
references. <br>
| |
| static void | OutReferers (const TDF_Label &aLabel, const TDF_IDFilter &aFilterForReferers, const TDF_IDFilter &aFilterForReferences, TDF_AttributeMap &atts) |
| Returns in <atts> the attributes having out references and kept by <aFilterForReferers>. It considers only the references kept by <aFilterForReferences>. Caution: <atts> is not cleared before use! More... | |
| static void | OutReferences (const TDF_Label &aLabel, TDF_AttributeMap &atts) |
| Returns in <atts> the referenced attributes. Caution: <atts> is not cleared before use! More... | |
| static void | OutReferences (const TDF_Label &aLabel, const TDF_IDFilter &aFilterForReferers, const TDF_IDFilter &aFilterForReferences, TDF_AttributeMap &atts) |
| Returns in <atts> the referenced attributes and kept by <aFilterForReferences>. It considers only the referers kept by <aFilterForReferers>. Caution: <atts> is not cleared before use! More... | |
| static void | RelocateLabel (const TDF_Label &aSourceLabel, const TDF_Label &fromRoot, const TDF_Label &toRoot, TDF_Label &aTargetLabel, const Standard_Boolean create=Standard_False) |
Returns the label having the same sub-entry as <br>
<aLabel> but located as descendant as <toRoot> <br>
instead of <fromRoot>. <br>
| |
| static void | Entry (const TDF_Label &aLabel, TCollection_AsciiString &anEntry) |
Returns the entry for the label aLabel in the form <br> of the ASCII character string anEntry containing | |
| static void | TagList (const TDF_Label &aLabel, TColStd_ListOfInteger &aTagList) |
| Returns the entry of <aLabel> as list of integers in <aTagList>. More... | |
| static void | TagList (const TCollection_AsciiString &anEntry, TColStd_ListOfInteger &aTagList) |
| Returns the entry expressed by <anEntry> as list of integers in <aTagList>. More... | |
| static void | Label (const Handle< TDF_Data > &aDF, const TCollection_AsciiString &anEntry, TDF_Label &aLabel, const Standard_Boolean create=Standard_False) |
| Returns the label expressed by <anEntry>; creates the label if it does not exist and if <create> is true. More... | |
| static void | Label (const Handle< TDF_Data > &aDF, const Standard_CString anEntry, TDF_Label &aLabel, const Standard_Boolean create=Standard_False) |
| Returns the label expressed by <anEntry>; creates the label if it does not exist and if <create> is true. More... | |
| static void | Label (const Handle< TDF_Data > &aDF, const TColStd_ListOfInteger &aTagList, TDF_Label &aLabel, const Standard_Boolean create=Standard_False) |
| Returns the label expressed by <anEntry>; creates the label if it does not exist and if <create> is true. More... | |
| static void | CountLabels (TDF_LabelList &aLabelList, TDF_LabelIntegerMap &aLabelMap) |
| Adds the labels of <aLabelList> to <aLabelMap> if they are unbound, or increases their reference counters. At the end of the process, <aLabelList> contains only the ADDED labels. More... | |
| static void | DeductLabels (TDF_LabelList &aLabelList, TDF_LabelIntegerMap &aLabelMap) |
| Decreases the reference counters of the labels of <aLabelList> to <aLabelMap>, and removes labels with null counter. At the end of the process, <aLabelList> contains only the SUPPRESSED labels. More... | |
| static void | DeepDump (Standard_OStream &anOS, const Handle< TDF_Data > &aDF) |
| Dumps <aDF> and its labels and their attributes. More... | |
| static void | ExtendedDeepDump (Standard_OStream &anOS, const Handle< TDF_Data > &aDF, const TDF_IDFilter &aFilter) |
| Dumps <aDF> and its labels and their attributes, if their IDs are kept by <aFilter>. Dumps also the attributes content. More... | |
| static void | DeepDump (Standard_OStream &anOS, const TDF_Label &aLabel) |
| Dumps <aLabel>, its chilren and their attributes. More... | |
| static void | ExtendedDeepDump (Standard_OStream &anOS, const TDF_Label &aLabel, const TDF_IDFilter &aFilter) |
| Dumps <aLabel>, its chilren and their attributes, if their IDs are kept by <aFilter>. Dumps also the attributes content. More... | |
This class provides general services for a data framework.
|
static |
Adds the labels of <aLabelList> to <aLabelMap> if
they are unbound, or increases their reference
counters. At the end of the process, <aLabelList>
contains only the ADDED labels.
|
static |
Decreases the reference counters of the labels of
<aLabelList> to <aLabelMap>, and removes labels
with null counter. At the end of the process,
<aLabelList> contains only the SUPPRESSED labels.
|
static |
Dumps <aDF> and its labels and their attributes.
|
static |
Dumps <aLabel>, its chilren and their attributes.
|
static |
Returns the entry for the label aLabel in the form <br>
of the ASCII character string anEntry containing
the tag list for aLabel.
|
static |
Dumps <aDF> and its labels and their attributes,
if their IDs are kept by <aFilter>. Dumps also the
attributes content.
|
static |
Dumps <aLabel>, its chilren and their attributes,
if their IDs are kept by <aFilter>. Dumps also the
attributes content.
|
static |
Returns true if <aLabel> and its descendants
reference only attributes or labels attached to
themselves.
|
static |
Returns true if <aLabel> and its descendants
reference only attributes or labels attached to
themselves and kept by <aFilter>.
|
static |
Returns the label expressed by <anEntry>; creates
the label if it does not exist and if <create> is
true.
|
static |
Returns the label expressed by <anEntry>; creates
the label if it does not exist and if <create> is
true.
|
static |
Returns the label expressed by <anEntry>; creates
the label if it does not exist and if <create> is
true.
|
static |
Returns the total number of attributes attached <br>
to the labels dependent on the label aLabel.
The attributes of aLabel are also included in this figure.
This information is useful in setting the size of an array.
|
static |
Returns the number of attributes of the tree,
selected by a<Filter>, including those of
<aLabel>.
|
static |
Returns the number of labels of the tree, <br>
including <aLabel>. aLabel is also included in this figure.
This information is useful in setting the size of an array.
|
static |
Returns in <atts> the referenced attributes.
Caution: <atts> is not cleared before use!
|
static |
Returns in <atts> the referenced attributes and kept by <aFilterForReferences>.
It considers only the referers kept by <aFilterForReferers>.
Caution: <atts> is not cleared before use!
|
static |
Returns in <theAtts> the attributes having out <br>
references. <br>
Caution: <theAtts> is not cleared before use!
|
static |
Returns in <atts> the attributes having out
references and kept by <aFilterForReferers>.
It considers only the references kept by <aFilterForReferences>.
Caution: <atts> is not cleared before use!
|
static |
Returns the label having the same sub-entry as <br>
<aLabel> but located as descendant as <toRoot> <br>
instead of <fromRoot>. <br>
Exemple :
aLabel = 0:3:24:7:2:7
fromRoot = 0:3:24
toRoot = 0:5
returned label = 0:5:7:2:7
|
static |
Returns the entry of <aLabel> as list of integers
in <aTagList>.
|
static |
Returns the entry expressed by <anEntry> as list
of integers in <aTagList>.
1.8.5