mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0031939: Coding - correction of spelling errors in comments [part 12]
Fix various typos via codespell.
This commit is contained in:
parent
2641792e45
commit
03ca365a6c
@ -15,7 +15,7 @@
|
|||||||
// commercial license or contractual agreement.
|
// commercial license or contractual agreement.
|
||||||
|
|
||||||
//=========================================================================
|
//=========================================================================
|
||||||
// CREATION of the BISSECTICE between a CIRCLE and a STRAIGHT LINE. +
|
// CREATION of the BISSECTICE between a CIRCLE and a STRAIGHT LINE. +
|
||||||
//=========================================================================
|
//=========================================================================
|
||||||
|
|
||||||
#include <GccAna_CircLin2dBisec.hxx>
|
#include <GccAna_CircLin2dBisec.hxx>
|
||||||
@ -41,11 +41,11 @@ GccAna_CircLin2dBisec::
|
|||||||
{
|
{
|
||||||
|
|
||||||
//=========================================================================
|
//=========================================================================
|
||||||
// Initialization of fields : +
|
// Initialization of fields : +
|
||||||
// - circle +
|
// - circle +
|
||||||
// - line (straight line.) +
|
// - line (straight line.) +
|
||||||
// - NbrSol (number of solution.) +
|
// - NbrSol (number of solution.) +
|
||||||
// - WellDone (Booleen showing success or failure of algorithm). +
|
// - WellDone (Boolean showing success or failure of algorithm)+
|
||||||
//=========================================================================
|
//=========================================================================
|
||||||
|
|
||||||
NbrSol = 2;
|
NbrSol = 2;
|
||||||
@ -54,14 +54,14 @@ GccAna_CircLin2dBisec::
|
|||||||
|
|
||||||
//=========================================================================
|
//=========================================================================
|
||||||
// Processing. +
|
// Processing. +
|
||||||
// Return coordinates of origins of the straight line (xloc,yloc) and the +
|
// Return coordinates of origins of the straight line (xloc,yloc) and +
|
||||||
// circle (xcencir, ycencir). +
|
// the circle (xcencir, ycencir). +
|
||||||
// Also return the coordinates of the direction of the straight line (xdir, +
|
// Also return the coordinates of the direction of the straight line +
|
||||||
// ydir) and the radius of circle R1. +
|
// (xdir, ydir) and the radius of circle R1. +
|
||||||
// Check at which side of the straight line is found the center of the circle +
|
// Check at which side of the straight line is found the center of the +
|
||||||
// to orientate the parabola (sign). +
|
// circle to orientate the parabola (sign). +
|
||||||
// Create axis of each parabola (axeparab1, axeparb2), then +
|
// Create axis of each parabola (axeparab1, axeparb2), then +
|
||||||
// two parabolas (biscirlin1, biscirlin1). +
|
// two parabolas (biscirlin1, biscirlin1). +
|
||||||
//=========================================================================
|
//=========================================================================
|
||||||
|
|
||||||
Handle(GccInt_Bisec) GccAna_CircLin2dBisec::
|
Handle(GccInt_Bisec) GccAna_CircLin2dBisec::
|
||||||
|
@ -710,7 +710,7 @@ static Standard_Integer freebounds (Draw_Interpretor& di,
|
|||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : PrintProps
|
//function : PrintProps
|
||||||
//purpose : auxilary for FreeBoundsProps
|
//purpose : auxiliary for FreeBoundsProps
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
static void PrintProps(Standard_Integer i,
|
static void PrintProps(Standard_Integer i,
|
||||||
const Handle(ShapeAnalysis_FreeBoundData)& fbd,
|
const Handle(ShapeAnalysis_FreeBoundData)& fbd,
|
||||||
@ -762,7 +762,7 @@ static Standard_Integer FreeBoundsProps(Draw_Interpretor& di,
|
|||||||
|
|
||||||
Standard_Integer nb = analyzer.NbClosedFreeBounds();
|
Standard_Integer nb = analyzer.NbClosedFreeBounds();
|
||||||
di<<"\n";
|
di<<"\n";
|
||||||
di<<" \tArea mm2\tLength mm\tRatio L/W\tWidth mm\tNb noth\n";
|
di<<" \tArea mm2\tLength mm\tRatio L/W\tWidth mm\tNb notch\n";
|
||||||
B.MakeCompound(closed);
|
B.MakeCompound(closed);
|
||||||
if (nb) {
|
if (nb) {
|
||||||
di<<"Closed bounds properties\n";
|
di<<"Closed bounds properties\n";
|
||||||
|
@ -329,7 +329,7 @@ void StepToTopoDS_TranslateFace::Init
|
|||||||
// orientation of the surface => the underlying topological
|
// orientation of the surface => the underlying topological
|
||||||
// orientation are not implicitly reversed
|
// orientation are not implicitly reversed
|
||||||
// this is the case in CAS.CADE => If the face_surface is reversed,
|
// this is the case in CAS.CADE => If the face_surface is reversed,
|
||||||
// the wire orientation has to be explictly reversed
|
// the wire orientation has to be explicitly reversed
|
||||||
if (FaceBound->Orientation()) {
|
if (FaceBound->Orientation()) {
|
||||||
// *DTH* if (sameSense || GeomSurf->IsKind(STANDARD_TYPE(Geom_Plane)))
|
// *DTH* if (sameSense || GeomSurf->IsKind(STANDARD_TYPE(Geom_Plane)))
|
||||||
W.Orientation(sameSense ? TopAbs_FORWARD : TopAbs_REVERSED);
|
W.Orientation(sameSense ? TopAbs_FORWARD : TopAbs_REVERSED);
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#include <Standard_OutOfRange.hxx>
|
#include <Standard_OutOfRange.hxx>
|
||||||
|
|
||||||
// The array of prime numbers used as consequtive steps for
|
// The array of prime numbers used as consecutive steps for
|
||||||
// size of array of buckets in the map.
|
// size of array of buckets in the map.
|
||||||
// The prime numbers are used for array size with the hope that this will
|
// The prime numbers are used for array size with the hope that this will
|
||||||
// lead to less probablility of having the same hash codes for
|
// lead to less probablility of having the same hash codes for
|
||||||
|
@ -69,7 +69,7 @@ public:
|
|||||||
Standard_EXPORT TCollection_AsciiString(const Standard_Character aChar);
|
Standard_EXPORT TCollection_AsciiString(const Standard_Character aChar);
|
||||||
|
|
||||||
//! Initializes an AsciiString with <length> space allocated.
|
//! Initializes an AsciiString with <length> space allocated.
|
||||||
//! and filled with <filler>. This is usefull for buffers.
|
//! and filled with <filler>. This is useful for buffers.
|
||||||
Standard_EXPORT TCollection_AsciiString(const Standard_Integer length, const Standard_Character filler);
|
Standard_EXPORT TCollection_AsciiString(const Standard_Integer length, const Standard_Character filler);
|
||||||
|
|
||||||
//! Initializes an AsciiString with an integer value
|
//! Initializes an AsciiString with an integer value
|
||||||
@ -105,7 +105,7 @@ public:
|
|||||||
Standard_EXPORT TCollection_AsciiString(const TCollection_AsciiString& astring, const TCollection_AsciiString& message);
|
Standard_EXPORT TCollection_AsciiString(const TCollection_AsciiString& astring, const TCollection_AsciiString& message);
|
||||||
|
|
||||||
//! Creation by converting an extended string to an ascii string.
|
//! Creation by converting an extended string to an ascii string.
|
||||||
//! If replaceNonAscii is non-null charecter, it will be used
|
//! If replaceNonAscii is non-null character, it will be used
|
||||||
//! in place of any non-ascii character found in the source string.
|
//! in place of any non-ascii character found in the source string.
|
||||||
//! Otherwise, creates UTF-8 unicode string.
|
//! Otherwise, creates UTF-8 unicode string.
|
||||||
Standard_EXPORT TCollection_AsciiString(const TCollection_ExtendedString& astring, const Standard_Character replaceNonAscii = 0);
|
Standard_EXPORT TCollection_AsciiString(const TCollection_ExtendedString& astring, const Standard_Character replaceNonAscii = 0);
|
||||||
@ -254,7 +254,7 @@ void operator += (const TCollection_AsciiString& other)
|
|||||||
//! Substitutes all the characters equal to aChar by NewChar
|
//! Substitutes all the characters equal to aChar by NewChar
|
||||||
//! in the AsciiString <me>.
|
//! in the AsciiString <me>.
|
||||||
//! The substitution can be case sensitive.
|
//! The substitution can be case sensitive.
|
||||||
//! If you don't use default case sensitive, no matter wether aChar
|
//! If you don't use default case sensitive, no matter whether aChar
|
||||||
//! is uppercase or not.
|
//! is uppercase or not.
|
||||||
//! Example: me = "Histake" -> ChangeAll('H','M',Standard_True)
|
//! Example: me = "Histake" -> ChangeAll('H','M',Standard_True)
|
||||||
//! gives me = "Mistake"
|
//! gives me = "Mistake"
|
||||||
@ -455,7 +455,7 @@ Standard_Boolean operator > (const TCollection_AsciiString& other) const
|
|||||||
//! This means no control character and no extended ASCII code.
|
//! This means no control character and no extended ASCII code.
|
||||||
Standard_EXPORT Standard_Boolean IsAscii() const;
|
Standard_EXPORT Standard_Boolean IsAscii() const;
|
||||||
|
|
||||||
//! Removes all space characters in the begining of the string.
|
//! Removes all space characters in the beginning of the string.
|
||||||
Standard_EXPORT void LeftAdjust();
|
Standard_EXPORT void LeftAdjust();
|
||||||
|
|
||||||
//! left justify
|
//! left justify
|
||||||
@ -483,7 +483,7 @@ Standard_Boolean operator > (const TCollection_AsciiString& other) const
|
|||||||
//! of this string by its position.
|
//! of this string by its position.
|
||||||
Standard_Integer Length() const;
|
Standard_Integer Length() const;
|
||||||
|
|
||||||
//! Returns an index in the string <me> of the first occurence
|
//! Returns an index in the string <me> of the first occurrence
|
||||||
//! of the string S in the string <me> from the starting index
|
//! of the string S in the string <me> from the starting index
|
||||||
//! FromIndex to the ending index ToIndex
|
//! FromIndex to the ending index ToIndex
|
||||||
//! returns zero if failure
|
//! returns zero if failure
|
||||||
@ -497,7 +497,7 @@ Standard_Boolean operator > (const TCollection_AsciiString& other) const
|
|||||||
//! 4
|
//! 4
|
||||||
Standard_EXPORT Standard_Integer Location (const TCollection_AsciiString& other, const Standard_Integer FromIndex, const Standard_Integer ToIndex) const;
|
Standard_EXPORT Standard_Integer Location (const TCollection_AsciiString& other, const Standard_Integer FromIndex, const Standard_Integer ToIndex) const;
|
||||||
|
|
||||||
//! Returns the index of the nth occurence of the character C
|
//! Returns the index of the nth occurrence of the character C
|
||||||
//! in the string <me> from the starting index FromIndex to the
|
//! in the string <me> from the starting index FromIndex to the
|
||||||
//! ending index ToIndex.
|
//! ending index ToIndex.
|
||||||
//! Returns zero if failure.
|
//! Returns zero if failure.
|
||||||
@ -542,7 +542,7 @@ friend Standard_EXPORT Standard_IStream& operator >> (Standard_IStream& astream,
|
|||||||
//! ex: "3.14159267" returns 3.14159267.
|
//! ex: "3.14159267" returns 3.14159267.
|
||||||
Standard_EXPORT Standard_Real RealValue() const;
|
Standard_EXPORT Standard_Real RealValue() const;
|
||||||
|
|
||||||
//! Remove all the occurences of the character C in the string.
|
//! Remove all the occurrences of the character C in the string.
|
||||||
//! Example:
|
//! Example:
|
||||||
//! before
|
//! before
|
||||||
//! me = "HellLLo", C = 'L' , CaseSensitive = True
|
//! me = "HellLLo", C = 'L' , CaseSensitive = True
|
||||||
@ -674,7 +674,7 @@ friend Standard_EXPORT Standard_IStream& operator >> (Standard_IStream& astream,
|
|||||||
Standard_EXPORT Standard_Integer UsefullLength() const;
|
Standard_EXPORT Standard_Integer UsefullLength() const;
|
||||||
|
|
||||||
//! Returns character at position <where> in <me>.
|
//! Returns character at position <where> in <me>.
|
||||||
//! If <where> is less than zero or greater than the lenght of <me>,
|
//! If <where> is less than zero or greater than the length of <me>,
|
||||||
//! an exception is raised.
|
//! an exception is raised.
|
||||||
//! Example:
|
//! Example:
|
||||||
//! aString contains "Hello"
|
//! aString contains "Hello"
|
||||||
|
@ -140,8 +140,7 @@ TCollection_ExtendedString operator + (const TCollection_ExtendedString& other)
|
|||||||
//! Substitutes all the characters equal to aChar by NewChar
|
//! Substitutes all the characters equal to aChar by NewChar
|
||||||
//! in the ExtendedString <me>.
|
//! in the ExtendedString <me>.
|
||||||
//! The substitution can be case sensitive.
|
//! The substitution can be case sensitive.
|
||||||
//! If you don't use default case sensitive, no matter wether aChar
|
//! If you don't use default case sensitive, no matter whether aChar is uppercase or not.
|
||||||
//! is uppercase or not.
|
|
||||||
Standard_EXPORT void ChangeAll (const Standard_ExtCharacter aChar, const Standard_ExtCharacter NewChar);
|
Standard_EXPORT void ChangeAll (const Standard_ExtCharacter aChar, const Standard_ExtCharacter NewChar);
|
||||||
|
|
||||||
//! Removes all characters contained in <me>.
|
//! Removes all characters contained in <me>.
|
||||||
@ -329,7 +328,7 @@ friend Standard_EXPORT Standard_OStream& operator << (Standard_OStream& astream,
|
|||||||
Standard_EXPORT void Trunc (const Standard_Integer ahowmany);
|
Standard_EXPORT void Trunc (const Standard_Integer ahowmany);
|
||||||
|
|
||||||
//! Returns character at position <where> in <me>.
|
//! Returns character at position <where> in <me>.
|
||||||
//! If <where> is less than zero or greater than the lenght of
|
//! If <where> is less than zero or greater than the length of
|
||||||
//! <me>, an exception is raised.
|
//! <me>, an exception is raised.
|
||||||
//! Example:
|
//! Example:
|
||||||
//! aString contains "Hello"
|
//! aString contains "Hello"
|
||||||
@ -372,8 +371,7 @@ friend Standard_EXPORT Standard_OStream& operator << (Standard_OStream& astream,
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
//! Returns true if the input CString was successfuly converted
|
//! Returns true if the input CString was successfully converted to UTF8 coding.
|
||||||
//! to UTF8 coding
|
|
||||||
Standard_EXPORT Standard_Boolean ConvertToUnicode (const Standard_CString astring);
|
Standard_EXPORT Standard_Boolean ConvertToUnicode (const Standard_CString astring);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -79,7 +79,7 @@ public:
|
|||||||
Standard_EXPORT TCollection_HAsciiString(const Handle(TCollection_HAsciiString)& aString);
|
Standard_EXPORT TCollection_HAsciiString(const Handle(TCollection_HAsciiString)& aString);
|
||||||
|
|
||||||
//! Initializes a HAsciiString with a HExtendedString.
|
//! Initializes a HAsciiString with a HExtendedString.
|
||||||
//! If replaceNonAscii is non-null charecter, it will be used
|
//! If replaceNonAscii is non-null character, it will be used
|
||||||
//! in place of any non-ascii character found in the source string.
|
//! in place of any non-ascii character found in the source string.
|
||||||
//! Otherwise, creates UTF-8 unicode string.
|
//! Otherwise, creates UTF-8 unicode string.
|
||||||
Standard_EXPORT TCollection_HAsciiString(const Handle(TCollection_HExtendedString)& aString, const Standard_Character replaceNonAscii);
|
Standard_EXPORT TCollection_HAsciiString(const Handle(TCollection_HExtendedString)& aString, const Standard_Character replaceNonAscii);
|
||||||
@ -256,7 +256,7 @@ public:
|
|||||||
//! string <me>.
|
//! string <me>.
|
||||||
Standard_EXPORT Standard_Boolean IsSameString (const Handle(TCollection_HAsciiString)& S, const Standard_Boolean CaseSensitive) const;
|
Standard_EXPORT Standard_Boolean IsSameString (const Handle(TCollection_HAsciiString)& S, const Standard_Boolean CaseSensitive) const;
|
||||||
|
|
||||||
//! Removes all space characters in the begining of the string
|
//! Removes all space characters in the beginning of the string
|
||||||
Standard_EXPORT void LeftAdjust();
|
Standard_EXPORT void LeftAdjust();
|
||||||
|
|
||||||
//! Left justify.
|
//! Left justify.
|
||||||
@ -275,7 +275,7 @@ public:
|
|||||||
//! This is the same functionality as 'strlen' in C.
|
//! This is the same functionality as 'strlen' in C.
|
||||||
Standard_Integer Length() const;
|
Standard_Integer Length() const;
|
||||||
|
|
||||||
//! returns an index in the string <me> of the first occurence
|
//! returns an index in the string <me> of the first occurrence
|
||||||
//! of the string S in the string <me> from the starting index
|
//! of the string S in the string <me> from the starting index
|
||||||
//! FromIndex to the ending index ToIndex
|
//! FromIndex to the ending index ToIndex
|
||||||
//! returns zero if failure
|
//! returns zero if failure
|
||||||
@ -289,7 +289,7 @@ public:
|
|||||||
//! 4
|
//! 4
|
||||||
Standard_EXPORT Standard_Integer Location (const Handle(TCollection_HAsciiString)& other, const Standard_Integer FromIndex, const Standard_Integer ToIndex) const;
|
Standard_EXPORT Standard_Integer Location (const Handle(TCollection_HAsciiString)& other, const Standard_Integer FromIndex, const Standard_Integer ToIndex) const;
|
||||||
|
|
||||||
//! Returns the index of the nth occurence of the character C
|
//! Returns the index of the nth occurrence of the character C
|
||||||
//! in the string <me> from the starting index FromIndex to the
|
//! in the string <me> from the starting index FromIndex to the
|
||||||
//! ending index ToIndex.
|
//! ending index ToIndex.
|
||||||
//! Returns zero if failure.
|
//! Returns zero if failure.
|
||||||
@ -305,7 +305,7 @@ public:
|
|||||||
//! Converts <me> to its lower-case equivalent.
|
//! Converts <me> to its lower-case equivalent.
|
||||||
Standard_EXPORT void LowerCase();
|
Standard_EXPORT void LowerCase();
|
||||||
|
|
||||||
//! Inserts the other string at the begining of the string <me>
|
//! Inserts the other string at the beginning of the string <me>
|
||||||
//! Example:
|
//! Example:
|
||||||
//! before
|
//! before
|
||||||
//! me = "cde" , S = "ab"
|
//! me = "cde" , S = "ab"
|
||||||
@ -322,7 +322,7 @@ public:
|
|||||||
//! "3.14159267" returns 3.14159267.
|
//! "3.14159267" returns 3.14159267.
|
||||||
Standard_EXPORT Standard_Real RealValue() const;
|
Standard_EXPORT Standard_Real RealValue() const;
|
||||||
|
|
||||||
//! Remove all the occurences of the character C in the string
|
//! Remove all the occurrences of the character C in the string
|
||||||
//! Example:
|
//! Example:
|
||||||
//! before
|
//! before
|
||||||
//! me = "HellLLo", C = 'L' , CaseSensitive = True
|
//! me = "HellLLo", C = 'L' , CaseSensitive = True
|
||||||
@ -455,7 +455,7 @@ public:
|
|||||||
Standard_EXPORT Standard_Integer UsefullLength() const;
|
Standard_EXPORT Standard_Integer UsefullLength() const;
|
||||||
|
|
||||||
//! Returns character at position <where> in <me>.
|
//! Returns character at position <where> in <me>.
|
||||||
//! If <where> is less than zero or greater than the lenght of
|
//! If <where> is less than zero or greater than the length of
|
||||||
//! <me>, an exception is raised.
|
//! <me>, an exception is raised.
|
||||||
//! Example:
|
//! Example:
|
||||||
//! aString contains "Hello"
|
//! aString contains "Hello"
|
||||||
|
@ -69,7 +69,7 @@ public:
|
|||||||
Standard_EXPORT TCollection_HExtendedString(const Standard_ExtCharacter aChar);
|
Standard_EXPORT TCollection_HExtendedString(const Standard_ExtCharacter aChar);
|
||||||
|
|
||||||
//! Initializes a HExtendedString with <length> space allocated.
|
//! Initializes a HExtendedString with <length> space allocated.
|
||||||
//! and filled with <filler>.This is usefull for buffers.
|
//! and filled with <filler>. This is useful for buffers.
|
||||||
Standard_EXPORT TCollection_HExtendedString(const Standard_Integer length, const Standard_ExtCharacter filler);
|
Standard_EXPORT TCollection_HExtendedString(const Standard_Integer length, const Standard_ExtCharacter filler);
|
||||||
|
|
||||||
//! Initializes a HExtendedString with a HExtendedString.
|
//! Initializes a HExtendedString with a HExtendedString.
|
||||||
|
@ -56,7 +56,7 @@ class TDF_IDFilter;
|
|||||||
//! features and data structures.
|
//! features and data structures.
|
||||||
//!
|
//!
|
||||||
//! The feature structure is a tree used to bind
|
//! The feature structure is a tree used to bind
|
||||||
//! semantic informations about each feature together.
|
//! semantic information about each feature together.
|
||||||
//!
|
//!
|
||||||
//! The only one concrete attribute defined in this
|
//! The only one concrete attribute defined in this
|
||||||
//! package is the TagSource attribute.This attribute
|
//! package is the TagSource attribute.This attribute
|
||||||
|
@ -304,8 +304,8 @@ void TDF_Attribute::RemoveBackup()
|
|||||||
throw Standard_DomainError("Impossible to remove a nonexistent backup.");
|
throw Standard_DomainError("Impossible to remove a nonexistent backup.");
|
||||||
#endif
|
#endif
|
||||||
myBackup->BeforeRemoval();
|
myBackup->BeforeRemoval();
|
||||||
myBackup->myLabelNode = NULL; // Absolutly necessary!
|
myBackup->myLabelNode = NULL; // Absolutely necessary!
|
||||||
myBackup->myNext.Nullify(); // Absolutly necessary!
|
myBackup->myNext.Nullify(); // Absolutely necessary!
|
||||||
myBackup = myBackup->myBackup;
|
myBackup = myBackup->myBackup;
|
||||||
if (!myBackup.IsNull()) myBackup->myNext = this; // New back reference.
|
if (!myBackup.IsNull()) myBackup->myNext = this; // New back reference.
|
||||||
}
|
}
|
||||||
|
@ -70,7 +70,7 @@ DEFINE_STANDARD_HANDLE(TDF_Attribute, Standard_Transient)
|
|||||||
//!
|
//!
|
||||||
//! An attribute can be identified by its ID. Every
|
//! An attribute can be identified by its ID. Every
|
||||||
//! attributes used with the same meaning (for
|
//! attributes used with the same meaning (for
|
||||||
//! exemple: Integer, String, Topology...) have the
|
//! example: Integer, String, Topology...) have the
|
||||||
//! same worldwide unique ID.
|
//! same worldwide unique ID.
|
||||||
//!
|
//!
|
||||||
//! Addition:
|
//! Addition:
|
||||||
@ -121,7 +121,7 @@ DEFINE_STANDARD_HANDLE(TDF_Attribute, Standard_Transient)
|
|||||||
//! algorithms. The goal of "Paste" is to transfer an
|
//! algorithms. The goal of "Paste" is to transfer an
|
||||||
//! attribute new contents into another attribute. The
|
//! attribute new contents into another attribute. The
|
||||||
//! goal of "NewEmpty" is to create an attribute
|
//! goal of "NewEmpty" is to create an attribute
|
||||||
//! whithout contents, to be further filled with the
|
//! without contents, to be further filled with the
|
||||||
//! new contents of another one. These 2 methods must
|
//! new contents of another one. These 2 methods must
|
||||||
//! be implemented by end use inheriting classes.
|
//! be implemented by end use inheriting classes.
|
||||||
//!
|
//!
|
||||||
@ -206,7 +206,7 @@ public:
|
|||||||
Standard_EXPORT void AddAttribute (const Handle(TDF_Attribute)& other) const;
|
Standard_EXPORT void AddAttribute (const Handle(TDF_Attribute)& other) const;
|
||||||
|
|
||||||
//! Forgets the Attribute of GUID <aguid> associated
|
//! Forgets the Attribute of GUID <aguid> associated
|
||||||
//! to the label of <me>. Be carefull that if <me> is
|
//! to the label of <me>. Be careful that if <me> is
|
||||||
//! the attribute of <guid>, <me> will have a null label
|
//! the attribute of <guid>, <me> will have a null label
|
||||||
//! after this call. If the attribute doesn't exist
|
//! after this call. If the attribute doesn't exist
|
||||||
//! returns False. Otherwise returns True.
|
//! returns False. Otherwise returns True.
|
||||||
@ -216,7 +216,7 @@ public:
|
|||||||
//! of <me>. Does it on the sub-labels if
|
//! of <me>. Does it on the sub-labels if
|
||||||
//! <clearChildren> is set to true. Of course, this
|
//! <clearChildren> is set to true. Of course, this
|
||||||
//! method is compatible with Transaction & Delta
|
//! method is compatible with Transaction & Delta
|
||||||
//! mecanisms. Be carefull that if <me> will have a
|
//! mechanisms. Be careful that if <me> will have a
|
||||||
//! null label after this call
|
//! null label after this call
|
||||||
Standard_EXPORT void ForgetAllAttributes (const Standard_Boolean clearChildren = Standard_True) const;
|
Standard_EXPORT void ForgetAllAttributes (const Standard_Boolean clearChildren = Standard_True) const;
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ class Standard_GUID;
|
|||||||
class TDF_AttributeDelta;
|
class TDF_AttributeDelta;
|
||||||
DEFINE_STANDARD_HANDLE(TDF_AttributeDelta, Standard_Transient)
|
DEFINE_STANDARD_HANDLE(TDF_AttributeDelta, Standard_Transient)
|
||||||
|
|
||||||
//! This class discribes the services we need to
|
//! This class describes the services we need to
|
||||||
//! implement Delta and Undo/Redo services.
|
//! implement Delta and Undo/Redo services.
|
||||||
//!
|
//!
|
||||||
//! AttributeDeltas are applied in an unpredictable
|
//! AttributeDeltas are applied in an unpredictable
|
||||||
|
@ -30,8 +30,8 @@
|
|||||||
// up-to-date (current) valid attributes of a label.
|
// up-to-date (current) valid attributes of a label.
|
||||||
//
|
//
|
||||||
// This class should not be used for standard attributes workflow.
|
// This class should not be used for standard attributes workflow.
|
||||||
// Application allways knows what to search at particular label.
|
// Application always knows what to search at particular label.
|
||||||
// So, use IsAttribute and FindAttibute methods of
|
// So, use IsAttribute and FindAttribute methods of
|
||||||
// TDF_Label to check and get attributes in usual way.
|
// TDF_Label to check and get attributes in usual way.
|
||||||
// This class may be used for processing of content of labels
|
// This class may be used for processing of content of labels
|
||||||
// in generic way, like copy-tool, specific save/restore algorithms,
|
// in generic way, like copy-tool, specific save/restore algorithms,
|
||||||
|
@ -32,7 +32,7 @@ public:
|
|||||||
DEFINE_STANDARD_ALLOC
|
DEFINE_STANDARD_ALLOC
|
||||||
|
|
||||||
|
|
||||||
//! Creates an objet with all modes set to <aMode>.
|
//! Creates an object with all modes set to <aMode>.
|
||||||
Standard_EXPORT TDF_ClosureMode(const Standard_Boolean aMode = Standard_True);
|
Standard_EXPORT TDF_ClosureMode(const Standard_Boolean aMode = Standard_True);
|
||||||
|
|
||||||
//! Sets the mode "Descendants" to <aStatus>.
|
//! Sets the mode "Descendants" to <aStatus>.
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : Closure
|
//function : Closure
|
||||||
//purpose : Builds the transitive closure whithout attribute filter.
|
//purpose : Builds the transitive closure without attribute filter.
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
|
||||||
void TDF_ClosureTool::Closure
|
void TDF_ClosureTool::Closure
|
||||||
|
@ -32,19 +32,15 @@ class TDF_Label;
|
|||||||
//! information. The use of this tool can works after
|
//! information. The use of this tool can works after
|
||||||
//! a copy, acted by a CopyTool.
|
//! a copy, acted by a CopyTool.
|
||||||
//!
|
//!
|
||||||
//! * Compare(...) compares two DataSet and returns
|
//! * Compare(...) compares two DataSet and returns the result.
|
||||||
//! the result.
|
|
||||||
//!
|
//!
|
||||||
//! * SourceUnbound(...) builds the difference between
|
//! * SourceUnbound(...) builds the difference between
|
||||||
//! a relocation dictionnary and a source set of
|
//! a relocation dictionary and a source set of information.
|
||||||
//! information.
|
|
||||||
//!
|
//!
|
||||||
//! * TargetUnbound(...) does the same between a
|
//! * TargetUnbound(...) does the same between a
|
||||||
//! relocation dictionnary and a target set of
|
//! relocation dictionary and a target set of information.
|
||||||
//! information.
|
|
||||||
//!
|
//!
|
||||||
//! * Cut(aDataSet, anLabel) removes a set of
|
//! * Cut(aDataSet, anLabel) removes a set of attributes.
|
||||||
//! attributes.
|
|
||||||
//!
|
//!
|
||||||
//! * IsSelfContained(...) returns true if all the
|
//! * IsSelfContained(...) returns true if all the
|
||||||
//! labels of the attributes of the given DataSet are
|
//! labels of the attributes of the given DataSet are
|
||||||
|
@ -37,9 +37,8 @@ class TDF_Label;
|
|||||||
class TDF_Data;
|
class TDF_Data;
|
||||||
DEFINE_STANDARD_HANDLE(TDF_Data, Standard_Transient)
|
DEFINE_STANDARD_HANDLE(TDF_Data, Standard_Transient)
|
||||||
|
|
||||||
//! This class is used to manipulate a complete
|
//! This class is used to manipulate a complete independent,
|
||||||
//! independant, self sufficient data structure and
|
//! self sufficient data structure and its services:
|
||||||
//! its services:
|
|
||||||
//!
|
//!
|
||||||
//! Access to the root label;
|
//! Access to the root label;
|
||||||
//!
|
//!
|
||||||
@ -48,8 +47,7 @@ DEFINE_STANDARD_HANDLE(TDF_Data, Standard_Transient)
|
|||||||
//! Generation and use of Delta, depending on the time.
|
//! Generation and use of Delta, depending on the time.
|
||||||
//! This class uses a special allocator
|
//! This class uses a special allocator
|
||||||
//! (see LabelNodeAllocator() method)
|
//! (see LabelNodeAllocator() method)
|
||||||
//! for more efficient allocation of
|
//! for more efficient allocation of objects in memory.
|
||||||
//! objects in memory.
|
|
||||||
class TDF_Data : public Standard_Transient
|
class TDF_Data : public Standard_Transient
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -71,10 +69,9 @@ public:
|
|||||||
//! Returns true if <aDelta> is applicable HERE and NOW.
|
//! Returns true if <aDelta> is applicable HERE and NOW.
|
||||||
Standard_EXPORT Standard_Boolean IsApplicable (const Handle(TDF_Delta)& aDelta) const;
|
Standard_EXPORT Standard_Boolean IsApplicable (const Handle(TDF_Delta)& aDelta) const;
|
||||||
|
|
||||||
//! Apply <aDelta> to undo a set of attribute
|
//! Apply <aDelta> to undo a set of attribute modifications.
|
||||||
//! modifications.
|
|
||||||
//!
|
//!
|
||||||
//! Optionnal <withDelta> set to True indiquates a
|
//! Optional <withDelta> set to True indicates a
|
||||||
//! Delta Set must be generated. (See above)
|
//! Delta Set must be generated. (See above)
|
||||||
Standard_EXPORT Handle(TDF_Delta) Undo (const Handle(TDF_Delta)& aDelta, const Standard_Boolean withDelta = Standard_False);
|
Standard_EXPORT Handle(TDF_Delta) Undo (const Handle(TDF_Delta)& aDelta, const Standard_Boolean withDelta = Standard_False);
|
||||||
|
|
||||||
@ -162,7 +159,7 @@ private:
|
|||||||
//!
|
//!
|
||||||
//! Raises if there is no current transaction.
|
//! Raises if there is no current transaction.
|
||||||
//!
|
//!
|
||||||
//! Optionnal <withDelta> set to True indiquates a
|
//! Optional <withDelta> set to True indicates a
|
||||||
//! Delta must be generated.
|
//! Delta must be generated.
|
||||||
Standard_EXPORT Handle(TDF_Delta) CommitTransaction (const Standard_Boolean withDelta = Standard_False);
|
Standard_EXPORT Handle(TDF_Delta) CommitTransaction (const Standard_Boolean withDelta = Standard_False);
|
||||||
|
|
||||||
|
@ -32,8 +32,7 @@ class TDF_Attribute;
|
|||||||
class TDF_DataSet;
|
class TDF_DataSet;
|
||||||
DEFINE_STANDARD_HANDLE(TDF_DataSet, Standard_Transient)
|
DEFINE_STANDARD_HANDLE(TDF_DataSet, Standard_Transient)
|
||||||
|
|
||||||
//! This class is a set of TDF informations like
|
//! This class is a set of TDF information like labels and attributes.
|
||||||
//! labels and attributes.
|
|
||||||
class TDF_DataSet : public Standard_Transient
|
class TDF_DataSet : public Standard_Transient
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -620,7 +620,7 @@ void TDF_Label::ForgetFromNode (const TDF_LabelNodePtr& fromNode,
|
|||||||
// The attribute has been modified in the current transaction.
|
// The attribute has been modified in the current transaction.
|
||||||
// (It has at least one backup.) We don't restore the previous
|
// (It has at least one backup.) We don't restore the previous
|
||||||
// version before forgetting. It may generated a strange behaviour
|
// version before forgetting. It may generated a strange behaviour
|
||||||
// in case of forgetting, commiting, aborting...
|
// in case of forgetting, committing, aborting...
|
||||||
if (fromNode->Data()->NotUndoMode()) anAttribute->BeforeForget();
|
if (fromNode->Data()->NotUndoMode()) anAttribute->BeforeForget();
|
||||||
anAttribute->Forget(fromNode->Data()->Transaction());
|
anAttribute->Forget(fromNode->Data()->Transaction());
|
||||||
}
|
}
|
||||||
|
@ -133,7 +133,7 @@ public:
|
|||||||
//! Forgets all the attributes. Does it on also on the
|
//! Forgets all the attributes. Does it on also on the
|
||||||
//! sub-labels if <clearChildren> is set to true. Of
|
//! sub-labels if <clearChildren> is set to true. Of
|
||||||
//! course, this method is compatible with Transaction
|
//! course, this method is compatible with Transaction
|
||||||
//! & Delta mecanisms.
|
//! & Delta mechanisms.
|
||||||
Standard_EXPORT void ForgetAllAttributes (const Standard_Boolean clearChildren = Standard_True) const;
|
Standard_EXPORT void ForgetAllAttributes (const Standard_Boolean clearChildren = Standard_True) const;
|
||||||
|
|
||||||
//! Undo Forget action, setting its forgotten status
|
//! Undo Forget action, setting its forgotten status
|
||||||
|
@ -128,7 +128,7 @@ void TDF_LabelNode::RemoveAttribute
|
|||||||
(const Handle(TDF_Attribute)& afterAtt,
|
(const Handle(TDF_Attribute)& afterAtt,
|
||||||
const Handle(TDF_Attribute)& oldAtt)
|
const Handle(TDF_Attribute)& oldAtt)
|
||||||
{
|
{
|
||||||
oldAtt->myFlags = 0; // Unvalid.
|
oldAtt->myFlags = 0; // Invalid.
|
||||||
oldAtt->myLabelNode = NULL;
|
oldAtt->myLabelNode = NULL;
|
||||||
if (afterAtt.IsNull()) { // Removes from beginning.
|
if (afterAtt.IsNull()) { // Removes from beginning.
|
||||||
myFirstAttribute = oldAtt->myNext;
|
myFirstAttribute = oldAtt->myNext;
|
||||||
|
@ -35,7 +35,7 @@ class Standard_Transient;
|
|||||||
class TDF_RelocationTable;
|
class TDF_RelocationTable;
|
||||||
DEFINE_STANDARD_HANDLE(TDF_RelocationTable, Standard_Transient)
|
DEFINE_STANDARD_HANDLE(TDF_RelocationTable, Standard_Transient)
|
||||||
|
|
||||||
//! This is a relocation dictionnary between source
|
//! This is a relocation dictionary between source
|
||||||
//! and target labels, attributes or any
|
//! and target labels, attributes or any
|
||||||
//! transient(useful for copy or paste actions).
|
//! transient(useful for copy or paste actions).
|
||||||
//! Note that one target value may be the
|
//! Note that one target value may be the
|
||||||
@ -125,7 +125,7 @@ public:
|
|||||||
//! explanation about the method behavior)
|
//! explanation about the method behavior)
|
||||||
Standard_EXPORT Standard_Boolean HasTransientRelocation (const Handle(Standard_Transient)& aSourceTransient, Handle(Standard_Transient)& aTargetTransient) const;
|
Standard_EXPORT Standard_Boolean HasTransientRelocation (const Handle(Standard_Transient)& aSourceTransient, Handle(Standard_Transient)& aTargetTransient) const;
|
||||||
|
|
||||||
//! Clears the relocation dictionnary, but lets the
|
//! Clears the relocation dictionary, but lets the
|
||||||
//! self relocation flag to its current value.
|
//! self relocation flag to its current value.
|
||||||
Standard_EXPORT void Clear();
|
Standard_EXPORT void Clear();
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ public:
|
|||||||
Standard_EXPORT static void OutReferences (const TDF_Label& aLabel, TDF_AttributeMap& atts);
|
Standard_EXPORT static void OutReferences (const TDF_Label& aLabel, TDF_AttributeMap& atts);
|
||||||
|
|
||||||
//! Returns in <atts> the referenced attributes and kept by <aFilterForReferences>.
|
//! Returns in <atts> the referenced attributes and kept by <aFilterForReferences>.
|
||||||
//! It considers only the referers kept by <aFilterForReferers>.
|
//! It considers only the referrers kept by <aFilterForReferers>.
|
||||||
//! Caution: <atts> is not cleared before use!
|
//! Caution: <atts> is not cleared before use!
|
||||||
Standard_EXPORT static void OutReferences (const TDF_Label& aLabel, const TDF_IDFilter& aFilterForReferers, const TDF_IDFilter& aFilterForReferences, TDF_AttributeMap& atts);
|
Standard_EXPORT static void OutReferences (const TDF_Label& aLabel, const TDF_IDFilter& aFilterForReferers, const TDF_IDFilter& aFilterForReferences, TDF_AttributeMap& atts);
|
||||||
|
|
||||||
@ -93,7 +93,7 @@ public:
|
|||||||
//! <aLabel> but located as descendant as <toRoot>
|
//! <aLabel> but located as descendant as <toRoot>
|
||||||
//! instead of <fromRoot>.
|
//! instead of <fromRoot>.
|
||||||
//!
|
//!
|
||||||
//! Exemple :
|
//! Example :
|
||||||
//!
|
//!
|
||||||
//! aLabel = 0:3:24:7:2:7
|
//! aLabel = 0:3:24:7:2:7
|
||||||
//! fromRoot = 0:3:24
|
//! fromRoot = 0:3:24
|
||||||
@ -149,10 +149,10 @@ public:
|
|||||||
//! attributes content.
|
//! attributes content.
|
||||||
Standard_EXPORT static void ExtendedDeepDump (Standard_OStream& anOS, const Handle(TDF_Data)& aDF, const TDF_IDFilter& aFilter);
|
Standard_EXPORT static void ExtendedDeepDump (Standard_OStream& anOS, const Handle(TDF_Data)& aDF, const TDF_IDFilter& aFilter);
|
||||||
|
|
||||||
//! Dumps <aLabel>, its chilren and their attributes.
|
//! Dumps <aLabel>, its children and their attributes.
|
||||||
Standard_EXPORT static void DeepDump (Standard_OStream& anOS, const TDF_Label& aLabel);
|
Standard_EXPORT static void DeepDump (Standard_OStream& anOS, const TDF_Label& aLabel);
|
||||||
|
|
||||||
//! Dumps <aLabel>, its chilren and their attributes,
|
//! Dumps <aLabel>, its children and their attributes,
|
||||||
//! if their IDs are kept by <aFilter>. Dumps also the
|
//! if their IDs are kept by <aFilter>. Dumps also the
|
||||||
//! attributes content.
|
//! attributes content.
|
||||||
Standard_EXPORT static void ExtendedDeepDump (Standard_OStream& anOS, const TDF_Label& aLabel, const TDF_IDFilter& aFilter);
|
Standard_EXPORT static void ExtendedDeepDump (Standard_OStream& anOS, const TDF_Label& aLabel, const TDF_IDFilter& aFilter);
|
||||||
|
@ -33,7 +33,7 @@ class TCollection_AsciiString;
|
|||||||
//! This class offers services to open, commit or
|
//! This class offers services to open, commit or
|
||||||
//! abort a transaction in a more secure way than
|
//! abort a transaction in a more secure way than
|
||||||
//! using Data from TDF. If you forget to close a
|
//! using Data from TDF. If you forget to close a
|
||||||
//! transaction, it will be automaticaly aborted at
|
//! transaction, it will be automatically aborted at
|
||||||
//! the destruction of this object, at the closure of
|
//! the destruction of this object, at the closure of
|
||||||
//! its scope.
|
//! its scope.
|
||||||
//!
|
//!
|
||||||
|
@ -64,7 +64,7 @@ TDF_Label TDataStd_Current::Get (const TDF_Label& access)
|
|||||||
// TDF_Label current;
|
// TDF_Label current;
|
||||||
Handle(TDataStd_Current) A;
|
Handle(TDataStd_Current) A;
|
||||||
if (!access.Data()->Root().FindAttribute (TDataStd_Current::GetID(), A)) {
|
if (!access.Data()->Root().FindAttribute (TDataStd_Current::GetID(), A)) {
|
||||||
throw Standard_DomainError("TDataStd_Current::Get : not setted");
|
throw Standard_DomainError("TDataStd_Current::Get : not set");
|
||||||
}
|
}
|
||||||
return A->GetLabel();
|
return A->GetLabel();
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ class TDF_RelocationTable;
|
|||||||
class TDataStd_GenericEmpty;
|
class TDataStd_GenericEmpty;
|
||||||
DEFINE_STANDARD_HANDLE(TDataStd_GenericEmpty, TDF_Attribute)
|
DEFINE_STANDARD_HANDLE(TDataStd_GenericEmpty, TDF_Attribute)
|
||||||
|
|
||||||
//! An ancestor attibute for all attributes which have no fields.
|
//! An ancestor attribute for all attributes which have no fields.
|
||||||
//! If an attribute inherits this one it should not have drivers for persistence.
|
//! If an attribute inherits this one it should not have drivers for persistence.
|
||||||
class TDataStd_GenericEmpty : public TDF_Attribute
|
class TDataStd_GenericEmpty : public TDF_Attribute
|
||||||
{
|
{
|
||||||
|
@ -25,7 +25,7 @@ class TDF_RelocationTable;
|
|||||||
class TDataStd_GenericExtString;
|
class TDataStd_GenericExtString;
|
||||||
DEFINE_STANDARD_HANDLE(TDataStd_GenericExtString, TDF_Attribute)
|
DEFINE_STANDARD_HANDLE(TDataStd_GenericExtString, TDF_Attribute)
|
||||||
|
|
||||||
//! An ancestor attibute for all attributes which have TCollection_ExtendedString field.
|
//! An ancestor attribute for all attributes which have TCollection_ExtendedString field.
|
||||||
//! If an attribute inherits this one it should not have drivers for persistence.
|
//! If an attribute inherits this one it should not have drivers for persistence.
|
||||||
//! Also this attribute provides functionality to have on the same label same attributes with different IDs.
|
//! Also this attribute provides functionality to have on the same label same attributes with different IDs.
|
||||||
class TDataStd_GenericExtString : public TDF_Attribute
|
class TDataStd_GenericExtString : public TDF_Attribute
|
||||||
|
@ -213,7 +213,7 @@ public: //! @name late-load deferred data interface
|
|||||||
//!
|
//!
|
||||||
//! Usage scenarios:
|
//! Usage scenarios:
|
||||||
//! - Application displays model in read-only way.
|
//! - Application displays model in read-only way.
|
||||||
//! Late-load elements are loaded temporarily on demand and immediatly unloaded.
|
//! Late-load elements are loaded temporarily on demand and immediately unloaded.
|
||||||
//! theNamedData->LoadDeferredData (true);
|
//! theNamedData->LoadDeferredData (true);
|
||||||
//! TCollection_AsciiString aValue = theNamedData->GetString (theKey);
|
//! TCollection_AsciiString aValue = theNamedData->GetString (theKey);
|
||||||
//! theNamedData->UnloadDeferredData();
|
//! theNamedData->UnloadDeferredData();
|
||||||
@ -227,7 +227,7 @@ public: //! @name late-load deferred data interface
|
|||||||
virtual Standard_Boolean HasDeferredData() const { return false; }
|
virtual Standard_Boolean HasDeferredData() const { return false; }
|
||||||
|
|
||||||
//! Load data from deferred storage, without calling Backup().
|
//! Load data from deferred storage, without calling Backup().
|
||||||
//! As result, the content of the object will be overidden by data from deferred storage (which is normally read-only).
|
//! As result, the content of the object will be overridden by data from deferred storage (which is normally read-only).
|
||||||
//! @param theToKeepDeferred [in] when TRUE, the link to deferred storage will be preserved
|
//! @param theToKeepDeferred [in] when TRUE, the link to deferred storage will be preserved
|
||||||
//! so that it will be possible calling UnloadDeferredData() afterwards for releasing memory
|
//! so that it will be possible calling UnloadDeferredData() afterwards for releasing memory
|
||||||
//! @return FALSE if deferred storage is unavailable or deferred data has been already loaded
|
//! @return FALSE if deferred storage is unavailable or deferred data has been already loaded
|
||||||
|
@ -545,7 +545,7 @@ void TDataStd_TreeNode::AfterAddition() {
|
|||||||
//=======================================================================
|
//=======================================================================
|
||||||
//TreeNode : BeforeForget
|
//TreeNode : BeforeForget
|
||||||
//purpose : Disconnect the TreeNode from the tree.
|
//purpose : Disconnect the TreeNode from the tree.
|
||||||
// Backuped attribute is normaly not concerned by such an operation
|
// Backuped attribute is normally not concerned by such an operation
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
|
||||||
void TDataStd_TreeNode::BeforeForget() {
|
void TDataStd_TreeNode::BeforeForget() {
|
||||||
|
@ -200,8 +200,7 @@ public:
|
|||||||
//! ===================================
|
//! ===================================
|
||||||
Standard_EXPORT virtual Standard_Boolean AfterUndo (const Handle(TDF_AttributeDelta)& anAttDelta, const Standard_Boolean forceIt = Standard_False) Standard_OVERRIDE;
|
Standard_EXPORT virtual Standard_Boolean AfterUndo (const Handle(TDF_AttributeDelta)& anAttDelta, const Standard_Boolean forceIt = Standard_False) Standard_OVERRIDE;
|
||||||
|
|
||||||
//! Returns the tree ID (default or explicit one depending
|
//! Returns the tree ID (default or explicit one depending on the Set method used).
|
||||||
//! onthe Set method used).
|
|
||||||
Standard_EXPORT const Standard_GUID& ID() const Standard_OVERRIDE;
|
Standard_EXPORT const Standard_GUID& ID() const Standard_OVERRIDE;
|
||||||
|
|
||||||
Standard_EXPORT virtual void Restore (const Handle(TDF_Attribute)& with) Standard_OVERRIDE;
|
Standard_EXPORT virtual void Restore (const Handle(TDF_Attribute)& with) Standard_OVERRIDE;
|
||||||
|
@ -133,9 +133,9 @@ public:
|
|||||||
//! Returns the GUID for geometry attributes.
|
//! Returns the GUID for geometry attributes.
|
||||||
Standard_EXPORT static const Standard_GUID& GetID();
|
Standard_EXPORT static const Standard_GUID& GetID();
|
||||||
|
|
||||||
//! This and the next methods are used to retrieve underlying geometry of the
|
//! This and the next methods are used to retrieve underlying geometry of the NamedShape,
|
||||||
//! NamedShape, even if noone Geometry Attribute is
|
//! even if no Geometry Attribute is associated.
|
||||||
//! associated . if not found or not compliant geometry return False.
|
//! if not found or not compliant geometry return False.
|
||||||
Standard_EXPORT TDataXtd_Geometry();
|
Standard_EXPORT TDataXtd_Geometry();
|
||||||
|
|
||||||
//! Returns the type of geometric construction T of this attribute.
|
//! Returns the type of geometric construction T of this attribute.
|
||||||
|
@ -41,7 +41,7 @@ class TDocStd_MultiTransactionManager;
|
|||||||
//!
|
//!
|
||||||
//! * The standard application root class
|
//! * The standard application root class
|
||||||
//!
|
//!
|
||||||
//! * The standard document wich contains data
|
//! * The standard document which contains data
|
||||||
//!
|
//!
|
||||||
//! * The external reference mechanism between documents
|
//! * The external reference mechanism between documents
|
||||||
//!
|
//!
|
||||||
|
@ -65,7 +65,7 @@ DEFINE_STANDARD_HANDLE(TDocStd_Application, CDF_Application)
|
|||||||
//! the events during the Open/Store operation, a MessageDriver
|
//! the events during the Open/Store operation, a MessageDriver
|
||||||
//! based on Message_PrinterOStream may be used. In case of need client
|
//! based on Message_PrinterOStream may be used. In case of need client
|
||||||
//! can implement his own version inheriting from Message_Printer class
|
//! can implement his own version inheriting from Message_Printer class
|
||||||
//! and add it to the Messanger.
|
//! and add it to the Messenger.
|
||||||
//! Also the trace level of messages can be tuned by setting trace level (SetTraceLevel (Gravity )) for the used Printer.
|
//! Also the trace level of messages can be tuned by setting trace level (SetTraceLevel (Gravity )) for the used Printer.
|
||||||
//! By default, trace level is Message_Info, so that all messages are output.
|
//! By default, trace level is Message_Info, so that all messages are output.
|
||||||
|
|
||||||
@ -232,7 +232,7 @@ public:
|
|||||||
const Message_ProgressRange& theRange = Message_ProgressRange());
|
const Message_ProgressRange& theRange = Message_ProgressRange());
|
||||||
|
|
||||||
//! Retrieves aDoc from standard SEEKABLE stream theIStream.
|
//! Retrieves aDoc from standard SEEKABLE stream theIStream.
|
||||||
//! the stream should support SEEK fuctionality
|
//! the stream should support SEEK functionality
|
||||||
Standard_EXPORT PCDM_ReaderStatus Open (Standard_IStream& theIStream, Handle(TDocStd_Document)& theDoc,
|
Standard_EXPORT PCDM_ReaderStatus Open (Standard_IStream& theIStream, Handle(TDocStd_Document)& theDoc,
|
||||||
const Message_ProgressRange& theRange = Message_ProgressRange());
|
const Message_ProgressRange& theRange = Message_ProgressRange());
|
||||||
|
|
||||||
@ -244,7 +244,7 @@ public:
|
|||||||
const Message_ProgressRange& theRange = Message_ProgressRange());
|
const Message_ProgressRange& theRange = Message_ProgressRange());
|
||||||
|
|
||||||
//! Save theDoc to standard SEEKABLE stream theOStream.
|
//! Save theDoc to standard SEEKABLE stream theOStream.
|
||||||
//! the stream should support SEEK fuctionality
|
//! the stream should support SEEK functionality
|
||||||
Standard_EXPORT PCDM_StoreStatus SaveAs (const Handle(TDocStd_Document)& theDoc,
|
Standard_EXPORT PCDM_StoreStatus SaveAs (const Handle(TDocStd_Document)& theDoc,
|
||||||
Standard_OStream& theOStream,
|
Standard_OStream& theOStream,
|
||||||
const Message_ProgressRange& theRange = Message_ProgressRange());
|
const Message_ProgressRange& theRange = Message_ProgressRange());
|
||||||
@ -265,7 +265,7 @@ public:
|
|||||||
const Message_ProgressRange& theRange = Message_ProgressRange());
|
const Message_ProgressRange& theRange = Message_ProgressRange());
|
||||||
|
|
||||||
//! Save theDoc TO standard SEEKABLE stream theOStream.
|
//! Save theDoc TO standard SEEKABLE stream theOStream.
|
||||||
//! the stream should support SEEK fuctionality
|
//! the stream should support SEEK functionality
|
||||||
Standard_EXPORT PCDM_StoreStatus SaveAs (const Handle(TDocStd_Document)& theDoc,
|
Standard_EXPORT PCDM_StoreStatus SaveAs (const Handle(TDocStd_Document)& theDoc,
|
||||||
Standard_OStream& theOStream,
|
Standard_OStream& theOStream,
|
||||||
TCollection_ExtendedString& theStatusMessage,
|
TCollection_ExtendedString& theStatusMessage,
|
||||||
|
@ -376,7 +376,7 @@ Standard_Boolean TDocStd_Document::CommitTransaction()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// deny or allow modifications acording to transaction state
|
// deny or allow modifications according to transaction state
|
||||||
if(myOnlyTransactionModification) {
|
if(myOnlyTransactionModification) {
|
||||||
myData->AllowModification (myUndoTransaction.IsOpen() && myUndoLimit
|
myData->AllowModification (myUndoTransaction.IsOpen() && myUndoLimit
|
||||||
? Standard_True :Standard_False);
|
? Standard_True :Standard_False);
|
||||||
@ -413,7 +413,7 @@ void TDocStd_Document::AbortTransaction()
|
|||||||
if (myUndoFILO.Extent())
|
if (myUndoFILO.Extent())
|
||||||
myUndoTransaction.Open();
|
myUndoTransaction.Open();
|
||||||
}
|
}
|
||||||
// deny or allow modifications acording to transaction state
|
// deny or allow modifications according to transaction state
|
||||||
if (myOnlyTransactionModification) {
|
if (myOnlyTransactionModification) {
|
||||||
myData->AllowModification (myUndoTransaction.IsOpen() && myUndoLimit
|
myData->AllowModification (myUndoTransaction.IsOpen() && myUndoLimit
|
||||||
? Standard_True :Standard_False);
|
? Standard_True :Standard_False);
|
||||||
@ -457,7 +457,7 @@ void TDocStd_Document::OpenTransaction()
|
|||||||
|
|
||||||
if (myUndoLimit != 0) myUndoTransaction.Open();
|
if (myUndoLimit != 0) myUndoTransaction.Open();
|
||||||
|
|
||||||
// deny or allow modifications acording to transaction state
|
// deny or allow modifications according to transaction state
|
||||||
if (myOnlyTransactionModification) {
|
if (myOnlyTransactionModification) {
|
||||||
myData->AllowModification (myUndoTransaction.IsOpen() && myUndoLimit
|
myData->AllowModification (myUndoTransaction.IsOpen() && myUndoLimit
|
||||||
? Standard_True :Standard_False);
|
? Standard_True :Standard_False);
|
||||||
@ -490,7 +490,7 @@ void TDocStd_Document::SetUndoLimit(const Standard_Integer L)
|
|||||||
myUndos.RemoveFirst();
|
myUndos.RemoveFirst();
|
||||||
--n;
|
--n;
|
||||||
}
|
}
|
||||||
// deny or allow modifications acording to transaction state
|
// deny or allow modifications according to transaction state
|
||||||
if(myOnlyTransactionModification) {
|
if(myOnlyTransactionModification) {
|
||||||
myData->AllowModification(myUndoTransaction.IsOpen() && myUndoLimit
|
myData->AllowModification(myUndoTransaction.IsOpen() && myUndoLimit
|
||||||
? Standard_True :Standard_False);
|
? Standard_True :Standard_False);
|
||||||
@ -595,7 +595,7 @@ Standard_Boolean TDocStd_Document::Undo()
|
|||||||
|
|
||||||
if (isOpened && undoDone) OpenTransaction();
|
if (isOpened && undoDone) OpenTransaction();
|
||||||
|
|
||||||
// deny or allow modifications acording to transaction state
|
// deny or allow modifications according to transaction state
|
||||||
if(myOnlyTransactionModification) {
|
if(myOnlyTransactionModification) {
|
||||||
myData->AllowModification(myUndoTransaction.IsOpen() && myUndoLimit
|
myData->AllowModification(myUndoTransaction.IsOpen() && myUndoLimit
|
||||||
? Standard_True :Standard_False);
|
? Standard_True :Standard_False);
|
||||||
@ -654,7 +654,7 @@ Standard_Boolean TDocStd_Document::Redo()
|
|||||||
|
|
||||||
if (isOpened && undoDone) OpenTransaction();
|
if (isOpened && undoDone) OpenTransaction();
|
||||||
|
|
||||||
// deny or allow modifications acording to transaction state
|
// deny or allow modifications according to transaction state
|
||||||
if(myOnlyTransactionModification) {
|
if(myOnlyTransactionModification) {
|
||||||
myData->AllowModification(myUndoTransaction.IsOpen() && myUndoLimit
|
myData->AllowModification(myUndoTransaction.IsOpen() && myUndoLimit
|
||||||
? Standard_True :Standard_False);
|
? Standard_True :Standard_False);
|
||||||
@ -924,7 +924,7 @@ void TDocStd_Document::ChangeStorageFormatVersion(const TDocStd_FormatVersion th
|
|||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : CurrentStorageFormatVersion
|
//function : CurrentStorageFormatVersion
|
||||||
//purpose : Returns current storage format verison of the document.
|
//purpose : Returns current storage format version of the document.
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
TDocStd_FormatVersion TDocStd_Document::CurrentStorageFormatVersion()
|
TDocStd_FormatVersion TDocStd_Document::CurrentStorageFormatVersion()
|
||||||
{
|
{
|
||||||
|
@ -73,7 +73,7 @@ public:
|
|||||||
Standard_EXPORT Standard_Boolean IsSaved() const;
|
Standard_EXPORT Standard_Boolean IsSaved() const;
|
||||||
|
|
||||||
//! returns True if document differs from the state of last saving.
|
//! returns True if document differs from the state of last saving.
|
||||||
//! this method have to be called only wroking in the transaction mode
|
//! this method have to be called only working in the transaction mode
|
||||||
Standard_Boolean IsChanged() const;
|
Standard_Boolean IsChanged() const;
|
||||||
|
|
||||||
//! This method have to be called to show document that it has been saved
|
//! This method have to be called to show document that it has been saved
|
||||||
@ -89,7 +89,7 @@ public:
|
|||||||
//! raise if <me> is not saved.
|
//! raise if <me> is not saved.
|
||||||
Standard_EXPORT TCollection_ExtendedString GetName() const;
|
Standard_EXPORT TCollection_ExtendedString GetName() const;
|
||||||
|
|
||||||
//! returns the OS path of the file, in wich one <me> is
|
//! returns the OS path of the file, in which one <me> is
|
||||||
//! saved. Raise an exception if <me> is not saved.
|
//! saved. Raise an exception if <me> is not saved.
|
||||||
Standard_EXPORT TCollection_ExtendedString GetPath() const;
|
Standard_EXPORT TCollection_ExtendedString GetPath() const;
|
||||||
|
|
||||||
@ -255,7 +255,7 @@ public:
|
|||||||
//! Sets version of the format to be used to store the document
|
//! Sets version of the format to be used to store the document
|
||||||
Standard_EXPORT void ChangeStorageFormatVersion(const TDocStd_FormatVersion theVersion);
|
Standard_EXPORT void ChangeStorageFormatVersion(const TDocStd_FormatVersion theVersion);
|
||||||
|
|
||||||
//! Returns current storage format verison of the document.
|
//! Returns current storage format version of the document.
|
||||||
Standard_EXPORT static TDocStd_FormatVersion CurrentStorageFormatVersion();
|
Standard_EXPORT static TDocStd_FormatVersion CurrentStorageFormatVersion();
|
||||||
|
|
||||||
//! Dumps the content of me into the stream
|
//! Dumps the content of me into the stream
|
||||||
|
@ -40,7 +40,7 @@ inline Standard_Boolean
|
|||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : IsModified
|
//function : IsModified
|
||||||
//purpose : returns True if document differs from the state of last saving.
|
//purpose : returns True if document differs from the state of last saving.
|
||||||
// this method have to be called only wroking in the transaction mode
|
// this method have to be called only working in the transaction mode
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
|
||||||
inline Standard_Boolean
|
inline Standard_Boolean
|
||||||
@ -70,7 +70,7 @@ inline void TDocStd_Document::SetModificationMode
|
|||||||
{
|
{
|
||||||
myOnlyTransactionModification = theTransactionOnly;
|
myOnlyTransactionModification = theTransactionOnly;
|
||||||
|
|
||||||
// deny or allow modifications acording to transaction state
|
// deny or allow modifications according to transaction state
|
||||||
if(myOnlyTransactionModification) {
|
if(myOnlyTransactionModification) {
|
||||||
myData->AllowModification(myUndoTransaction.IsOpen());
|
myData->AllowModification(myUndoTransaction.IsOpen());
|
||||||
}
|
}
|
||||||
|
@ -33,8 +33,8 @@ class TDF_RelocationTable;
|
|||||||
class TDocStd_Modified;
|
class TDocStd_Modified;
|
||||||
DEFINE_STANDARD_HANDLE(TDocStd_Modified, TDF_Attribute)
|
DEFINE_STANDARD_HANDLE(TDocStd_Modified, TDF_Attribute)
|
||||||
|
|
||||||
//! Transient attribute wich register modified
|
//! Transient attribute which register modified labels.
|
||||||
//! labels. This attribute is attached to root label.
|
//! This attribute is attached to root label.
|
||||||
class TDocStd_Modified : public TDF_Attribute
|
class TDocStd_Modified : public TDF_Attribute
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -106,10 +106,10 @@ void TDocStd_MultiTransactionManager::OpenCommand() {
|
|||||||
#ifdef OCCT_DEBUG
|
#ifdef OCCT_DEBUG
|
||||||
std::cout << "TDocStd_MultiTransactionManager::OpenCommand(): "
|
std::cout << "TDocStd_MultiTransactionManager::OpenCommand(): "
|
||||||
"Can't start new application transaction while a "
|
"Can't start new application transaction while a "
|
||||||
"previous one is not commited or aborted" << std::endl;
|
"previous one is not committed or aborted" << std::endl;
|
||||||
#endif
|
#endif
|
||||||
throw Standard_Failure("Can't start new application transaction"
|
throw Standard_Failure("Can't start new application transaction"
|
||||||
"while a previous one is not commited or aborted");
|
"while a previous one is not committed or aborted");
|
||||||
}
|
}
|
||||||
myOpenTransaction = Standard_True;
|
myOpenTransaction = Standard_True;
|
||||||
Standard_Integer i;
|
Standard_Integer i;
|
||||||
|
@ -36,7 +36,7 @@ DEFINE_STANDARD_HANDLE(TDocStd_MultiTransactionManager, Standard_Transient)
|
|||||||
//! Each transaction of this class involvess one transaction in each modified document.
|
//! Each transaction of this class involvess one transaction in each modified document.
|
||||||
//!
|
//!
|
||||||
//! The documents to be synchronized should be added explicitly to
|
//! The documents to be synchronized should be added explicitly to
|
||||||
//! the manager; then its interface is uesd to ensure that all transactions
|
//! the manager; then its interface is used to ensure that all transactions
|
||||||
//! (Open/Commit, Undo/Redo) are performed synchronously in all managed documents.
|
//! (Open/Commit, Undo/Redo) are performed synchronously in all managed documents.
|
||||||
//!
|
//!
|
||||||
//! The current implementation does not support nested transactions
|
//! The current implementation does not support nested transactions
|
||||||
@ -46,7 +46,7 @@ DEFINE_STANDARD_HANDLE(TDocStd_MultiTransactionManager, Standard_Transient)
|
|||||||
//! with TDocStd_Document class interface.
|
//! with TDocStd_Document class interface.
|
||||||
//!
|
//!
|
||||||
//! NOTE: When you invoke CommitTransaction of multi transaction
|
//! NOTE: When you invoke CommitTransaction of multi transaction
|
||||||
//! manager, all nested transaction of its documents will be closed (commited).
|
//! manager, all nested transaction of its documents will be closed (committed).
|
||||||
class TDocStd_MultiTransactionManager : public Standard_Transient
|
class TDocStd_MultiTransactionManager : public Standard_Transient
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -83,7 +83,7 @@ public:
|
|||||||
|
|
||||||
//! Opens transaction in each document and sets the flag that
|
//! Opens transaction in each document and sets the flag that
|
||||||
//! transaction is opened. If there are already opened transactions in the documents,
|
//! transaction is opened. If there are already opened transactions in the documents,
|
||||||
//! these transactions will be aborted before openning new ones.
|
//! these transactions will be aborted before opening new ones.
|
||||||
Standard_EXPORT void OpenCommand();
|
Standard_EXPORT void OpenCommand();
|
||||||
|
|
||||||
//! Unsets the flag of started manager transaction and aborts
|
//! Unsets the flag of started manager transaction and aborts
|
||||||
@ -93,7 +93,7 @@ public:
|
|||||||
//! Commits transaction in all documents and fills the transaction manager
|
//! Commits transaction in all documents and fills the transaction manager
|
||||||
//! with the documents that have been changed during the transaction.
|
//! with the documents that have been changed during the transaction.
|
||||||
//! Returns True if new data has been added to myUndos.
|
//! Returns True if new data has been added to myUndos.
|
||||||
//! NOTE: All nested transactions in the documents will be commited.
|
//! NOTE: All nested transactions in the documents will be committed.
|
||||||
Standard_EXPORT Standard_Boolean CommitCommand();
|
Standard_EXPORT Standard_Boolean CommitCommand();
|
||||||
|
|
||||||
//! Makes the same steps as the previous function but defines the name for transaction.
|
//! Makes the same steps as the previous function but defines the name for transaction.
|
||||||
|
@ -34,7 +34,7 @@ DEFINE_STANDARD_HANDLE(TDocStd_Owner, TDF_Attribute)
|
|||||||
|
|
||||||
//! This attribute located at the root label of the
|
//! This attribute located at the root label of the
|
||||||
//! framework contains a back reference to the owner
|
//! framework contains a back reference to the owner
|
||||||
//! TDocStd_Document, providing acces to the document from
|
//! TDocStd_Document, providing access to the document from
|
||||||
//! any label. private class Owner;
|
//! any label. private class Owner;
|
||||||
class TDocStd_Owner : public TDF_Attribute
|
class TDocStd_Owner : public TDF_Attribute
|
||||||
{
|
{
|
||||||
|
@ -96,7 +96,7 @@ public:
|
|||||||
//! Something to do after applying <anAttDelta>.
|
//! Something to do after applying <anAttDelta>.
|
||||||
Standard_EXPORT virtual Standard_Boolean AfterUndo (const Handle(TDF_AttributeDelta)& anAttDelta, const Standard_Boolean forceIt = Standard_False) Standard_OVERRIDE;
|
Standard_EXPORT virtual Standard_Boolean AfterUndo (const Handle(TDF_AttributeDelta)& anAttDelta, const Standard_Boolean forceIt = Standard_False) Standard_OVERRIDE;
|
||||||
|
|
||||||
//! Returns a null handle. Raise allways for ,it is
|
//! Returns a null handle. Raise always for it is
|
||||||
//! nonsense to use this method.
|
//! nonsense to use this method.
|
||||||
Standard_EXPORT Handle(TDF_Attribute) BackupCopy() const Standard_OVERRIDE;
|
Standard_EXPORT Handle(TDF_Attribute) BackupCopy() const Standard_OVERRIDE;
|
||||||
|
|
||||||
|
@ -36,8 +36,7 @@ DEFINE_STANDARD_HANDLE(TDocStd_XLinkRoot, TDF_Attribute)
|
|||||||
//! references contained in a Data from TDF. Only one
|
//! references contained in a Data from TDF. Only one
|
||||||
//! instance of this class is added to the TDF_Data
|
//! instance of this class is added to the TDF_Data
|
||||||
//! root label. Starting from this attribute all the
|
//! root label. Starting from this attribute all the
|
||||||
//! Reference are linked together, to be found
|
//! Reference are linked together, to be found easily.
|
||||||
//! easely.
|
|
||||||
class TDocStd_XLinkRoot : public TDF_Attribute
|
class TDocStd_XLinkRoot : public TDF_Attribute
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -159,7 +159,7 @@ void TDocStd_XLinkTool::UpdateLink (const TDF_Label& label)
|
|||||||
{
|
{
|
||||||
Handle(TDF_Reference) REF;
|
Handle(TDF_Reference) REF;
|
||||||
if (!label.FindAttribute(TDF_Reference::GetID(),REF)) {
|
if (!label.FindAttribute(TDF_Reference::GetID(),REF)) {
|
||||||
throw Standard_DomainError(" TDocStd_XLinkTool::UpdateLink : not ref registred");
|
throw Standard_DomainError(" TDocStd_XLinkTool::UpdateLink : not ref registered");
|
||||||
}
|
}
|
||||||
TDocStd_XLinkTool XLinkTool;
|
TDocStd_XLinkTool XLinkTool;
|
||||||
Copy (label,REF->Get());
|
Copy (label,REF->Get());
|
||||||
|
@ -33,8 +33,8 @@ class TDF_Label;
|
|||||||
//! attributes located out of source scope are not
|
//! attributes located out of source scope are not
|
||||||
//! copied by this algorithm.
|
//! copied by this algorithm.
|
||||||
//! Depending of the called method an external
|
//! Depending of the called method an external
|
||||||
//! reference is set in the the target document to
|
//! reference is set in the target document to
|
||||||
//! registred the externallink.
|
//! registered the externallink.
|
||||||
//! Provide services to set, update and perform
|
//! Provide services to set, update and perform
|
||||||
//! external references.
|
//! external references.
|
||||||
//! Warning1: Nothing is provided in this class about the
|
//! Warning1: Nothing is provided in this class about the
|
||||||
@ -53,7 +53,7 @@ public:
|
|||||||
Standard_EXPORT TDocStd_XLinkTool();
|
Standard_EXPORT TDocStd_XLinkTool();
|
||||||
|
|
||||||
//! Copies the content of the label <fromsource> to the label <intarget>.
|
//! Copies the content of the label <fromsource> to the label <intarget>.
|
||||||
//! The link is registred with an XLink attribute by <intarget>
|
//! The link is registered with an XLink attribute by <intarget>
|
||||||
//! label. if the content of <fromsource> is not
|
//! label. if the content of <fromsource> is not
|
||||||
//! self-contained, and/or <intarget> has already an XLink
|
//! self-contained, and/or <intarget> has already an XLink
|
||||||
//! attribute, an exception is raised.
|
//! attribute, an exception is raised.
|
||||||
@ -74,7 +74,7 @@ public:
|
|||||||
Standard_EXPORT void UpdateLink (const TDF_Label& L);
|
Standard_EXPORT void UpdateLink (const TDF_Label& L);
|
||||||
|
|
||||||
//! Copy the content of <fromsource> under
|
//! Copy the content of <fromsource> under
|
||||||
//! <intarget>. Noone link is registred. noone check is done.
|
//! <intarget>. No link is registered. No check is done.
|
||||||
//! Example
|
//! Example
|
||||||
//! Handle(TDocStd_Document) DOC, XDOC;
|
//! Handle(TDocStd_Document) DOC, XDOC;
|
||||||
//! TDF_Label L, XL;
|
//! TDF_Label L, XL;
|
||||||
|
@ -68,7 +68,7 @@ public:
|
|||||||
const Standard_GUID& GetDriverGUID() const { return myDriverGUID; }
|
const Standard_GUID& GetDriverGUID() const { return myDriverGUID; }
|
||||||
|
|
||||||
//! Sets the driver for this function as that
|
//! Sets the driver for this function as that
|
||||||
//! indentified by the GUID guid.
|
//! identified by the GUID guid.
|
||||||
Standard_EXPORT void SetDriverGUID (const Standard_GUID& guid);
|
Standard_EXPORT void SetDriverGUID (const Standard_GUID& guid);
|
||||||
|
|
||||||
//! Returns true if the execution failed
|
//! Returns true if the execution failed
|
||||||
|
@ -245,7 +245,7 @@ void TFunction_Iterator::Next()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ignore already passed fucntions (for the mode of ignoring the execution status).
|
// Ignore already passed functions (for the mode of ignoring the execution status).
|
||||||
if (!myUsageOfExecutionStatus && myPassedFunctions.Contains(Lnext))
|
if (!myUsageOfExecutionStatus && myPassedFunctions.Contains(Lnext))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
@ -175,7 +175,7 @@ public:
|
|||||||
//! single contexts
|
//! single contexts
|
||||||
Standard_EXPORT static TopoDS_Shape FindUniqueContextSet (const TopoDS_Shape& S, const TopoDS_Shape& Context, Handle(TopTools_HArray1OfShape)& Arr);
|
Standard_EXPORT static TopoDS_Shape FindUniqueContextSet (const TopoDS_Shape& S, const TopoDS_Shape& Context, Handle(TopTools_HArray1OfShape)& Arr);
|
||||||
|
|
||||||
//! Subtitutes shape in source structure
|
//! Substitutes shape in source structure
|
||||||
Standard_EXPORT static Standard_Boolean SubstituteSShape (const TDF_Label& accesslabel, const TopoDS_Shape& From, TopoDS_Shape& To);
|
Standard_EXPORT static Standard_Boolean SubstituteSShape (const TDF_Label& accesslabel, const TopoDS_Shape& From, TopoDS_Shape& To);
|
||||||
|
|
||||||
//! Returns True if outer wire is found and the found wire in <theWire>.
|
//! Returns True if outer wire is found and the found wire in <theWire>.
|
||||||
|
@ -147,7 +147,7 @@ public:
|
|||||||
Standard_EXPORT static Standard_Integer ValidUntil (const TDF_Label& access, const TopoDS_Shape& S);
|
Standard_EXPORT static Standard_Integer ValidUntil (const TDF_Label& access, const TopoDS_Shape& S);
|
||||||
|
|
||||||
//! Returns the current shape (a Wire or a Shell) built (in the data framework)
|
//! Returns the current shape (a Wire or a Shell) built (in the data framework)
|
||||||
//! from the the shapes of the argument named shape.
|
//! from the shapes of the argument named shape.
|
||||||
//! It is used for IDENTITY name type computation.
|
//! It is used for IDENTITY name type computation.
|
||||||
Standard_EXPORT static void FindShape (const TDF_LabelMap& Valid, const TDF_LabelMap& Forbiden, const Handle(TNaming_NamedShape)& Arg, TopoDS_Shape& S);
|
Standard_EXPORT static void FindShape (const TDF_LabelMap& Valid, const TDF_LabelMap& Forbiden, const Handle(TNaming_NamedShape)& Arg, TopoDS_Shape& S);
|
||||||
|
|
||||||
|
@ -214,7 +214,7 @@ void TObj_Application::DumpJson (Standard_OStream& theOStream, Standard_Integer
|
|||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : SetError
|
//function : SetError
|
||||||
//purpose : Sets an error occured on storage of a document.
|
//purpose : Sets an error occurred on storage of a document.
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
|
||||||
void TObj_Application::SetError (const PCDM_StoreStatus theStatus, const TCollection_ExtendedString& theInfo)
|
void TObj_Application::SetError (const PCDM_StoreStatus theStatus, const TCollection_ExtendedString& theInfo)
|
||||||
@ -247,7 +247,7 @@ void TObj_Application::SetError (const PCDM_StoreStatus theStatus, const TCollec
|
|||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : SetError
|
//function : SetError
|
||||||
//purpose : Sets an error occured on reading of a document.
|
//purpose : Sets an error occurred on reading of a document.
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
|
||||||
void TObj_Application::SetError(const PCDM_ReaderStatus theStatus, const TCollection_ExtendedString& theInfo)
|
void TObj_Application::SetError(const PCDM_ReaderStatus theStatus, const TCollection_ExtendedString& theInfo)
|
||||||
|
@ -109,10 +109,10 @@ public:
|
|||||||
//! the static instance of the object (or derive your own application)
|
//! the static instance of the object (or derive your own application)
|
||||||
Standard_EXPORT TObj_Application();
|
Standard_EXPORT TObj_Application();
|
||||||
|
|
||||||
//! Sets an error occured on storage of a document.
|
//! Sets an error occurred on storage of a document.
|
||||||
void SetError (const PCDM_StoreStatus theStatus, const TCollection_ExtendedString& theInfo);
|
void SetError (const PCDM_StoreStatus theStatus, const TCollection_ExtendedString& theInfo);
|
||||||
|
|
||||||
//! Sets an error occured on reading of a document.
|
//! Sets an error occurred on reading of a document.
|
||||||
void SetError (const PCDM_ReaderStatus theStatus, const TCollection_ExtendedString& theInfo);
|
void SetError (const PCDM_ReaderStatus theStatus, const TCollection_ExtendedString& theInfo);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
#include <TCollection_HExtendedString.hxx>
|
#include <TCollection_HExtendedString.hxx>
|
||||||
#include <Standard_Failure.hxx>
|
#include <Standard_Failure.hxx>
|
||||||
|
|
||||||
//! Methods inline implimentation for HExtendedString
|
//! Methods inline implementation for HExtendedString
|
||||||
|
|
||||||
//! Computes a hash code for the given handle referred to extended string, in the range [1, theUpperBound]
|
//! Computes a hash code for the given handle referred to extended string, in the range [1, theUpperBound]
|
||||||
//! @param theHExtendedString the handle referred to extended string which hash code is to be computed
|
//! @param theHExtendedString the handle referred to extended string which hash code is to be computed
|
||||||
|
@ -195,7 +195,7 @@ Handle(TObj_ObjectIterator) TObj_Object::GetChildren
|
|||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : getLabelByRank
|
//function : getLabelByRank
|
||||||
//purpose : Auxiliary function to get a label and attache a name to it
|
//purpose : Auxiliary function to get a label and attach a name to it
|
||||||
// Used in debug mode only
|
// Used in debug mode only
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
|
||||||
|
@ -149,7 +149,7 @@ class TObj_Object : public Standard_Transient
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Methods hanling name of the object
|
* Methods handling name of the object
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//! Returns the map of names of the objects
|
//! Returns the map of names of the objects
|
||||||
@ -202,7 +202,7 @@ class TObj_Object : public Standard_Transient
|
|||||||
virtual Standard_EXPORT void RemoveAllReferences();
|
virtual Standard_EXPORT void RemoveAllReferences();
|
||||||
|
|
||||||
//! Returns iterator for the objects which depend on this one.
|
//! Returns iterator for the objects which depend on this one.
|
||||||
//! These reffering objects may belong to other models.
|
//! These referring objects may belong to other models.
|
||||||
//! theType narrows a variety of iterated objects
|
//! theType narrows a variety of iterated objects
|
||||||
virtual Standard_EXPORT Handle(TObj_ObjectIterator) GetBackReferences
|
virtual Standard_EXPORT Handle(TObj_ObjectIterator) GetBackReferences
|
||||||
(const Handle(Standard_Type)& theType = NULL) const;
|
(const Handle(Standard_Type)& theType = NULL) const;
|
||||||
@ -227,7 +227,7 @@ class TObj_Object : public Standard_Transient
|
|||||||
//! The default implementation just clear the back references container
|
//! The default implementation just clear the back references container
|
||||||
virtual Standard_EXPORT void ClearBackReferences();
|
virtual Standard_EXPORT void ClearBackReferences();
|
||||||
|
|
||||||
//! Returns TRUE if obejct has 1 or more back references
|
//! Returns TRUE if object has 1 or more back references
|
||||||
Standard_EXPORT Standard_Boolean HasBackReferences() const;
|
Standard_EXPORT Standard_Boolean HasBackReferences() const;
|
||||||
|
|
||||||
//! Replace reference from old object to new object.
|
//! Replace reference from old object to new object.
|
||||||
@ -291,7 +291,7 @@ class TObj_Object : public Standard_Transient
|
|||||||
(const TObj_DeletingMode theMode = TObj_FreeOnly);
|
(const TObj_DeletingMode theMode = TObj_FreeOnly);
|
||||||
|
|
||||||
//! Deletes the object from the label. Checks if object can be deleted.
|
//! Deletes the object from the label. Checks if object can be deleted.
|
||||||
//! Finds object on the label and detaches it by calling previos method.
|
//! Finds object on the label and detaches it by calling previous method.
|
||||||
//! Returns true if there is no object on the label after detaching
|
//! Returns true if there is no object on the label after detaching
|
||||||
static Standard_EXPORT Standard_Boolean Detach
|
static Standard_EXPORT Standard_Boolean Detach
|
||||||
(const TDF_Label& theLabel,
|
(const TDF_Label& theLabel,
|
||||||
@ -336,7 +336,7 @@ class TObj_Object : public Standard_Transient
|
|||||||
//! Coping object with data and childs, but change name by adding string "_copy"
|
//! Coping object with data and childs, but change name by adding string "_copy"
|
||||||
//! As result return handle of new object (null handle is something wrong)
|
//! As result return handle of new object (null handle is something wrong)
|
||||||
//! NOTE: BackReferences not coping.
|
//! NOTE: BackReferences not coping.
|
||||||
//! After clonning all objects it is neccessary to call copy references
|
//! After cloning all objects it is necessary to call copy references
|
||||||
//! with the same relocation table
|
//! with the same relocation table
|
||||||
virtual Standard_EXPORT Handle(TObj_Object) Clone
|
virtual Standard_EXPORT Handle(TObj_Object) Clone
|
||||||
(const TDF_Label& theTargetLabel,
|
(const TDF_Label& theTargetLabel,
|
||||||
@ -415,13 +415,13 @@ class TObj_Object : public Standard_Transient
|
|||||||
* Method for updating object afrer restoring
|
* Method for updating object afrer restoring
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//! Preforms updating the links and dependances of the object which are not
|
//! Performs updating the links and dependances of the object which are not
|
||||||
//! stored in persistence. Should be redefined if necessary.
|
//! stored in persistence. Should be redefined if necessary.
|
||||||
virtual Standard_EXPORT void AfterRetrieval();
|
virtual Standard_EXPORT void AfterRetrieval();
|
||||||
|
|
||||||
//! Preforms storing the objects transient fields in OCAF document
|
//! Performs storing the objects transient fields in OCAF document
|
||||||
//! which were outside transaction mechanism.
|
//! which were outside transaction mechanism.
|
||||||
//! Default implementation doesnot nothing
|
//! Default implementation does nothing
|
||||||
virtual Standard_EXPORT void BeforeStoring();
|
virtual Standard_EXPORT void BeforeStoring();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -23,8 +23,8 @@
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class privides tool handling one of partitions (the set of
|
* This class provides tool handling one of partitions (the set of
|
||||||
* homogenious elements) in the OCAF based model`s data structure
|
* homogeneous elements) in the OCAF based model`s data structure
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class TObj_Partition : public TObj_Object
|
class TObj_Partition : public TObj_Object
|
||||||
@ -57,7 +57,7 @@ class TObj_Partition : public TObj_Object
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Methods hanling name of the object
|
* Methods handling name of the object
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//! Sets name of the object. partition does not check unique of own name
|
//! Sets name of the object. partition does not check unique of own name
|
||||||
@ -69,7 +69,7 @@ class TObj_Partition : public TObj_Object
|
|||||||
* Method for updating object afrer restoring
|
* Method for updating object afrer restoring
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//! Preforms updating the links and dependances of the object which are not
|
//! Performs updating the links and dependencies of the object which are not
|
||||||
//! stored in persistence. Does not register the partition name
|
//! stored in persistence. Does not register the partition name
|
||||||
virtual Standard_EXPORT void AfterRetrieval() Standard_OVERRIDE;
|
virtual Standard_EXPORT void AfterRetrieval() Standard_OVERRIDE;
|
||||||
|
|
||||||
@ -90,7 +90,7 @@ class TObj_Partition : public TObj_Object
|
|||||||
{ return myPrefix; }
|
{ return myPrefix; }
|
||||||
|
|
||||||
//! Generates and returns name for new object in partition.
|
//! Generates and returns name for new object in partition.
|
||||||
//! if theIsToChangeCount is true partition icrease own counter
|
//! if theIsToChangeCount is true partition increase own counter
|
||||||
//! to generate new name next time starting from new counter value
|
//! to generate new name next time starting from new counter value
|
||||||
Standard_EXPORT Handle(TCollection_HExtendedString) GetNewName
|
Standard_EXPORT Handle(TCollection_HExtendedString) GetNewName
|
||||||
( const Standard_Boolean theIsToChangeCount = Standard_True );
|
( const Standard_Boolean theIsToChangeCount = Standard_True );
|
||||||
|
@ -66,7 +66,7 @@ class TObj_SequenceIterator : public TObj_ObjectIterator
|
|||||||
*/
|
*/
|
||||||
Standard_Integer myIndex; //!< current index of object in sequence
|
Standard_Integer myIndex; //!< current index of object in sequence
|
||||||
Handle(Standard_Type) myType; //!< type of object
|
Handle(Standard_Type) myType; //!< type of object
|
||||||
Handle(TObj_HSequenceOfObject) myObjects; //!< seqence of objects
|
Handle(TObj_HSequenceOfObject) myObjects; //!< sequence of objects
|
||||||
|
|
||||||
public:
|
public:
|
||||||
//! CASCADE RTTI
|
//! CASCADE RTTI
|
||||||
|
@ -48,7 +48,7 @@ class TObj_TModel : public TDF_Attribute
|
|||||||
public:
|
public:
|
||||||
//! Methods for setting and obtaining the Model object
|
//! Methods for setting and obtaining the Model object
|
||||||
|
|
||||||
//! Sets the the Model object
|
//! Sets the Model object
|
||||||
Standard_EXPORT void Set(const Handle(TObj_Model)& theModel);
|
Standard_EXPORT void Set(const Handle(TObj_Model)& theModel);
|
||||||
|
|
||||||
//! Returns the Model object
|
//! Returns the Model object
|
||||||
|
@ -166,7 +166,7 @@ void TObj_TReference::Paste (const Handle(TDF_Attribute)& theInto,
|
|||||||
Handle(TObj_TObject) aObject, aMasterTObj;
|
Handle(TObj_TObject) aObject, aMasterTObj;
|
||||||
if (myLabel.IsNull())
|
if (myLabel.IsNull())
|
||||||
{
|
{
|
||||||
// unvalidity if it neccessary
|
// unvalidity if it necessary
|
||||||
aReference->myLabel.Nullify();
|
aReference->myLabel.Nullify();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -84,7 +84,7 @@ class TObjDRAW_Object : public TObj_Object
|
|||||||
enum RefTag
|
enum RefTag
|
||||||
{
|
{
|
||||||
RefTag_First = TObj_Object::RefTag_Last,
|
RefTag_First = TObj_Object::RefTag_Last,
|
||||||
RefTag_Other, //!< here we test only one refrence to other
|
RefTag_Other, //!< here we test only one reference to other
|
||||||
RefTag_Last = RefTag_First + 100
|
RefTag_Last = RefTag_First + 100
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ public:
|
|||||||
|
|
||||||
//! Build the AISObject (if null) or update it.
|
//! Build the AISObject (if null) or update it.
|
||||||
//! No compute is done.
|
//! No compute is done.
|
||||||
//! Returns <True> if informations was found
|
//! Returns <True> if information was found
|
||||||
//! and AISObject updated.
|
//! and AISObject updated.
|
||||||
Standard_EXPORT virtual Standard_Boolean Update (const TDF_Label& aLabel, Handle(AIS_InteractiveObject)& anAISObject) Standard_OVERRIDE;
|
Standard_EXPORT virtual Standard_Boolean Update (const TDF_Label& aLabel, Handle(AIS_InteractiveObject)& anAISObject) Standard_OVERRIDE;
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ public:
|
|||||||
|
|
||||||
//! Build the AISObject (if null) or update it.
|
//! Build the AISObject (if null) or update it.
|
||||||
//! No compute is done.
|
//! No compute is done.
|
||||||
//! Returns <True> if informations was found
|
//! Returns <True> if information was found
|
||||||
//! and AISObject updated.
|
//! and AISObject updated.
|
||||||
Standard_EXPORT virtual Standard_Boolean Update (const TDF_Label& aLabel, Handle(AIS_InteractiveObject)& anAISObject) Standard_OVERRIDE;
|
Standard_EXPORT virtual Standard_Boolean Update (const TDF_Label& aLabel, Handle(AIS_InteractiveObject)& anAISObject) Standard_OVERRIDE;
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ public:
|
|||||||
|
|
||||||
//! Build the AISObject (if null) or update it.
|
//! Build the AISObject (if null) or update it.
|
||||||
//! No compute is done.
|
//! No compute is done.
|
||||||
//! Returns <True> if informations was found
|
//! Returns <True> if information was found
|
||||||
//! and AISObject updated.
|
//! and AISObject updated.
|
||||||
Standard_EXPORT virtual Standard_Boolean Update (const TDF_Label& aLabel, Handle(AIS_InteractiveObject)& anAISObject) Standard_OVERRIDE;
|
Standard_EXPORT virtual Standard_Boolean Update (const TDF_Label& aLabel, Handle(AIS_InteractiveObject)& anAISObject) Standard_OVERRIDE;
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ public:
|
|||||||
|
|
||||||
//! Build the AISObject (if null) or update it.
|
//! Build the AISObject (if null) or update it.
|
||||||
//! No compute is done.
|
//! No compute is done.
|
||||||
//! Returns <True> if informations was found
|
//! Returns <True> if information was found
|
||||||
//! and AISObject updated.
|
//! and AISObject updated.
|
||||||
Standard_EXPORT virtual Standard_Boolean Update (const TDF_Label& aLabel, Handle(AIS_InteractiveObject)& anAISObject) Standard_OVERRIDE;
|
Standard_EXPORT virtual Standard_Boolean Update (const TDF_Label& aLabel, Handle(AIS_InteractiveObject)& anAISObject) Standard_OVERRIDE;
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ public:
|
|||||||
|
|
||||||
//! Build the AISObject (if null) or update it.
|
//! Build the AISObject (if null) or update it.
|
||||||
//! No compute is done.
|
//! No compute is done.
|
||||||
//! Returns <True> if informations was found
|
//! Returns <True> if information was found
|
||||||
//! and AISObject updated.
|
//! and AISObject updated.
|
||||||
Standard_EXPORT virtual Standard_Boolean Update (const TDF_Label& aLabel, Handle(AIS_InteractiveObject)& anAISObject) Standard_OVERRIDE;
|
Standard_EXPORT virtual Standard_Boolean Update (const TDF_Label& aLabel, Handle(AIS_InteractiveObject)& anAISObject) Standard_OVERRIDE;
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ public:
|
|||||||
|
|
||||||
//! Build the AISObject (if null) or update it.
|
//! Build the AISObject (if null) or update it.
|
||||||
//! No compute is done.
|
//! No compute is done.
|
||||||
//! Returns <True> if informations was found
|
//! Returns <True> if information was found
|
||||||
//! and AISObject updated.
|
//! and AISObject updated.
|
||||||
Standard_EXPORT virtual Standard_Boolean Update (const TDF_Label& aLabel, Handle(AIS_InteractiveObject)& anAISObject) Standard_OVERRIDE;
|
Standard_EXPORT virtual Standard_Boolean Update (const TDF_Label& aLabel, Handle(AIS_InteractiveObject)& anAISObject) Standard_OVERRIDE;
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
//! It contains :
|
//! It contains :
|
||||||
//!
|
//!
|
||||||
//! * The ShapeEnum enumeration to describe the
|
//! * The ShapeEnum enumeration to describe the
|
||||||
//! differents topological shapes.
|
//! different topological shapes.
|
||||||
//!
|
//!
|
||||||
//! * The Orientation enumeration to describe the
|
//! * The Orientation enumeration to describe the
|
||||||
//! orientation of a topological shape.
|
//! orientation of a topological shape.
|
||||||
|
@ -95,7 +95,7 @@ public:
|
|||||||
DEFINE_STANDARD_ALLOC
|
DEFINE_STANDARD_ALLOC
|
||||||
|
|
||||||
|
|
||||||
//! Creates an empty explorer, becomes usefull after Init.
|
//! Creates an empty explorer, becomes useful after Init.
|
||||||
Standard_EXPORT TopExp_Explorer();
|
Standard_EXPORT TopExp_Explorer();
|
||||||
|
|
||||||
//! Creates an Explorer on the Shape <S>.
|
//! Creates an Explorer on the Shape <S>.
|
||||||
|
@ -14,13 +14,8 @@
|
|||||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||||
// commercial license or contractual agreement.
|
// commercial license or contractual agreement.
|
||||||
|
|
||||||
// Modifed: Portage NT 7-5-97 DPF (strcasecmp)
|
|
||||||
|
|
||||||
#include <TopOpeBRep.hxx>
|
#include <TopOpeBRep.hxx>
|
||||||
|
|
||||||
//#ifdef _WIN32
|
|
||||||
//#define strcasecmp strcmp Already defined
|
|
||||||
//#endif
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : Print
|
//function : Print
|
||||||
//purpose :
|
//purpose :
|
||||||
|
@ -115,7 +115,7 @@ public:
|
|||||||
Standard_EXPORT void GapFiller (const Handle(TopOpeBRepDS_HDataStructure)& HDS) const;
|
Standard_EXPORT void GapFiller (const Handle(TopOpeBRepDS_HDataStructure)& HDS) const;
|
||||||
|
|
||||||
//! Update the data structure with relevant
|
//! Update the data structure with relevant
|
||||||
//! informations deduced from the intersections.
|
//! information deduced from the intersections.
|
||||||
//!
|
//!
|
||||||
//! Shells containing an intersected face.
|
//! Shells containing an intersected face.
|
||||||
//! Wires containing an intersected edge.
|
//! Wires containing an intersected edge.
|
||||||
@ -130,7 +130,7 @@ public:
|
|||||||
Standard_EXPORT void Checker (const Handle(TopOpeBRepDS_HDataStructure)& HDS) const;
|
Standard_EXPORT void Checker (const Handle(TopOpeBRepDS_HDataStructure)& HDS) const;
|
||||||
|
|
||||||
//! Update the data structure with relevant
|
//! Update the data structure with relevant
|
||||||
//! informations deduced from the intersections 2d.
|
//! information deduced from the intersections 2d.
|
||||||
//!
|
//!
|
||||||
//! Shells containing an intersected face.
|
//! Shells containing an intersected face.
|
||||||
//! Wires containing an intersected edge.
|
//! Wires containing an intersected edge.
|
||||||
|
@ -126,8 +126,8 @@ void TopOpeBRep_EdgesFiller::Insert(const TopoDS_Shape& E1,const TopoDS_Shape& E
|
|||||||
// xpu : 080498 : CTS20072 (e12,e3,p8)
|
// xpu : 080498 : CTS20072 (e12,e3,p8)
|
||||||
// edgesintersector called for tolerances = 0.
|
// edgesintersector called for tolerances = 0.
|
||||||
// facesintersector called for greater tolerances
|
// facesintersector called for greater tolerances
|
||||||
// we assume facesintersector's ouput data to be valid
|
// we assume facesintersector's output data to be valid
|
||||||
// and we use it for correcting edgesintersector's ouput data
|
// and we use it for correcting edgesintersector's output data
|
||||||
TopOpeBRepDS_ListIteratorOfListOfInterference itloI1( myPDS->ShapeInterferences(E1) );
|
TopOpeBRepDS_ListIteratorOfListOfInterference itloI1( myPDS->ShapeInterferences(E1) );
|
||||||
Standard_Integer G; TopOpeBRepDS_Kind K;
|
Standard_Integer G; TopOpeBRepDS_Kind K;
|
||||||
Standard_Boolean found = GetGeometry(itloI1,P2D,G,K);
|
Standard_Boolean found = GetGeometry(itloI1,P2D,G,K);
|
||||||
|
@ -132,7 +132,7 @@ public:
|
|||||||
//! of the 2 faces.
|
//! of the 2 faces.
|
||||||
Standard_EXPORT void GetESL (TopTools_ListOfShape& LES);
|
Standard_EXPORT void GetESL (TopTools_ListOfShape& LES);
|
||||||
|
|
||||||
//! calling the followings ProcessVPIonR and ProcessVPonR.
|
//! calling the following ProcessVPIonR and ProcessVPonR.
|
||||||
Standard_EXPORT void ProcessVPR (TopOpeBRep_FacesFiller& FF, const TopOpeBRep_VPointInter& VP);
|
Standard_EXPORT void ProcessVPR (TopOpeBRep_FacesFiller& FF, const TopOpeBRep_VPointInter& VP);
|
||||||
|
|
||||||
//! processing ProcessVPonR for VPI.
|
//! processing ProcessVPonR for VPI.
|
||||||
|
@ -114,7 +114,7 @@ Standard_Boolean TopOpeBRep_FacesFiller::KeepRLine
|
|||||||
// look for a vpoint with transition IN/OUT or OUT/IN
|
// look for a vpoint with transition IN/OUT or OUT/IN
|
||||||
TopOpeBRep_VPointInterIterator VPI; VPI.Init(L,checkkeep);
|
TopOpeBRep_VPointInterIterator VPI; VPI.Init(L,checkkeep);
|
||||||
|
|
||||||
// With LineContructor, each RLine restricted by its vpbounds
|
// With LineConstructor, each RLine restricted by its vpbounds
|
||||||
// has its restrictions IN or ON the two faces
|
// has its restrictions IN or ON the two faces
|
||||||
Standard_Boolean keeprline;
|
Standard_Boolean keeprline;
|
||||||
Standard_Boolean isedge1 = L.ArcIsEdge(1);
|
Standard_Boolean isedge1 = L.ArcIsEdge(1);
|
||||||
|
@ -1095,10 +1095,10 @@ static Standard_Integer OneShapeIsHalfSpace(const TopoDS_Shape& S1,const TopoDS_
|
|||||||
{
|
{
|
||||||
// if one solid has shell consisted of only a face but other one has valid closed
|
// if one solid has shell consisted of only a face but other one has valid closed
|
||||||
// shell we can detect current boolean operation as operation with half space object.
|
// shell we can detect current boolean operation as operation with half space object.
|
||||||
// if shell of second solid is not valid too we cann't detect what kind of objects
|
// if shell of second solid is not valid too we can't detect what kind of objects
|
||||||
// we try to perform. in this case we do nothing and just return.
|
// we try to perform. in this case we do nothing and just return.
|
||||||
|
|
||||||
// but before we must avoid shperes, toruses and solids with a face biult on spherical surfaces
|
// but before we must avoid spheres, toruses and solids with a face built on spherical surfaces
|
||||||
// of revolution (SSRFS) - solids with shell of one face:
|
// of revolution (SSRFS) - solids with shell of one face:
|
||||||
// sphere (U: 0, 2PI) (V: -PI/2, PI/2),
|
// sphere (U: 0, 2PI) (V: -PI/2, PI/2),
|
||||||
// torus (U: 0, 2PI) (V: 0, 2PI).
|
// torus (U: 0, 2PI) (V: 0, 2PI).
|
||||||
@ -1205,7 +1205,7 @@ static TopoDS_Solid GetNewSolid(const TopoDS_Shape& S, TopoDS_Face& F)
|
|||||||
{
|
{
|
||||||
// "new solid" is a new halfspace solid consists of two faces now: the first face is a face
|
// "new solid" is a new halfspace solid consists of two faces now: the first face is a face
|
||||||
// used to build halfspace solid and the second face is a new "face on infinity" specially
|
// used to build halfspace solid and the second face is a new "face on infinity" specially
|
||||||
// created to constuct correct bounding box around halfspace solid with bounds more wide than
|
// created to construct correct bounding box around halfspace solid with bounds more wide than
|
||||||
// previous one.
|
// previous one.
|
||||||
|
|
||||||
// the following algorithm is used:
|
// the following algorithm is used:
|
||||||
|
@ -1030,7 +1030,7 @@ void TopOpeBRep_FacesFiller::ProcessVPonR
|
|||||||
// alors qu'il est dessus)
|
// alors qu'il est dessus)
|
||||||
|
|
||||||
TopOpeBRepDS_Transition tOOedge;
|
TopOpeBRepDS_Transition tOOedge;
|
||||||
// distinguish wether OOedge is the edge on which geometric line lies.
|
// distinguish whether OOedge is the edge on which geometric line lies.
|
||||||
// OOedge == edge(line) ==> tOOedge = f(orientation of <edge> in <Face> FORWARD)
|
// OOedge == edge(line) ==> tOOedge = f(orientation of <edge> in <Face> FORWARD)
|
||||||
// OOedge != edge(line) ==> tOOedge = f(orientation of <Face>)
|
// OOedge != edge(line) ==> tOOedge = f(orientation of <Face>)
|
||||||
Standard_Real OOpar1,OOpar2; Standard_Boolean isonper; FDS_LOIinfsup((*myDS),OOedge,OOparedge,PVKind,PVIndex,
|
Standard_Real OOpar1,OOpar2; Standard_Boolean isonper; FDS_LOIinfsup((*myDS),OOedge,OOparedge,PVKind,PVIndex,
|
||||||
|
@ -113,7 +113,7 @@ public:
|
|||||||
|
|
||||||
//! Merges the two edges <S1> and <S2> keeping the
|
//! Merges the two edges <S1> and <S2> keeping the
|
||||||
//! parts in each edge of states <TB1> and <TB2>.
|
//! parts in each edge of states <TB1> and <TB2>.
|
||||||
//! Booleans onA, onB, onAB indicate wheter parts of edges
|
//! Booleans onA, onB, onAB indicate whether parts of edges
|
||||||
//! found as state ON respectively on first, second, and both
|
//! found as state ON respectively on first, second, and both
|
||||||
//! shapes must be (or not) built.
|
//! shapes must be (or not) built.
|
||||||
Standard_EXPORT void MergeEdges (const TopTools_ListOfShape& L1, const TopAbs_State TB1, const TopTools_ListOfShape& L2, const TopAbs_State TB2, const Standard_Boolean onA = Standard_False, const Standard_Boolean onB = Standard_False, const Standard_Boolean onAB = Standard_False);
|
Standard_EXPORT void MergeEdges (const TopTools_ListOfShape& L1, const TopAbs_State TB1, const TopTools_ListOfShape& L2, const TopAbs_State TB2, const Standard_Boolean onA = Standard_False, const Standard_Boolean onB = Standard_False, const Standard_Boolean onAB = Standard_False);
|
||||||
|
@ -516,7 +516,7 @@ void TopOpeBRepBuild_Builder1::GFillFaceSameDomSFS(const TopoDS_Shape& FOR,
|
|||||||
mySDEdgeMap.Clear();
|
mySDEdgeMap.Clear();
|
||||||
mySourceShapes.Clear();
|
mySourceShapes.Clear();
|
||||||
|
|
||||||
//we process all same domain faces during cycling throught the Shape1
|
//we process all same domain faces during cycling through the Shape1
|
||||||
if(myDataStructure -> DS().AncestorRank(FOR) != 1)
|
if(myDataStructure -> DS().AncestorRank(FOR) != 1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -1214,7 +1214,7 @@ void TopOpeBRepBuild_Builder1::GWESMakeFaces(const TopoDS_Shape& FF,
|
|||||||
|
|
||||||
LOF.Clear(); LOF.Assign(corrLOF);
|
LOF.Clear(); LOF.Assign(corrLOF);
|
||||||
|
|
||||||
//corect face2d
|
//correct face2d
|
||||||
aLOFit.Initialize(corrLOF);
|
aLOFit.Initialize(corrLOF);
|
||||||
TopTools_ListOfShape corrLOF1;
|
TopTools_ListOfShape corrLOF1;
|
||||||
for(; aLOFit.More(); aLOFit.Next()) {
|
for(; aLOFit.More(); aLOFit.Next()) {
|
||||||
|
@ -164,7 +164,7 @@ void DumpMapOfShapeWithState (const Standard_Integer iP,
|
|||||||
|
|
||||||
TCollection_AsciiString an;//=postfix+prefix+cn;
|
TCollection_AsciiString an;//=postfix+prefix+cn;
|
||||||
an+=postfix; an+=prefix; an+=cn;
|
an+=postfix; an+=prefix; an+=cn;
|
||||||
printf(" -> Splitted Part IN : %s\n", an.ToCString());
|
printf(" -> Split Part IN : %s\n", an.ToCString());
|
||||||
cnt++;
|
cnt++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -179,7 +179,7 @@ void DumpMapOfShapeWithState (const Standard_Integer iP,
|
|||||||
|
|
||||||
TCollection_AsciiString an;//=postfix+prefix+cn;
|
TCollection_AsciiString an;//=postfix+prefix+cn;
|
||||||
an+=postfix; an+=prefix; an+=cn;
|
an+=postfix; an+=prefix; an+=cn;
|
||||||
printf(" -> Splitted Part OUT: %-s\n", an.ToCString());
|
printf(" -> Split Part OUT: %-s\n", an.ToCString());
|
||||||
cnt++;
|
cnt++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -194,7 +194,7 @@ void DumpMapOfShapeWithState (const Standard_Integer iP,
|
|||||||
|
|
||||||
TCollection_AsciiString an;//=postfix+prefix+cn;
|
TCollection_AsciiString an;//=postfix+prefix+cn;
|
||||||
an+=postfix; an+=prefix; an+=cn;
|
an+=postfix; an+=prefix; an+=cn;
|
||||||
printf(" -> Splitted Part ON : %s\n", an.ToCString());
|
printf(" -> Split Part ON : %s\n", an.ToCString());
|
||||||
cnt++;
|
cnt++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -708,13 +708,13 @@ void DumpMapOfShapeWithState (const Standard_Integer iP,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Usual case. The Edge was splitted onto several parts:
|
// Usual case. The Edge was split onto several parts:
|
||||||
TopTools_ListIteratorOfListOfShape aLIt(aLNew);
|
TopTools_ListIteratorOfListOfShape aLIt(aLNew);
|
||||||
for (; aLIt.More(); aLIt.Next()) {
|
for (; aLIt.More(); aLIt.Next()) {
|
||||||
const TopoDS_Shape& aS = aLIt.Value();
|
const TopoDS_Shape& aS = aLIt.Value();
|
||||||
aState = aDataMapOfShapeState(aS);
|
aState = aDataMapOfShapeState(aS);
|
||||||
////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////
|
||||||
// ** When aState==TopAbs_IN it is not evidence that it is realy so.
|
// ** When aState==TopAbs_IN it is not evidence that it is really so.
|
||||||
// There are some cases when JYL does not define ON parts completely.
|
// There are some cases when JYL does not define ON parts completely.
|
||||||
// So, as we want to have right states, we have to do it ourselves.
|
// So, as we want to have right states, we have to do it ourselves.
|
||||||
// PKV Mon 25 Oct 1999
|
// PKV Mon 25 Oct 1999
|
||||||
|
@ -639,11 +639,11 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
|
|||||||
if (!ok) return;
|
if (!ok) return;
|
||||||
// ngFS, ngFOR, xxFOR :
|
// ngFS, ngFOR, xxFOR :
|
||||||
Standard_Real tolON = Max(tolFS,tolEG);
|
Standard_Real tolON = Max(tolFS,tolEG);
|
||||||
tolON *= 1.e2;//*****CAREFULL***** : xpu040998, cto 904 A3
|
tolON *= 1.e2;//*****CAREFUL***** : xpu040998, cto 904 A3
|
||||||
gp_Vec ngFS; ok = FUN_tool_nggeomF(parEG,EG,FS,ngFS,tolON);
|
gp_Vec ngFS; ok = FUN_tool_nggeomF(parEG,EG,FS,ngFS,tolON);
|
||||||
if (!ok) return;
|
if (!ok) return;
|
||||||
tolON = Max(tolFOR,tolEG);
|
tolON = Max(tolFOR,tolEG);
|
||||||
tolON *= 1.e2;//*****CAREFULL***** : xpu040998, cto 904 A3
|
tolON *= 1.e2;//*****CAREFUL***** : xpu040998, cto 904 A3
|
||||||
gp_Vec ngFOR; ok = FUN_tool_nggeomF(parEG,EG,FOR,ngFOR,tolON);
|
gp_Vec ngFOR; ok = FUN_tool_nggeomF(parEG,EG,FOR,ngFOR,tolON);
|
||||||
if (!ok) return;
|
if (!ok) return;
|
||||||
gp_Dir xxFOR; ok = FUN_tool_getxx(FOR,EG,parEG,ngFOR,xxFOR);
|
gp_Dir xxFOR; ok = FUN_tool_getxx(FOR,EG,parEG,ngFOR,xxFOR);
|
||||||
@ -1057,7 +1057,7 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
|
|||||||
if (!ok) return; //nyiRAISE
|
if (!ok) return; //nyiRAISE
|
||||||
Standard_Real tolON = Max(tolEG,tolFOR);//xpu291098 cto900L7(f7,e7on)
|
Standard_Real tolON = Max(tolEG,tolFOR);//xpu291098 cto900L7(f7,e7on)
|
||||||
//xpu051198 PRO12953(f6,e4on)
|
//xpu051198 PRO12953(f6,e4on)
|
||||||
tolON *= 1.e2;//*****CAREFULL***** : xpu040998, cto 904 A3
|
tolON *= 1.e2;//*****CAREFUL***** : xpu040998, cto 904 A3
|
||||||
Standard_Boolean eONFOR = (d < tolON);
|
Standard_Boolean eONFOR = (d < tolON);
|
||||||
if (!eONFOR) return;
|
if (!eONFOR) return;
|
||||||
}
|
}
|
||||||
|
@ -291,7 +291,7 @@ TopOpeBRepBuild_CorrectFace2d::TopOpeBRepBuild_CorrectFace2d()
|
|||||||
myCurrentWire = TopoDS::Wire(aFExp.Current());
|
myCurrentWire = TopoDS::Wire(aFExp.Current());
|
||||||
priz=MakeRightWire ();
|
priz=MakeRightWire ();
|
||||||
if (priz) {
|
if (priz) {
|
||||||
// This myFace contais a wire (myCurrentWire) that is not closed.
|
// This myFace contains a wire (myCurrentWire) that is not closed.
|
||||||
myIsDone=Standard_True;
|
myIsDone=Standard_True;
|
||||||
myErrorStatus=3;
|
myErrorStatus=3;
|
||||||
return;
|
return;
|
||||||
@ -564,7 +564,7 @@ TopOpeBRepBuild_CorrectFace2d::TopOpeBRepBuild_CorrectFace2d()
|
|||||||
if (!myCopyAvoidMap.Contains(myCurrentWire)) {
|
if (!myCopyAvoidMap.Contains(myCurrentWire)) {
|
||||||
priz=ConnectWire (myCopyFace, myCopyAvoidMap, Standard_False);
|
priz=ConnectWire (myCopyFace, myCopyAvoidMap, Standard_False);
|
||||||
if (priz) {
|
if (priz) {
|
||||||
// This myFace contais a wire (myCurrentWire) that is not closed.
|
// This myFace contains a wire (myCurrentWire) that is not closed.
|
||||||
myIsDone=Standard_False;
|
myIsDone=Standard_False;
|
||||||
myErrorStatus=3;
|
myErrorStatus=3;
|
||||||
return;
|
return;
|
||||||
|
@ -336,10 +336,10 @@ void TopOpeBRepBuild_Builder::UpdateSplitAndMerged(const TopTools_DataMapOfInte
|
|||||||
// For each edge of the MapSplit
|
// For each edge of the MapSplit
|
||||||
if ( e.ShapeType() == TopAbs_EDGE ) {
|
if ( e.ShapeType() == TopAbs_EDGE ) {
|
||||||
|
|
||||||
// get the list of splitted edges.
|
// get the list of split edges.
|
||||||
TopTools_ListOfShape& LstSplit = ChangeSplit(e,state);
|
TopTools_ListOfShape& LstSplit = ChangeSplit(e,state);
|
||||||
|
|
||||||
// for each edge of the list of splitted edges
|
// for each edge of the list of split edges
|
||||||
TopTools_ListIteratorOfListOfShape itSplitEdg;
|
TopTools_ListIteratorOfListOfShape itSplitEdg;
|
||||||
itSplitEdg.Initialize(LstSplit);
|
itSplitEdg.Initialize(LstSplit);
|
||||||
while ( itSplitEdg.More()) {
|
while ( itSplitEdg.More()) {
|
||||||
@ -391,10 +391,10 @@ void TopOpeBRepBuild_Builder::UpdateSplitAndMerged(const TopTools_DataMapOfInte
|
|||||||
}
|
}
|
||||||
// For each face of the MapSplit
|
// For each face of the MapSplit
|
||||||
else if ( e.ShapeType() == TopAbs_FACE ) {
|
else if ( e.ShapeType() == TopAbs_FACE ) {
|
||||||
// get the list of splitted faces.
|
// get the list of split faces.
|
||||||
TopTools_ListOfShape& LstSplit = ChangeSplit(e,state);
|
TopTools_ListOfShape& LstSplit = ChangeSplit(e,state);
|
||||||
|
|
||||||
// for each face of the list of splitted faces
|
// for each face of the list of split faces
|
||||||
TopTools_ListIteratorOfListOfShape itSplitFac;
|
TopTools_ListIteratorOfListOfShape itSplitFac;
|
||||||
itSplitFac.Initialize(LstSplit);
|
itSplitFac.Initialize(LstSplit);
|
||||||
while ( itSplitFac.More()) {
|
while ( itSplitFac.More()) {
|
||||||
|
@ -1027,7 +1027,7 @@ static Standard_Boolean FUN_SplitEvisoONperiodicF(const Handle(TopOpeBRepDS_HDat
|
|||||||
// modifies : myDataStructure
|
// modifies : myDataStructure
|
||||||
// Scans among the interferences attached to faces for FEI with
|
// Scans among the interferences attached to faces for FEI with
|
||||||
// support <FS> = cylinder, geometry <EG>; adds pcurve on <FS>
|
// support <FS> = cylinder, geometry <EG>; adds pcurve on <FS>
|
||||||
// for edge <EG> if necessay.
|
// for edge <EG> if necessary.
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
void TopOpeBRepBuild_Builder::SplitEvisoONperiodicF()
|
void TopOpeBRepBuild_Builder::SplitEvisoONperiodicF()
|
||||||
{
|
{
|
||||||
|
@ -309,7 +309,7 @@ void TopOpeBRepBuild_ShapeSet::FindNeighbours()
|
|||||||
{
|
{
|
||||||
while (mySubShapeExplorer.More()) {
|
while (mySubShapeExplorer.More()) {
|
||||||
|
|
||||||
// l = list of edges neighbour of edge myCurrentShape trough
|
// l = list of edges neighbour of edge myCurrentShape through
|
||||||
// the vertex mySubShapeExplorer.Current(), which is a vertex of the
|
// the vertex mySubShapeExplorer.Current(), which is a vertex of the
|
||||||
// edge myCurrentShape.
|
// edge myCurrentShape.
|
||||||
const TopoDS_Shape& V = mySubShapeExplorer.Current();
|
const TopoDS_Shape& V = mySubShapeExplorer.Current();
|
||||||
|
@ -184,7 +184,7 @@ void TopOpeBRepBuild_WireEdgeSet::FindNeighbours()
|
|||||||
{
|
{
|
||||||
while (mySubShapeExplorer.More()) {
|
while (mySubShapeExplorer.More()) {
|
||||||
|
|
||||||
// l = list of edges neighbour of edge myCurrentShape trough
|
// l = list of edges neighbour of edge myCurrentShape through
|
||||||
// the vertex mySubShapeExplorer.Current(), which is a vertex of the
|
// the vertex mySubShapeExplorer.Current(), which is a vertex of the
|
||||||
// edge myCurrentShape.
|
// edge myCurrentShape.
|
||||||
const TopoDS_Shape& V = mySubShapeExplorer.Current();
|
const TopoDS_Shape& V = mySubShapeExplorer.Current();
|
||||||
|
@ -461,7 +461,7 @@ Standard_EXPORT void FUN_purgeDSonSE(const Handle(TopOpeBRepDS_HDataStructure)&
|
|||||||
{
|
{
|
||||||
// recall : (I1,I2) / I1=(T(F),G,S=edge), I2=(T(F),G,S=F) describes a 3d interference
|
// recall : (I1,I2) / I1=(T(F),G,S=edge), I2=(T(F),G,S=F) describes a 3d interference
|
||||||
//
|
//
|
||||||
// purpose : attached to EIX (section egde SE), I=(T(Fsdm),G,S) /
|
// purpose : attached to EIX (section edge SE), I=(T(Fsdm),G,S) /
|
||||||
// Fsdm shares same domain with Fanc ancestor face of SE
|
// Fsdm shares same domain with Fanc ancestor face of SE
|
||||||
// => SE has split ON near G =>
|
// => SE has split ON near G =>
|
||||||
// I'=(T(Fsdm),G,S=Fsdm) gives bad information (3d information whereas
|
// I'=(T(Fsdm),G,S=Fsdm) gives bad information (3d information whereas
|
||||||
|
@ -71,7 +71,7 @@ public:
|
|||||||
//! the faulty shapes (edge,wire,face) to <MshNOK>.
|
//! the faulty shapes (edge,wire,face) to <MshNOK>.
|
||||||
//! <FF> is a face descendant of <F>.
|
//! <FF> is a face descendant of <F>.
|
||||||
//! <MWisOld>(wire) = 1 if wire is wire of <F>
|
//! <MWisOld>(wire) = 1 if wire is wire of <F>
|
||||||
//! 0 wire results from <F>'s wire splitted.
|
//! 0 wire results from <F>'s wire split.
|
||||||
//! returns false if purge fails
|
//! returns false if purge fails
|
||||||
Standard_EXPORT static Standard_Boolean PurgeClosingEdges (const TopoDS_Face& F, const TopoDS_Face& FF, const TopTools_DataMapOfShapeInteger& MWisOld, TopTools_IndexedMapOfOrientedShape& MshNOK);
|
Standard_EXPORT static Standard_Boolean PurgeClosingEdges (const TopoDS_Face& F, const TopoDS_Face& FF, const TopTools_DataMapOfShapeInteger& MWisOld, TopTools_IndexedMapOfOrientedShape& MshNOK);
|
||||||
|
|
||||||
|
@ -155,7 +155,7 @@ Standard_Integer TopOpeBRepTool_CLASSI::ClassiBnd2d(const TopoDS_Shape& S1,const
|
|||||||
// diff = Umin<ii> - Umax<jj> : k = 1
|
// diff = Umin<ii> - Umax<jj> : k = 1
|
||||||
// diff = Vmin<ii> - Vmax<jj> : k = 3
|
// diff = Vmin<ii> - Vmax<jj> : k = 3
|
||||||
Standard_Real diff = UV(ii,k) - UV(jj,k+1);
|
Standard_Real diff = UV(ii,k) - UV(jj,k+1);
|
||||||
// IMPORTANT : for splitted faces sharing same edge, use
|
// IMPORTANT : for split faces sharing same edge, use
|
||||||
// chklarge = True.
|
// chklarge = True.
|
||||||
Standard_Boolean disjoint = chklarge ? (diff >= -tol) : (diff > 0.);
|
Standard_Boolean disjoint = chklarge ? (diff >= -tol) : (diff > 0.);
|
||||||
if (disjoint) return DIFF;
|
if (disjoint) return DIFF;
|
||||||
|
@ -455,9 +455,9 @@ void TopOpeBRepTool_FuseEdges::Perform()
|
|||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : BuildListConnexEdge
|
//function : BuildListConnexEdge
|
||||||
//purpose : giving one edge, build the list of connex edges which have
|
//purpose : giving one edge, build the list of connex edges which have
|
||||||
// vertices that have only two connex edges. All the edges that are addes
|
// vertices that have only two connex edges. All the edges that are added
|
||||||
// to the list must be added also to the mapUniq, in order for the caller
|
// to the list must be added also to the mapUniq, in order for the caller
|
||||||
// to not treat again theses edges.
|
// to not treat again these edges.
|
||||||
// This list is always oriented in the "Forward" direction.
|
// This list is always oriented in the "Forward" direction.
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
|
||||||
@ -569,7 +569,7 @@ Standard_Boolean TopOpeBRepTool_FuseEdges::NextConnexEdge(const TopoDS_Vertex& t
|
|||||||
itFac1.Next();
|
itFac1.Next();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 3rd condition : same suport
|
// 3rd condition : same support
|
||||||
if (HasConnex) {
|
if (HasConnex) {
|
||||||
HasConnex = SameSupport(TopoDS::Edge(theEdge),TopoDS::Edge(theEdgeConnex));
|
HasConnex = SameSupport(TopoDS::Edge(theEdge),TopoDS::Edge(theEdgeConnex));
|
||||||
}
|
}
|
||||||
|
@ -206,9 +206,9 @@ Standard_Boolean TopOpeBRepTool::PurgeClosingEdges(const TopoDS_Face& Fin, const
|
|||||||
TopTools_IndexedMapOfOrientedShape& MshNOK)
|
TopTools_IndexedMapOfOrientedShape& MshNOK)
|
||||||
{
|
{
|
||||||
// Fin is the original face
|
// Fin is the original face
|
||||||
// FF is the splitted face
|
// FF is the split face
|
||||||
|
|
||||||
// prequesitory : splitted edges, of edge ancestor a closing edge
|
// prequesitory : split edges, of edge ancestor a closing edge
|
||||||
// keep in memory the geometry of the ancestor edge,
|
// keep in memory the geometry of the ancestor edge,
|
||||||
// they answer True to BRep_Tool::IsClosed.
|
// they answer True to BRep_Tool::IsClosed.
|
||||||
// elsewhere : we have to get this information using geometric
|
// elsewhere : we have to get this information using geometric
|
||||||
|
@ -111,7 +111,7 @@ TopoDS_Shape& TopOpeBRepTool_PurgeInternalEdges::Shape()
|
|||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : BuildList
|
//function : BuildList
|
||||||
//purpose : Build the map of faces with the list of inernal edges.
|
//purpose : Build the map of faces with the list of internal edges.
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
|
||||||
void TopOpeBRepTool_PurgeInternalEdges::BuildList()
|
void TopOpeBRepTool_PurgeInternalEdges::BuildList()
|
||||||
|
@ -252,7 +252,7 @@ Standard_Boolean TopOpeBRepTool_REGUS::WireToFace(const TopoDS_Face& Fanc, const
|
|||||||
|
|
||||||
Standard_Boolean TopOpeBRepTool_REGUS::SplitF(const TopoDS_Face& Fanc, TopTools_ListOfShape& FSplits)
|
Standard_Boolean TopOpeBRepTool_REGUS::SplitF(const TopoDS_Face& Fanc, TopTools_ListOfShape& FSplits)
|
||||||
{
|
{
|
||||||
// prequesitory : All edges have already been splitted, there is no
|
// prequesitory : All edges have already been split, there is no
|
||||||
// internal vertex on edge, except for internal edge.
|
// internal vertex on edge, except for internal edge.
|
||||||
TopAbs_Orientation oAnc = Fanc.Orientation();
|
TopAbs_Orientation oAnc = Fanc.Orientation();
|
||||||
TopoDS_Shape aLocalShapeFromFace = Fanc.Oriented(TopAbs_FORWARD);
|
TopoDS_Shape aLocalShapeFromFace = Fanc.Oriented(TopAbs_FORWARD);
|
||||||
@ -699,7 +699,7 @@ Standard_Boolean TopOpeBRepTool_REGUS::NearestF(const TopoDS_Edge& e, const TopT
|
|||||||
ffound.Nullify();
|
ffound.Nullify();
|
||||||
TopoDS_Face fref = TopoDS::Face(myf);
|
TopoDS_Face fref = TopoDS::Face(myf);
|
||||||
|
|
||||||
// Give us egde <e>, and a reference face <fref> (= <myf>)
|
// Give us edge <e>, and a reference face <fref> (= <myf>)
|
||||||
// - parameter on <e> = <pare>.
|
// - parameter on <e> = <pare>.
|
||||||
// - xxi = tangent fo face fi at pnt(e,pare) oriented INSIDE 2d(fi)
|
// - xxi = tangent fo face fi at pnt(e,pare) oriented INSIDE 2d(fi)
|
||||||
// normal to tge = tg(e,pare).
|
// normal to tge = tg(e,pare).
|
||||||
|
@ -285,13 +285,13 @@ Standard_Boolean TopOpeBRepTool_REGUW::MapS()
|
|||||||
|
|
||||||
// Prequesitories :
|
// Prequesitories :
|
||||||
// 0) an edge with an INTERNAL vertex binded in <mapVedges> must be
|
// 0) an edge with an INTERNAL vertex binded in <mapVedges> must be
|
||||||
// splitted
|
// split
|
||||||
// After splitting such edges, we deal only with FORWARD and
|
// After splitting such edges, we deal only with FORWARD and
|
||||||
// REVERSED vertices.
|
// REVERSED vertices.
|
||||||
// 1) a vertex belonging to a CLOSING edge is represented by 2 distinct
|
// 1) a vertex belonging to a CLOSING edge is represented by 2 distinct
|
||||||
// 2d points in the UV space.
|
// 2d points in the UV space.
|
||||||
// 2) a vertex belonging to a DEGENERATED edge has at least 2 UV rep.
|
// 2) a vertex belonging to a DEGENERATED edge has at least 2 UV rep.
|
||||||
// (if the original degenerated edge has been splitted).
|
// (if the original degenerated edge has been split).
|
||||||
// the bounds of the degenerated edge share the same TShape.
|
// the bounds of the degenerated edge share the same TShape.
|
||||||
// 3) a CLOSED edge binds the same vertex oriented FORWARD and REVERSED.
|
// 3) a CLOSED edge binds the same vertex oriented FORWARD and REVERSED.
|
||||||
|
|
||||||
@ -789,7 +789,7 @@ Standard_Boolean TopOpeBRepTool_REGUW::REGU(const Standard_Integer istep,
|
|||||||
}//ite(loEcur)
|
}//ite(loEcur)
|
||||||
FINI = (nite == nE);
|
FINI = (nite == nE);
|
||||||
|
|
||||||
// if Scur = <currentW> gives only one new wire, and has no new splitted edges, <currentW>
|
// if Scur = <currentW> gives only one new wire, and has no new split edges, <currentW>
|
||||||
// is valid and unchanged.
|
// is valid and unchanged.
|
||||||
Standard_Boolean onewok = FINI && loW.IsEmpty() && !hasnewsplits;
|
Standard_Boolean onewok = FINI && loW.IsEmpty() && !hasnewsplits;
|
||||||
if (onewok){
|
if (onewok){
|
||||||
|
@ -211,7 +211,7 @@ Standard_Boolean TopOpeBRepTool::Regularize(const TopoDS_Face& theFace,
|
|||||||
// diff = Umin<ii> - Umax<jj> : k = 1
|
// diff = Umin<ii> - Umax<jj> : k = 1
|
||||||
// diff = Vmin<ii> - Vmax<jj> : k = 3
|
// diff = Vmin<ii> - Vmax<jj> : k = 3
|
||||||
Standard_Real diff = UV(ii,k) - UV(jj,k+1);
|
Standard_Real diff = UV(ii,k) - UV(jj,k+1);
|
||||||
// IMPORTANT : for splitted faces sharing same edge, use
|
// IMPORTANT : for split faces sharing same edge, use
|
||||||
// chklarge = True.
|
// chklarge = True.
|
||||||
disjoint = chklarge ? (diff >= -tol) : (diff > 0.);
|
disjoint = chklarge ? (diff >= -tol) : (diff > 0.);
|
||||||
if (disjoint) {ismaller = 1; return TopAbs_OUT;}
|
if (disjoint) {ismaller = 1; return TopAbs_OUT;}
|
||||||
@ -348,13 +348,13 @@ Standard_EXPORT Standard_Boolean FUN_tool_ClassifW(const TopoDS_Face& F,
|
|||||||
// Filling the map <mapWlow> : with (key + item) = new face,
|
// Filling the map <mapWlow> : with (key + item) = new face,
|
||||||
// item = (newface has holes) ? list of wires IN the wire key: empty list
|
// item = (newface has holes) ? list of wires IN the wire key: empty list
|
||||||
|
|
||||||
// prequesitory : <mapoldWnewW> binds (non splitted wire of <F>, emptylos)
|
// prequesitory : <mapoldWnewW> binds (non split wire of <F>, emptylos)
|
||||||
// (splitted wire of <F>, splits of the wire)
|
// (split wire of <F>, splits of the wire)
|
||||||
|
|
||||||
// Mapping :
|
// Mapping :
|
||||||
// --------
|
// --------
|
||||||
// Filling <oldW> : list of wires of <F>
|
// Filling <oldW> : list of wires of <F>
|
||||||
// Filling <mapWlow> : with (non-splitted old wire, emptylos),
|
// Filling <mapWlow> : with (non-split old wire, emptylos),
|
||||||
// (split of old wire, emptylos)
|
// (split of old wire, emptylos)
|
||||||
TopTools_ListOfShape oldW;
|
TopTools_ListOfShape oldW;
|
||||||
Standard_Integer noldW = mapoldWnewW.Extent();
|
Standard_Integer noldW = mapoldWnewW.Extent();
|
||||||
|
@ -85,26 +85,26 @@ public:
|
|||||||
|
|
||||||
//! classify shape S compared with shape SRef.
|
//! classify shape S compared with shape SRef.
|
||||||
//! AvoidS is not used in classification; AvoidS may be IsNull().
|
//! AvoidS is not used in classification; AvoidS may be IsNull().
|
||||||
//! (usefull to avoid ON or UNKNOWN state in special cases)
|
//! (useful to avoid ON or UNKNOWN state in special cases)
|
||||||
Standard_EXPORT TopAbs_State StateShapeShape (const TopoDS_Shape& S, const TopoDS_Shape& AvoidS, const TopoDS_Shape& SRef);
|
Standard_EXPORT TopAbs_State StateShapeShape (const TopoDS_Shape& S, const TopoDS_Shape& AvoidS, const TopoDS_Shape& SRef);
|
||||||
|
|
||||||
|
|
||||||
//! classify shape S compared with shape SRef.
|
//! classify shape S compared with shape SRef.
|
||||||
//! LAvoidS is list of S subshapes to avoid in classification
|
//! LAvoidS is list of S subshapes to avoid in classification
|
||||||
//! AvoidS is not used in classification; AvoidS may be IsNull().
|
//! AvoidS is not used in classification; AvoidS may be IsNull().
|
||||||
//! (usefull to avoid ON or UNKNOWN state in special cases)
|
//! (useful to avoid ON or UNKNOWN state in special cases)
|
||||||
Standard_EXPORT TopAbs_State StateShapeShape (const TopoDS_Shape& S, const TopTools_ListOfShape& LAvoidS, const TopoDS_Shape& SRef);
|
Standard_EXPORT TopAbs_State StateShapeShape (const TopoDS_Shape& S, const TopTools_ListOfShape& LAvoidS, const TopoDS_Shape& SRef);
|
||||||
|
|
||||||
|
|
||||||
//! classify shape S compared with reference shape.
|
//! classify shape S compared with reference shape.
|
||||||
//! AvoidS is not used in classification; AvoidS may be IsNull().
|
//! AvoidS is not used in classification; AvoidS may be IsNull().
|
||||||
//! (usefull to avoid ON or UNKNOWN state in special cases)
|
//! (useful to avoid ON or UNKNOWN state in special cases)
|
||||||
Standard_EXPORT TopAbs_State StateShapeReference (const TopoDS_Shape& S, const TopoDS_Shape& AvoidS);
|
Standard_EXPORT TopAbs_State StateShapeReference (const TopoDS_Shape& S, const TopoDS_Shape& AvoidS);
|
||||||
|
|
||||||
|
|
||||||
//! classify shape S compared with reference shape.
|
//! classify shape S compared with reference shape.
|
||||||
//! LAvoidS is list of S subshapes to avoid in classification
|
//! LAvoidS is list of S subshapes to avoid in classification
|
||||||
//! (usefull to avoid ON or UNKNOWN state in special cases)
|
//! (useful to avoid ON or UNKNOWN state in special cases)
|
||||||
Standard_EXPORT TopAbs_State StateShapeReference (const TopoDS_Shape& S, const TopTools_ListOfShape& LAvoidS);
|
Standard_EXPORT TopAbs_State StateShapeReference (const TopoDS_Shape& S, const TopTools_ListOfShape& LAvoidS);
|
||||||
|
|
||||||
Standard_EXPORT TopOpeBRepTool_SolidClassifier& ChangeSolidClassifier();
|
Standard_EXPORT TopOpeBRepTool_SolidClassifier& ChangeSolidClassifier();
|
||||||
|
@ -27,7 +27,7 @@ class TopOpeBRepTool_ShapeExplorer : public TopExp_Explorer
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//! Creates an empty explorer, becomes usefull after Init.
|
//! Creates an empty explorer, becomes useful after Init.
|
||||||
TopOpeBRepTool_ShapeExplorer() : myIndex(0)
|
TopOpeBRepTool_ShapeExplorer() : myIndex(0)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -61,7 +61,7 @@ public:
|
|||||||
|
|
||||||
Standard_EXPORT static void UVBOUNDS (const TopoDS_Face& F, Standard_Boolean& UPeri, Standard_Boolean& VPeri, Standard_Real& Umin, Standard_Real& Umax, Standard_Real& Vmin, Standard_Real& Vmax);
|
Standard_EXPORT static void UVBOUNDS (const TopoDS_Face& F, Standard_Boolean& UPeri, Standard_Boolean& VPeri, Standard_Real& Umin, Standard_Real& Umax, Standard_Real& Vmin, Standard_Real& Vmax);
|
||||||
|
|
||||||
//! ajust u,v values in UVBounds of the domain of the
|
//! adjust u,v values in UVBounds of the domain of the
|
||||||
//! geometric shape <S>, according to Uperiodicity and
|
//! geometric shape <S>, according to Uperiodicity and
|
||||||
//! VPeriodicity of the domain.
|
//! VPeriodicity of the domain.
|
||||||
//! <S> is assumed to be a face.
|
//! <S> is assumed to be a face.
|
||||||
@ -69,7 +69,7 @@ public:
|
|||||||
//! not periodic in U and/or V .
|
//! not periodic in U and/or V .
|
||||||
Standard_EXPORT static void AdjustOnPeriodic (const TopoDS_Shape& S, Standard_Real& u, Standard_Real& v);
|
Standard_EXPORT static void AdjustOnPeriodic (const TopoDS_Shape& S, Standard_Real& u, Standard_Real& v);
|
||||||
|
|
||||||
//! indicates wheter shape S1 is a closing shape on S2 or not.
|
//! indicates whether shape S1 is a closing shape on S2 or not.
|
||||||
Standard_EXPORT static Standard_Boolean Closed (const TopoDS_Shape& S1, const TopoDS_Shape& S2);
|
Standard_EXPORT static Standard_Boolean Closed (const TopoDS_Shape& S1, const TopoDS_Shape& S2);
|
||||||
|
|
||||||
Standard_EXPORT static Standard_Real PeriodizeParameter (const Standard_Real par, const TopoDS_Shape& EE, const TopoDS_Shape& FF);
|
Standard_EXPORT static Standard_Real PeriodizeParameter (const Standard_Real par, const TopoDS_Shape& EE, const TopoDS_Shape& FF);
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
Standard_EXPORT gp_Dir FUN_tool_nCinsideS(const gp_Dir& tgC,const gp_Dir& ngS)
|
Standard_EXPORT gp_Dir FUN_tool_nCinsideS(const gp_Dir& tgC,const gp_Dir& ngS)
|
||||||
{
|
{
|
||||||
// Give us a curve C on suface S,<parOnC>,a parameter
|
// Give us a curve C on surface S,<parOnC>,a parameter
|
||||||
// Purpose : compute normal vector to C,tangent to S at
|
// Purpose : compute normal vector to C,tangent to S at
|
||||||
// given point,oriented INSIDE S
|
// given point,oriented INSIDE S
|
||||||
// <tgC> : geometric tangent at point of <parOnC>
|
// <tgC> : geometric tangent at point of <parOnC>
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
// On Unix platforms:
|
// On Unix platforms:
|
||||||
// ------------------
|
// ------------------
|
||||||
// In method Read(Standard_IStream &IS), during the version
|
// In method Read(Standard_IStream &IS), during the version
|
||||||
// authentification we cut last '\r' in the line (which will
|
// authentication we cut last '\r' in the line (which will
|
||||||
// be present if file is in DOS coding)
|
// be present if file is in DOS coding)
|
||||||
|
|
||||||
#include <Message_ProgressScope.hxx>
|
#include <Message_ProgressScope.hxx>
|
||||||
|
@ -86,7 +86,7 @@ void TopTrans_CurveTransition::Compare (const Standard_Real Tole,
|
|||||||
S = O;
|
S = O;
|
||||||
}
|
}
|
||||||
|
|
||||||
// It is the first comparaison for this complex transition
|
// It is the first comparison for this complex transition
|
||||||
if (Init) {
|
if (Init) {
|
||||||
Init=Standard_False;
|
Init=Standard_False;
|
||||||
TgtFirst =T;
|
TgtFirst =T;
|
||||||
|
@ -62,8 +62,7 @@ public:
|
|||||||
//! of a Curve.
|
//! of a Curve.
|
||||||
Standard_EXPORT void Reset (const gp_Dir& Tgt, const gp_Dir& Norm, const Standard_Real Curv);
|
Standard_EXPORT void Reset (const gp_Dir& Tgt, const gp_Dir& Norm, const Standard_Real Curv);
|
||||||
|
|
||||||
//! Initialize a Transition with the local description
|
//! Initialize a Transition with the local description of a straight line.
|
||||||
//! of a straigth line.
|
|
||||||
Standard_EXPORT void Reset (const gp_Dir& Tgt);
|
Standard_EXPORT void Reset (const gp_Dir& Tgt);
|
||||||
|
|
||||||
//! Add a curve element to the boundary. If Or is
|
//! Add a curve element to the boundary. If Or is
|
||||||
|
@ -27,7 +27,7 @@ static Standard_Boolean STATIC_DEFINED = Standard_False;
|
|||||||
|
|
||||||
static gp_Dir FUN_nCinsideS(const gp_Dir& tgC, const gp_Dir& ngS)
|
static gp_Dir FUN_nCinsideS(const gp_Dir& tgC, const gp_Dir& ngS)
|
||||||
{
|
{
|
||||||
// Give us a curve C on suface S, <parOnC>, a parameter
|
// Give us a curve C on surface S, <parOnC>, a parameter
|
||||||
// Purpose : compute normal vector to C, tangent to S at
|
// Purpose : compute normal vector to C, tangent to S at
|
||||||
// given point , oriented INSIDE S
|
// given point , oriented INSIDE S
|
||||||
// <tgC> : geometric tangent at point of <parOnC>
|
// <tgC> : geometric tangent at point of <parOnC>
|
||||||
@ -111,7 +111,7 @@ static Standard_Integer FUN_refnearest(const Standard_Real Angref, const TopAbs_
|
|||||||
// Analysis for tangent cases : if two boundary faces are same sided
|
// Analysis for tangent cases : if two boundary faces are same sided
|
||||||
// and have tangent normals, if they have opposite orientations
|
// and have tangent normals, if they have opposite orientations
|
||||||
// we choose INTERNAL as resulting complex transition (case EXTERNAL
|
// we choose INTERNAL as resulting complex transition (case EXTERNAL
|
||||||
// refering to no logical case)
|
// referring to no logical case)
|
||||||
if (TopAbs::Complement(Ori) == Oriref) return M_Ointernal;
|
if (TopAbs::Complement(Ori) == Oriref) return M_Ointernal;
|
||||||
else return (Standard_Integer ) M_Unknown; // nyi FUN_RAISE
|
else return (Standard_Integer ) M_Unknown; // nyi FUN_RAISE
|
||||||
}
|
}
|
||||||
|
@ -61,7 +61,7 @@ class TopoDSToStep_MakeStepVertex;
|
|||||||
//! MakeFacetedBrepAndBrepWithVoids
|
//! MakeFacetedBrepAndBrepWithVoids
|
||||||
//! MakeShellBasedSurfaceModel
|
//! MakeShellBasedSurfaceModel
|
||||||
//! Each of these classes call the Builder
|
//! Each of these classes call the Builder
|
||||||
//! The class tool centralizes some common informations.
|
//! The class tool centralizes some common information.
|
||||||
class TopoDSToStep
|
class TopoDSToStep
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user