1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-07-15 12:35:51 +03:00

Coding - Function guard update (#610)

- Removed verbose function header comments (name, purpose) across multiple C++ source files.
- Introduced a single-line separator comment before each function for consistent formatting.
- Applied the change in visualization, modeling, algorithms, foundation, and application framework modules.
This commit is contained in:
Pasukhin Dmitry 2025-07-13 13:16:51 +01:00 committed by GitHub
parent d04384f9d4
commit 0947067ed5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
176 changed files with 504 additions and 1299 deletions

View File

@ -33,10 +33,8 @@
static Standard_GUID BinStorageDriver("03a56835-8269-11d5-aab2-0050044b1af1"); static Standard_GUID BinStorageDriver("03a56835-8269-11d5-aab2-0050044b1af1");
static Standard_GUID BinRetrievalDriver("03a56836-8269-11d5-aab2-0050044b1af1"); static Standard_GUID BinRetrievalDriver("03a56836-8269-11d5-aab2-0050044b1af1");
//======================================================================= //=================================================================================================
// function : Factory
// purpose : PLUGIN FACTORY
//=======================================================================
const Handle(Standard_Transient)& BinDrivers::Factory(const Standard_GUID& theGUID) const Handle(Standard_Transient)& BinDrivers::Factory(const Standard_GUID& theGUID)
{ {
if (theGUID == BinStorageDriver) if (theGUID == BinStorageDriver)

View File

@ -31,10 +31,8 @@
static Standard_GUID BinLStorageDriver("13a56835-8269-11d5-aab2-0050044b1af1"); static Standard_GUID BinLStorageDriver("13a56835-8269-11d5-aab2-0050044b1af1");
static Standard_GUID BinLRetrievalDriver("13a56836-8269-11d5-aab2-0050044b1af1"); static Standard_GUID BinLRetrievalDriver("13a56836-8269-11d5-aab2-0050044b1af1");
//======================================================================= //=================================================================================================
// function : Factory
// purpose : PLUGIN FACTORY
//=======================================================================
const Handle(Standard_Transient)& BinLDrivers::Factory(const Standard_GUID& theGUID) const Handle(Standard_Transient)& BinLDrivers::Factory(const Standard_GUID& theGUID)
{ {
if (theGUID == BinLStorageDriver) if (theGUID == BinLStorageDriver)

View File

@ -17,10 +17,7 @@
#include <TDocStd_FormatVersion.hxx> #include <TDocStd_FormatVersion.hxx>
#include <BinMDataStd.hxx> #include <BinMDataStd.hxx>
//======================================================================= //=================================================================================================
// function : BinLDrivers_DocumentSection
// purpose : Empty constructor
//=======================================================================
BinLDrivers_DocumentSection::BinLDrivers_DocumentSection() BinLDrivers_DocumentSection::BinLDrivers_DocumentSection()
: myIsPostRead(Standard_False) : myIsPostRead(Standard_False)
@ -106,7 +103,7 @@ void BinLDrivers_DocumentSection::WriteTOC(Standard_OStream& theStream
if (aBufSize < aLen) if (aBufSize < aLen)
aBufSize += sizeof(Standard_Integer); aBufSize += sizeof(Standard_Integer);
// Write the buffer: size + string // Write the buffer: size + string
#ifdef DO_INVERSE #ifdef DO_INVERSE
aBufSz[0] = InverseInt((Standard_Integer)aBufSize); aBufSz[0] = InverseInt((Standard_Integer)aBufSize);
#else #else

View File

@ -39,10 +39,7 @@ typedef struct
unsigned char Data4[8]; // 8-bytes long on all OS unsigned char Data4[8]; // 8-bytes long on all OS
} BinObjMgt_UUID; } BinObjMgt_UUID;
//======================================================================= //=================================================================================================
// function : BinObjMgt_Persistent
// purpose : Empty constructor
//=======================================================================
BinObjMgt_Persistent::BinObjMgt_Persistent() BinObjMgt_Persistent::BinObjMgt_Persistent()
: myIndex(1), : myIndex(1),

View File

@ -697,10 +697,7 @@ Standard_OStream& TNaming::Print(const TNaming_NameType NAME, Standard_OStream&
return s; return s;
} }
//======================================================================= //=================================================================================================
// function : Print
// purpose : Prints UsedShapes.
//=======================================================================
Standard_OStream& TNaming::Print(const TDF_Label& ACCESS, Standard_OStream& s) Standard_OStream& TNaming::Print(const TDF_Label& ACCESS, Standard_OStream& s)
{ {

View File

@ -2165,10 +2165,7 @@ TNaming_Name& TNaming_Naming::ChangeName()
return myName; return myName;
} }
//======================================================================= //=================================================================================================
// function : Regenerate
// purpose : idem designer
//=======================================================================
Standard_Boolean TNaming_Naming::Regenerate(TDF_LabelMap& MDF) Standard_Boolean TNaming_Naming::Regenerate(TDF_LabelMap& MDF)

View File

@ -50,10 +50,8 @@ IMPLEMENT_STANDARD_RTTIEXT(TNaming_TranslateTool, Standard_Transient)
// myTriangleMode(aTriMode) // myTriangleMode(aTriMode)
//{ //{
//} //}
//======================================================================= //=================================================================================================
// function : Add
// purpose : Adds S2 in S1
//=======================================================================
void TNaming_TranslateTool::Add(TopoDS_Shape& S1, const TopoDS_Shape& S2) const void TNaming_TranslateTool::Add(TopoDS_Shape& S1, const TopoDS_Shape& S2) const
{ {
BRep_Builder B; BRep_Builder B;

View File

@ -84,10 +84,7 @@ LDOMBasicString::LDOMBasicString(const char* aValue,
} }
} }
//======================================================================= //=================================================================================================
// function : LDOMBasicString
// purpose : Copy constructor
//=======================================================================
LDOMBasicString::LDOMBasicString(const LDOMBasicString& anOther) LDOMBasicString::LDOMBasicString(const LDOMBasicString& anOther)
: myType(anOther.Type()) : myType(anOther.Type())

View File

@ -163,10 +163,7 @@ const LDOM_BasicAttribute& LDOM_BasicElement::GetAttribute(const LDOMBasicString
return aNullAttribute; return aNullAttribute;
} }
//======================================================================= //=================================================================================================
// function : GetFirstAttribute
// purpose : private method
//=======================================================================
const LDOM_BasicAttribute* LDOM_BasicElement::GetFirstAttribute( const LDOM_BasicAttribute* LDOM_BasicElement::GetFirstAttribute(
const LDOM_BasicNode*& theLastCh, const LDOM_BasicNode*& theLastCh,

View File

@ -49,10 +49,7 @@ LDOM_CharacterData& LDOM_CharacterData::operator=(const LDOM_CharacterData& theO
return *this; return *this;
} }
//======================================================================= //=================================================================================================
// function : setData
// purpose : replace the data
//=======================================================================
void LDOM_CharacterData::setData(const LDOMString& theValue) void LDOM_CharacterData::setData(const LDOMString& theValue)
{ {

View File

@ -44,10 +44,7 @@ void LDOM_NodeList::Append(const LDOM_BasicNode& aNode) const
mySeq->Append(&aNode); mySeq->Append(&aNode);
} }
//======================================================================= //=================================================================================================
// function : LDOM_NodeList
// purpose : Copy constructor
//=======================================================================
LDOM_NodeList::LDOM_NodeList(const LDOM_NodeList& theOther) LDOM_NodeList::LDOM_NodeList(const LDOM_NodeList& theOther)
{ {

View File

@ -87,10 +87,7 @@ int LDOM_SBuffer::overflow(int c)
return c; return c;
} }
//======================================================================= //=================================================================================================
// function : underflow
// purpose : redefined virtual
//=======================================================================
int LDOM_SBuffer::underflow() int LDOM_SBuffer::underflow()
{ {

View File

@ -377,10 +377,8 @@ void LDOM_XmlWriter::Write(Standard_OStream& theOStream, const LDOMBasicString&
} }
} }
//======================================================================= //=================================================================================================
// function : Write
// purpose : Stream out a char
//=======================================================================
void LDOM_XmlWriter::Write(Standard_OStream& theOStream, const char theChar) void LDOM_XmlWriter::Write(Standard_OStream& theOStream, const char theChar)
{ {
theOStream.write(&theChar, sizeof(char)); theOStream.write(&theChar, sizeof(char));

View File

@ -88,10 +88,7 @@ IMPLEMENT_STANDARD_RTTIEXT(TDF_Data, Standard_Transient)
aDelta->AddAttributeDelta(DELTACREATION); \ aDelta->AddAttributeDelta(DELTACREATION); \
} }
//======================================================================= //=================================================================================================
// function : TDF_Data
// purpose : empty constructor
//=======================================================================
TDF_Data::TDF_Data() TDF_Data::TDF_Data()
: myTransaction(0), : myTransaction(0),

View File

@ -26,10 +26,8 @@
IMPLEMENT_STANDARD_RTTIEXT(TDF_DataSet, Standard_Transient) IMPLEMENT_STANDARD_RTTIEXT(TDF_DataSet, Standard_Transient)
//======================================================================= //=================================================================================================
// function : TDF_DataSet
// purpose : Creates a DataSet.
//=======================================================================
TDF_DataSet::TDF_DataSet() {} TDF_DataSet::TDF_DataSet() {}
//================================================================================================= //=================================================================================================

View File

@ -76,10 +76,7 @@ void TDF_IDFilter::Keep(const TDF_IDList& anIDList)
} }
} }
//======================================================================= //=================================================================================================
// function : Ignore
// purpose : Ignores an ID.
//=======================================================================
void TDF_IDFilter::Ignore(const Standard_GUID& anID) void TDF_IDFilter::Ignore(const Standard_GUID& anID)
{ {

View File

@ -343,10 +343,7 @@ TDF_LabelNode* TDF_Label::FindOrAddChild(const Standard_Integer aTag,
return childLabelNode; return childLabelNode;
} }
//======================================================================= //=================================================================================================
// function : InternalDump
// purpose : Private method.
//=======================================================================
void TDF_Label::InternalDump(Standard_OStream& anOS, void TDF_Label::InternalDump(Standard_OStream& anOS,
const TDF_IDFilter& aFilter, const TDF_IDFilter& aFilter,

View File

@ -48,10 +48,7 @@ Handle(TDF_Reference) TDF_Reference::Set(const TDF_Label& L, const TDF_Label& Or
return A; return A;
} }
//======================================================================= //=================================================================================================
// function : TDF_Reference
// purpose : Empty Constructor
//=======================================================================
TDF_Reference::TDF_Reference() {} TDF_Reference::TDF_Reference() {}

View File

@ -558,10 +558,7 @@ void TDF_Tool::DeductLabels(TDF_LabelList& aLabelList, TDF_LabelIntegerMap& aLab
} }
} }
//======================================================================= //=================================================================================================
// function : DeepDump
// purpose : Deep dump of a DF.
//=======================================================================
void TDF_Tool::DeepDump(Standard_OStream& anOS, const Handle(TDF_Data)& aDF) void TDF_Tool::DeepDump(Standard_OStream& anOS, const Handle(TDF_Data)& aDF)
{ {
@ -645,10 +642,7 @@ void TDF_Tool::ExtendedDeepDump(Standard_OStream& anOS,
anOS << " dumped between " << --i << std::endl; anOS << " dumped between " << --i << std::endl;
} }
//======================================================================= //=================================================================================================
// function : ExtendedDeepDump
// purpose : Internal method.
//=======================================================================
static void TDF_Tool_ExtendedDeepDump(Standard_OStream& anOS, static void TDF_Tool_ExtendedDeepDump(Standard_OStream& anOS,
const TDF_Label& aLabel, const TDF_Label& aLabel,

View File

@ -117,10 +117,8 @@ void TDataStd_AsciiString::SetID(const Standard_GUID& theGuid)
myID = theGuid; myID = theGuid;
} }
//======================================================================= //=================================================================================================
// function : SetID
// purpose : sets default ID
//=======================================================================
void TDataStd_AsciiString::SetID() void TDataStd_AsciiString::SetID()
{ {
Backup(); Backup();

View File

@ -82,10 +82,8 @@ static Handle(TDataStd_BooleanArray) SetAttr(const TDF_Label& label,
return A; return A;
} }
//======================================================================= //=================================================================================================
// function : TDataStd_BooleanArray
// purpose : Empty Constructor
//=======================================================================
TDataStd_BooleanArray::TDataStd_BooleanArray() TDataStd_BooleanArray::TDataStd_BooleanArray()
: myID(GetID()) : myID(GetID())
{ {
@ -217,10 +215,8 @@ void TDataStd_BooleanArray::SetID(const Standard_GUID& theGuid)
myID = theGuid; myID = theGuid;
} }
//======================================================================= //=================================================================================================
// function : SetID
// purpose : sets default ID
//=======================================================================
void TDataStd_BooleanArray::SetID() void TDataStd_BooleanArray::SetID()
{ {
Backup(); Backup();

View File

@ -49,10 +49,8 @@ static Handle(TDataStd_BooleanList) SetAttr(const TDF_Label& label, const Standa
return A; return A;
} }
//======================================================================= //=================================================================================================
// function : TDataStd_BooleanList
// purpose : Empty Constructor
//=======================================================================
TDataStd_BooleanList::TDataStd_BooleanList() TDataStd_BooleanList::TDataStd_BooleanList()
: myID(GetID()) : myID(GetID())
{ {
@ -219,10 +217,7 @@ void TDataStd_BooleanList::SetID(const Standard_GUID& theGuid)
myID = theGuid; myID = theGuid;
} }
//======================================================================= //=================================================================================================
// function : SetID
// purpose : sets default ID
//=======================================================================
void TDataStd_BooleanList::SetID() void TDataStd_BooleanList::SetID()
{ {

View File

@ -35,10 +35,8 @@ const Standard_GUID& TDataStd_ByteArray::GetID()
return TDataStd_ByteArrayID; return TDataStd_ByteArrayID;
} }
//======================================================================= //=================================================================================================
// function : TDataStd_ByteArray
// purpose : Empty Constructor
//=======================================================================
TDataStd_ByteArray::TDataStd_ByteArray() TDataStd_ByteArray::TDataStd_ByteArray()
: myIsDelta(Standard_False), : myIsDelta(Standard_False),
myID(GetID()) myID(GetID())
@ -210,10 +208,7 @@ void TDataStd_ByteArray::SetID(const Standard_GUID& theGuid)
myID = theGuid; myID = theGuid;
} }
//======================================================================= //=================================================================================================
// function : SetID
// purpose : sets default ID
//=======================================================================
void TDataStd_ByteArray::SetID() void TDataStd_ByteArray::SetID()
{ {

View File

@ -87,10 +87,7 @@ void TDataStd_Comment::SetID(const Standard_GUID& theGuid)
myID = theGuid; myID = theGuid;
} }
//======================================================================= //=================================================================================================
// function : SetID
// purpose : sets default ID
//=======================================================================
void TDataStd_Comment::SetID() void TDataStd_Comment::SetID()
{ {

View File

@ -219,10 +219,7 @@ void TDataStd_ExtStringArray::SetID(const Standard_GUID& theGuid)
myID = theGuid; myID = theGuid;
} }
//======================================================================= //=================================================================================================
// function : SetID
// purpose : sets default ID
//=======================================================================
void TDataStd_ExtStringArray::SetID() void TDataStd_ExtStringArray::SetID()
{ {

View File

@ -50,10 +50,8 @@ static Handle(TDataStd_ExtStringList) SetAttr(const TDF_Label& label, const Stan
return A; return A;
} }
//======================================================================= //=================================================================================================
// function : TDataStd_ExtStringList
// purpose : Empty Constructor
//=======================================================================
TDataStd_ExtStringList::TDataStd_ExtStringList() TDataStd_ExtStringList::TDataStd_ExtStringList()
: myID(GetID()) : myID(GetID())
{ {
@ -275,10 +273,7 @@ void TDataStd_ExtStringList::SetID(const Standard_GUID& theGuid)
myID = theGuid; myID = theGuid;
} }
//======================================================================= //=================================================================================================
// function : SetID
// purpose : sets default ID
//=======================================================================
void TDataStd_ExtStringList::SetID() void TDataStd_ExtStringList::SetID()
{ {

View File

@ -73,10 +73,7 @@ Handle(TDataStd_Integer) TDataStd_Integer::Set(const TDF_Label& L,
return SetAttr(L, V, theGuid); return SetAttr(L, V, theGuid);
} }
//======================================================================= //=================================================================================================
// function : TDataStd_Integer
// purpose : Empty Constructor
//=======================================================================
TDataStd_Integer::TDataStd_Integer() TDataStd_Integer::TDataStd_Integer()
: myValue(-1), : myValue(-1),
@ -129,10 +126,8 @@ void TDataStd_Integer::SetID(const Standard_GUID& theGuid)
myID = theGuid; myID = theGuid;
} }
//======================================================================= //=================================================================================================
// function : SetID
// purpose : sets default ID
//=======================================================================
void TDataStd_Integer::SetID() void TDataStd_Integer::SetID()
{ {
Backup(); Backup();

View File

@ -62,10 +62,7 @@ static Handle(TDataStd_IntegerArray) SetAttr(const TDF_Label& label,
return A; return A;
} }
//======================================================================= //=================================================================================================
// function : TDataStd_IntegerArray
// purpose : Empty Constructor
//=======================================================================
TDataStd_IntegerArray::TDataStd_IntegerArray() TDataStd_IntegerArray::TDataStd_IntegerArray()
: myIsDelta(Standard_False), : myIsDelta(Standard_False),
@ -219,10 +216,7 @@ void TDataStd_IntegerArray::SetID(const Standard_GUID& theGuid)
myID = theGuid; myID = theGuid;
} }
//======================================================================= //=================================================================================================
// function : SetID
// purpose : sets default ID
//=======================================================================
void TDataStd_IntegerArray::SetID() void TDataStd_IntegerArray::SetID()
{ {

View File

@ -49,10 +49,8 @@ static Handle(TDataStd_IntegerList) SetAttr(const TDF_Label& label, const Standa
return A; return A;
} }
//======================================================================= //=================================================================================================
// function : TDataStd_IntegerList
// purpose : Empty Constructor
//=======================================================================
TDataStd_IntegerList::TDataStd_IntegerList() TDataStd_IntegerList::TDataStd_IntegerList()
: myID(GetID()) : myID(GetID())
{ {
@ -268,10 +266,7 @@ void TDataStd_IntegerList::SetID(const Standard_GUID& theGuid)
myID = theGuid; myID = theGuid;
} }
//======================================================================= //=================================================================================================
// function : SetID
// purpose : sets default ID
//=======================================================================
void TDataStd_IntegerList::SetID() void TDataStd_IntegerList::SetID()
{ {

View File

@ -95,10 +95,7 @@ void TDataStd_Name::SetID(const Standard_GUID& theGuid)
myID = theGuid; myID = theGuid;
} }
//======================================================================= //=================================================================================================
// function : SetID
// purpose : sets default ID
//=======================================================================
void TDataStd_Name::SetID() void TDataStd_Name::SetID()
{ {

View File

@ -44,10 +44,8 @@ const Standard_GUID& TDataStd_NamedData::GetID()
return TDataStd_NamedDataID; return TDataStd_NamedDataID;
} }
//======================================================================= //=================================================================================================
// function : TDataStd_NamedData
// purpose : Empty Constructor
//=======================================================================
TDataStd_NamedData::TDataStd_NamedData() {} TDataStd_NamedData::TDataStd_NamedData() {}
//================================================================================================= //=================================================================================================

View File

@ -73,10 +73,7 @@ Handle(TDataStd_Real) TDataStd_Real::Set(const TDF_Label& L,
return SetAttr(L, V, theGuid); return SetAttr(L, V, theGuid);
} }
//======================================================================= //=================================================================================================
// function : TDataStd_Real
// purpose : Empty constructor
//=======================================================================
TDataStd_Real::TDataStd_Real() TDataStd_Real::TDataStd_Real()
: myValue(RealFirst()), : myValue(RealFirst()),
@ -156,10 +153,8 @@ void TDataStd_Real::SetID(const Standard_GUID& theGuid)
myID = theGuid; myID = theGuid;
} }
//======================================================================= //=================================================================================================
// function : SetID
// purpose : sets default ID
//=======================================================================
void TDataStd_Real::SetID() void TDataStd_Real::SetID()
{ {
Backup(); Backup();

View File

@ -62,10 +62,7 @@ static Handle(TDataStd_RealArray) SetAttr(const TDF_Label& label,
return A; return A;
} }
//======================================================================= //=================================================================================================
// function : TDataStd_RealArray
// purpose : Empty Constructor
//=======================================================================
TDataStd_RealArray::TDataStd_RealArray() TDataStd_RealArray::TDataStd_RealArray()
: myIsDelta(Standard_False), : myIsDelta(Standard_False),
@ -218,10 +215,7 @@ void TDataStd_RealArray::SetID(const Standard_GUID& theGuid)
myID = theGuid; myID = theGuid;
} }
//======================================================================= //=================================================================================================
// function : SetID
// purpose : sets default ID
//=======================================================================
void TDataStd_RealArray::SetID() void TDataStd_RealArray::SetID()
{ {

View File

@ -49,10 +49,8 @@ static Handle(TDataStd_RealList) SetAttr(const TDF_Label& label, const Standard_
return A; return A;
} }
//======================================================================= //=================================================================================================
// function : TDataStd_RealList
// purpose : Empty Constructor
//=======================================================================
TDataStd_RealList::TDataStd_RealList() TDataStd_RealList::TDataStd_RealList()
: myID(GetID()) : myID(GetID())
{ {
@ -268,10 +266,8 @@ void TDataStd_RealList::SetID(const Standard_GUID& theGuid)
myID = theGuid; myID = theGuid;
} }
//======================================================================= //=================================================================================================
// function : SetID
// purpose : sets default ID
//=======================================================================
void TDataStd_RealList::SetID() void TDataStd_RealList::SetID()
{ {
Backup(); Backup();

View File

@ -58,10 +58,8 @@ static Handle(TDataStd_ReferenceArray) SetAttr(const TDF_Label& label,
return A; return A;
} }
//======================================================================= //=================================================================================================
// function : TDataStd_ReferenceArray
// purpose : Empty Constructor
//=======================================================================
TDataStd_ReferenceArray::TDataStd_ReferenceArray() TDataStd_ReferenceArray::TDataStd_ReferenceArray()
: myID(GetID()) : myID(GetID())
{ {
@ -209,10 +207,7 @@ void TDataStd_ReferenceArray::SetID(const Standard_GUID& theGuid)
myID = theGuid; myID = theGuid;
} }
//======================================================================= //=================================================================================================
// function : SetID
// purpose : sets default ID
//=======================================================================
void TDataStd_ReferenceArray::SetID() void TDataStd_ReferenceArray::SetID()
{ {

View File

@ -50,10 +50,8 @@ static Handle(TDataStd_ReferenceList) SetAttr(const TDF_Label& label, const Stan
return A; return A;
} }
//======================================================================= //=================================================================================================
// function : TDataStd_ReferenceList
// purpose : Empty Constructor
//=======================================================================
TDataStd_ReferenceList::TDataStd_ReferenceList() TDataStd_ReferenceList::TDataStd_ReferenceList()
: myID(GetID()) : myID(GetID())
{ {
@ -269,10 +267,8 @@ void TDataStd_ReferenceList::SetID(const Standard_GUID& theGuid)
myID = theGuid; myID = theGuid;
} }
//======================================================================= //=================================================================================================
// function : SetID
// purpose : sets default ID
//=======================================================================
void TDataStd_ReferenceList::SetID() void TDataStd_ReferenceList::SetID()
{ {
Backup(); Backup();

View File

@ -240,10 +240,7 @@ void TDocStd_Document::AbortCommand()
AbortTransaction(); AbortTransaction();
} }
//======================================================================= //=================================================================================================
// function : CommitTransaction
// purpose : Private method.
//=======================================================================
Standard_Boolean TDocStd_Document::CommitTransaction() Standard_Boolean TDocStd_Document::CommitTransaction()
{ {
@ -339,10 +336,7 @@ Standard_Boolean TDocStd_Document::CommitTransaction()
return isDone; return isDone;
} }
//======================================================================= //=================================================================================================
// function : AbortTransaction
// purpose : Private method.
//=======================================================================
void TDocStd_Document::AbortTransaction() void TDocStd_Document::AbortTransaction()
{ {
@ -376,10 +370,7 @@ void TDocStd_Document::AbortTransaction()
} }
} }
//======================================================================= //=================================================================================================
// function :OpenTransaction
// purpose : Private method.
//=======================================================================
void TDocStd_Document::OpenTransaction() void TDocStd_Document::OpenTransaction()
{ {

View File

@ -43,10 +43,7 @@ TDocStd_XLink::TDocStd_XLink()
{ {
} }
//======================================================================= //=================================================================================================
// function : Set
// purpose : Class method.
//=======================================================================
Handle(TDocStd_XLink) TDocStd_XLink::Set(const TDF_Label& atLabel) Handle(TDocStd_XLink) TDocStd_XLink::Set(const TDF_Label& atLabel)
{ {

View File

@ -41,10 +41,7 @@ const Standard_GUID& TDocStd_XLinkRoot::GetID()
return myID; return myID;
} }
//======================================================================= //=================================================================================================
// function : Set
// purpose : CLASS method.
//=======================================================================
Handle(TDocStd_XLinkRoot) TDocStd_XLinkRoot::Set(const Handle(TDF_Data)& aDF) Handle(TDocStd_XLinkRoot) TDocStd_XLinkRoot::Set(const Handle(TDF_Data)& aDF)
{ {

View File

@ -23,10 +23,7 @@ IMPLEMENT_STANDARD_RTTIEXT(TFunction_Driver, Standard_Transient)
TFunction_Driver::TFunction_Driver() {} TFunction_Driver::TFunction_Driver() {}
//======================================================================= //=================================================================================================
// function : Init
// purpose : Initialization
//=======================================================================
void TFunction_Driver::Init(const TDF_Label& L) void TFunction_Driver::Init(const TDF_Label& L)
{ {

View File

@ -58,10 +58,8 @@ const Standard_GUID& TFunction_Logbook::ID() const
return GetID(); return GetID();
} }
//======================================================================= //=================================================================================================
// function : TFunction_Logbook
// purpose : A Logbook creation
//=======================================================================
TFunction_Logbook::TFunction_Logbook() TFunction_Logbook::TFunction_Logbook()
: isDone(Standard_False) : isDone(Standard_False)
{ {

View File

@ -21,10 +21,8 @@
#include <ShapePersistent_Geom_Surface.hxx> #include <ShapePersistent_Geom_Surface.hxx>
#include <ShapePersistent_BRep.hxx> #include <ShapePersistent_BRep.hxx>
//======================================================================= //=================================================================================================
// function : BindTypes
// purpose : Register types
//=======================================================================
void ShapePersistent::BindTypes(StdObjMgt_MapOfInstantiators& theMap) void ShapePersistent::BindTypes(StdObjMgt_MapOfInstantiators& theMap)
{ {
theMap.Bind<StdLPersistent_HArray1::Persistent>("PTopoDS_HArray1OfHShape"); theMap.Bind<StdLPersistent_HArray1::Persistent>("PTopoDS_HArray1OfHShape");

View File

@ -61,10 +61,8 @@ void StdDrivers::DefineFormat(const Handle(TDocStd_Application)& theApp)
0); 0);
} }
//======================================================================= //=================================================================================================
// function : BindTypes
// purpose : Register types
//=======================================================================
void StdDrivers::BindTypes(StdObjMgt_MapOfInstantiators& theMap) void StdDrivers::BindTypes(StdObjMgt_MapOfInstantiators& theMap)
{ {
StdLPersistent ::BindTypes(theMap); StdLPersistent ::BindTypes(theMap);

View File

@ -16,10 +16,8 @@
IMPLEMENT_STANDARD_RTTIEXT(StdDrivers_DocumentRetrievalDriver, StdLDrivers_DocumentRetrievalDriver) IMPLEMENT_STANDARD_RTTIEXT(StdDrivers_DocumentRetrievalDriver, StdLDrivers_DocumentRetrievalDriver)
//======================================================================= //=================================================================================================
// function : bindTypes
// purpose : Register types
//=======================================================================
void StdDrivers_DocumentRetrievalDriver::bindTypes(StdObjMgt_MapOfInstantiators& theMap) void StdDrivers_DocumentRetrievalDriver::bindTypes(StdObjMgt_MapOfInstantiators& theMap)
{ {
StdDrivers::BindTypes(theMap); StdDrivers::BindTypes(theMap);

View File

@ -23,10 +23,8 @@
#include <StdPersistent_DataXtd_PatternStd.hxx> #include <StdPersistent_DataXtd_PatternStd.hxx>
#include <StdPersistent_PPrsStd.hxx> #include <StdPersistent_PPrsStd.hxx>
//======================================================================= //=================================================================================================
// function : BindTypes
// purpose : Register types
//=======================================================================
void StdPersistent::BindTypes(StdObjMgt_MapOfInstantiators& theMap) void StdPersistent::BindTypes(StdObjMgt_MapOfInstantiators& theMap)
{ {
// Non-attribute data // Non-attribute data

View File

@ -58,10 +58,8 @@ void StdLDrivers::DefineFormat(const Handle(TDocStd_Application)& theApp)
0); 0);
} }
//======================================================================= //=================================================================================================
// function : BindTypes
// purpose : Register types
//=======================================================================
void StdLDrivers::BindTypes(StdObjMgt_MapOfInstantiators& theMap) void StdLDrivers::BindTypes(StdObjMgt_MapOfInstantiators& theMap)
{ {
StdLPersistent::BindTypes(theMap); StdLPersistent::BindTypes(theMap);

View File

@ -232,10 +232,7 @@ Handle(StdObjMgt_Persistent) StdLDrivers_DocumentRetrievalDriver::read(
return aReadData.PersistentObject(aRootData.Roots()->First()->Reference()); return aReadData.PersistentObject(aRootData.Roots()->First()->Reference());
} }
//======================================================================= //=================================================================================================
// function : Read
// purpose : not implemented
//=======================================================================
void StdLDrivers_DocumentRetrievalDriver::Read(Standard_IStream& /*theIStream*/, void StdLDrivers_DocumentRetrievalDriver::Read(Standard_IStream& /*theIStream*/,
const Handle(Storage_Data)& /*theStorageData*/, const Handle(Storage_Data)& /*theStorageData*/,
@ -301,10 +298,8 @@ void StdLDrivers_DocumentRetrievalDriver::raiseOnStorageError(Storage_Error theE
} }
} }
//======================================================================= //=================================================================================================
// function : bindTypes
// purpose : Register types
//=======================================================================
void StdLDrivers_DocumentRetrievalDriver::bindTypes(StdObjMgt_MapOfInstantiators& theMap) void StdLDrivers_DocumentRetrievalDriver::bindTypes(StdObjMgt_MapOfInstantiators& theMap)
{ {
StdLDrivers::BindTypes(theMap); StdLDrivers::BindTypes(theMap);

View File

@ -28,10 +28,8 @@
#include <StdLPersistent_TreeNode.hxx> #include <StdLPersistent_TreeNode.hxx>
#include <StdLPersistent_NamedData.hxx> #include <StdLPersistent_NamedData.hxx>
//======================================================================= //=================================================================================================
// function : BindTypes
// purpose : Register types
//=======================================================================
void StdLPersistent::BindTypes(StdObjMgt_MapOfInstantiators& theMap) void StdLPersistent::BindTypes(StdObjMgt_MapOfInstantiators& theMap)
{ {
// Non-attribute data // Non-attribute data

View File

@ -65,10 +65,7 @@ TObj_Model::~TObj_Model()
Close(); Close();
} }
//======================================================================= //=================================================================================================
// function : CloseDocument
// purpose : free OCAF document
//=======================================================================
void TObj_Model::CloseDocument(const Handle(TDocStd_Document)& theDoc) void TObj_Model::CloseDocument(const Handle(TDocStd_Document)& theDoc)
{ {

View File

@ -23,10 +23,7 @@
IMPLEMENT_STANDARD_RTTIEXT(TObj_TIntSparseArray, TDF_Attribute) IMPLEMENT_STANDARD_RTTIEXT(TObj_TIntSparseArray, TDF_Attribute)
//======================================================================= //=================================================================================================
// function : TObj_TIntSparseArray
// purpose : Empty constructor
//=======================================================================
TObj_TIntSparseArray::TObj_TIntSparseArray() TObj_TIntSparseArray::TObj_TIntSparseArray()
: myVector(100), : myVector(100),

View File

@ -606,28 +606,22 @@ void TPrsStd_AISPresentation::Paste(const Handle(TDF_Attribute)& theInto,
anInto->myAIS.Nullify(); anInto->myAIS.Nullify();
} }
//======================================================================= //=================================================================================================
// function : AfterAddition
// purpose : erase if displayed
//=======================================================================
void TPrsStd_AISPresentation::AfterAddition() void TPrsStd_AISPresentation::AfterAddition()
{ {
AfterResume(); AfterResume();
} }
//======================================================================= //=================================================================================================
// function : BeforeRemoval
// purpose : erase if displayed
//=======================================================================
void TPrsStd_AISPresentation::BeforeRemoval() void TPrsStd_AISPresentation::BeforeRemoval()
{ {
BeforeForget(); BeforeForget();
} }
//======================================================================= //=================================================================================================
// function : BeforeForget
// purpose : erase if displayed
//=======================================================================
void TPrsStd_AISPresentation::BeforeForget() void TPrsStd_AISPresentation::BeforeForget()
{ {
if (!myAIS.IsNull()) if (!myAIS.IsNull())

View File

@ -31,10 +31,8 @@
static Standard_GUID XmlStorageDriver("03a56820-8269-11d5-aab2-0050044b1af1"); static Standard_GUID XmlStorageDriver("03a56820-8269-11d5-aab2-0050044b1af1");
static Standard_GUID XmlRetrievalDriver("03a56822-8269-11d5-aab2-0050044b1af1"); static Standard_GUID XmlRetrievalDriver("03a56822-8269-11d5-aab2-0050044b1af1");
//======================================================================= //=================================================================================================
// function : Factory
// purpose : PLUGIN FACTORY
//=======================================================================
const Handle(Standard_Transient)& XmlDrivers::Factory(const Standard_GUID& theGUID) const Handle(Standard_Transient)& XmlDrivers::Factory(const Standard_GUID& theGUID)
{ {
if (theGUID == XmlStorageDriver) if (theGUID == XmlStorageDriver)

View File

@ -31,10 +31,8 @@
static Standard_GUID XmlLStorageDriver("13a56820-8269-11d5-aab2-0050044b1af1"); static Standard_GUID XmlLStorageDriver("13a56820-8269-11d5-aab2-0050044b1af1");
static Standard_GUID XmlLRetrievalDriver("13a56822-8269-11d5-aab2-0050044b1af1"); static Standard_GUID XmlLRetrievalDriver("13a56822-8269-11d5-aab2-0050044b1af1");
//======================================================================= //=================================================================================================
// function : Factory
// purpose : PLUGIN FACTORY
//=======================================================================
const Handle(Standard_Transient)& XmlLDrivers::Factory(const Standard_GUID& theGUID) const Handle(Standard_Transient)& XmlLDrivers::Factory(const Standard_GUID& theGUID)
{ {
if (theGUID == XmlLStorageDriver) if (theGUID == XmlLStorageDriver)
@ -61,10 +59,8 @@ const Handle(Standard_Transient)& XmlLDrivers::Factory(const Standard_GUID& theG
#define SLENGTH 80 #define SLENGTH 80
//======================================================================= //=================================================================================================
// function : CreationDate
// purpose : mm/dd/yy
//=======================================================================
TCollection_AsciiString XmlLDrivers::CreationDate() TCollection_AsciiString XmlLDrivers::CreationDate()
{ {
Standard_Character nowstr[SLENGTH]; Standard_Character nowstr[SLENGTH];

View File

@ -15,10 +15,8 @@
#include <XmlLDrivers_NamespaceDef.hxx> #include <XmlLDrivers_NamespaceDef.hxx>
//======================================================================= //=================================================================================================
// function : XmlLDrivers_NamespaceDef
// purpose : Empty constructor
//=======================================================================
XmlLDrivers_NamespaceDef::XmlLDrivers_NamespaceDef() {} XmlLDrivers_NamespaceDef::XmlLDrivers_NamespaceDef() {}
//================================================================================================= //=================================================================================================

View File

@ -19,10 +19,8 @@
#include <XmlObjMgt_Document.hxx> #include <XmlObjMgt_Document.hxx>
#include <XmlObjMgt_Persistent.hxx> #include <XmlObjMgt_Persistent.hxx>
//======================================================================= //=================================================================================================
// function : XmlObjMgt_Persistent
// purpose : empty constructor
//=======================================================================
XmlObjMgt_Persistent::XmlObjMgt_Persistent() XmlObjMgt_Persistent::XmlObjMgt_Persistent()
: myID(0) : myID(0)
{ {

View File

@ -6212,10 +6212,7 @@ Standard_Boolean RWStepAP214_ReadWriteModule::ComplexType(
return Standard_True; return Standard_True;
} }
//======================================================================= //=================================================================================================
// function : ReadStep
// purpose : Reading of a file
//=======================================================================
void RWStepAP214_ReadWriteModule::ReadStep(const Standard_Integer CN, void RWStepAP214_ReadWriteModule::ReadStep(const Standard_Integer CN,
const Handle(StepData_StepReaderData)& data, const Handle(StepData_StepReaderData)& data,
@ -10838,10 +10835,7 @@ void RWStepAP214_ReadWriteModule::ReadStep(const Standard_Integer
return; return;
} }
//======================================================================= //=================================================================================================
// function : WriteStep
// purpose : Writing of a file
//=======================================================================
void RWStepAP214_ReadWriteModule::WriteStep(const Standard_Integer CN, void RWStepAP214_ReadWriteModule::WriteStep(const Standard_Integer CN,
StepData_StepWriter& SW, StepData_StepWriter& SW,

View File

@ -246,10 +246,7 @@ Standard_Real STEPConstruct_UnitContext::ConvertSiPrefix(const StepBasic_SiPrefi
return 1.; return 1.;
} }
// ========================================================================== //=================================================================================================
// Method : STEPConstruct_UnitContext::SiUnitNameFactor
// Purpose :
// ==========================================================================
Standard_Boolean STEPConstruct_UnitContext::SiUnitNameFactor( Standard_Boolean STEPConstruct_UnitContext::SiUnitNameFactor(
const Handle(StepBasic_SiUnit)& aSiUnit, const Handle(StepBasic_SiUnit)& aSiUnit,
@ -268,10 +265,7 @@ Standard_Boolean STEPConstruct_UnitContext::SiUnitNameFactor(
} }
} }
// ========================================================================== //=================================================================================================
// Method : STEPConstruct_UnitContext::ComputeFactors
// Purpose :
// ==========================================================================
Standard_Integer STEPConstruct_UnitContext::ComputeFactors( Standard_Integer STEPConstruct_UnitContext::ComputeFactors(
const Handle(StepRepr_GlobalUnitAssignedContext)& aContext, const Handle(StepRepr_GlobalUnitAssignedContext)& aContext,
@ -488,10 +482,7 @@ Standard_Integer STEPConstruct_UnitContext::ComputeFactors(const Handle(StepBasi
return status; return status;
} }
// ========================================================================== //=================================================================================================
// Method : STEPConstruct_UnitContext::ComputeTolerance
// Purpose :
// ==========================================================================
Standard_Integer STEPConstruct_UnitContext::ComputeTolerance( Standard_Integer STEPConstruct_UnitContext::ComputeTolerance(
const Handle(StepRepr_GlobalUncertaintyAssignedContext)& aContext) const Handle(StepRepr_GlobalUncertaintyAssignedContext)& aContext)
@ -556,82 +547,64 @@ Standard_Integer STEPConstruct_UnitContext::ComputeTolerance(
return status; return status;
} }
// ========================================================================== //=================================================================================================
// Method : STEPConstruct_UnitContext::LengthFactor
// Purpose :
// ==========================================================================
Standard_Real STEPConstruct_UnitContext::LengthFactor() const Standard_Real STEPConstruct_UnitContext::LengthFactor() const
{ {
return lengthFactor; return lengthFactor;
} }
// ========================================================================== //=================================================================================================
// Method : STEPConstruct_UnitContext::PlaneAngleFactor
// Purpose :
// ==========================================================================
Standard_Real STEPConstruct_UnitContext::PlaneAngleFactor() const Standard_Real STEPConstruct_UnitContext::PlaneAngleFactor() const
{ {
return planeAngleFactor; return planeAngleFactor;
} }
// ========================================================================== //=================================================================================================
// Method : STEPConstruct_UnitContext::SolidAngleFactor
// Purpose :
// ==========================================================================
Standard_Real STEPConstruct_UnitContext::SolidAngleFactor() const Standard_Real STEPConstruct_UnitContext::SolidAngleFactor() const
{ {
return solidAngleFactor; return solidAngleFactor;
} }
// ========================================================================== //=================================================================================================
// Method : STEPConstruct_UnitContext::Uncertainty
// Purpose :
// ==========================================================================
Standard_Real STEPConstruct_UnitContext::Uncertainty() const Standard_Real STEPConstruct_UnitContext::Uncertainty() const
{ {
return theUncertainty; return theUncertainty;
} }
// ========================================================================== //=================================================================================================
// Method : STEPConstruct_UnitContext::HasUncertainty
// Purpose :
// ==========================================================================
Standard_Boolean STEPConstruct_UnitContext::HasUncertainty() const Standard_Boolean STEPConstruct_UnitContext::HasUncertainty() const
{ {
return hasUncertainty; return hasUncertainty;
} }
// ========================================================================== //=================================================================================================
// Method : STEPConstruct_UnitContext::LengthDone
// Purpose :
// ==========================================================================
Standard_Boolean STEPConstruct_UnitContext::LengthDone() const Standard_Boolean STEPConstruct_UnitContext::LengthDone() const
{ {
return lengthDone; return lengthDone;
} }
// ========================================================================== //=================================================================================================
// Method : STEPConstruct_UnitContext::PlaneAngleDone
// Purpose :
// ==========================================================================
Standard_Boolean STEPConstruct_UnitContext::PlaneAngleDone() const Standard_Boolean STEPConstruct_UnitContext::PlaneAngleDone() const
{ {
return planeAngleDone; return planeAngleDone;
} }
// ========================================================================== //=================================================================================================
// Method : STEPConstruct_UnitContext::SolidAngleDone
// Purpose :
// ==========================================================================
Standard_Boolean STEPConstruct_UnitContext::SolidAngleDone() const Standard_Boolean STEPConstruct_UnitContext::SolidAngleDone() const
{ {
return solidAngleDone; return solidAngleDone;
} }
// ========================================================================== //=================================================================================================
// Method : STEPConstruct_UnitContext::StatusMessage
// Purpose :
// ==========================================================================
Standard_CString STEPConstruct_UnitContext::StatusMessage(const Standard_Integer status) const Standard_CString STEPConstruct_UnitContext::StatusMessage(const Standard_Integer status) const
{ {
switch (status) switch (status)

View File

@ -2346,10 +2346,8 @@ void STEPControl_ActorRead::computeIDEASClosings(
} }
} }
//======================================================================= //=================================================================================================
// Method : SetModel
// Purpose :
//=======================================================================
void STEPControl_ActorRead::SetModel(const Handle(Interface_InterfaceModel)& theModel) void STEPControl_ActorRead::SetModel(const Handle(Interface_InterfaceModel)& theModel)
{ {
myModel = theModel; myModel = theModel;

View File

@ -13,10 +13,8 @@
#include <StepData_Factors.hxx> #include <StepData_Factors.hxx>
// ============================================================================ //=================================================================================================
// Method : Constructor
// Purpose:
// ============================================================================
StepData_Factors::StepData_Factors() StepData_Factors::StepData_Factors()
: myLengthFactor(1.), : myLengthFactor(1.),
myPlaneAngleFactor(1.), myPlaneAngleFactor(1.),
@ -27,10 +25,8 @@ StepData_Factors::StepData_Factors()
{ {
} }
// ============================================================================ //=================================================================================================
// Method : InitializeFactors
// Purpose:
// ============================================================================
void StepData_Factors::InitializeFactors(const Standard_Real theLengthFactor, void StepData_Factors::InitializeFactors(const Standard_Real theLengthFactor,
const Standard_Real thePlaneAngleFactor, const Standard_Real thePlaneAngleFactor,
const Standard_Real theSolidAngleFactor) const Standard_Real theSolidAngleFactor)
@ -42,64 +38,50 @@ void StepData_Factors::InitializeFactors(const Standard_Real theLengthFactor,
myFactDR = thePlaneAngleFactor; myFactDR = thePlaneAngleFactor;
} }
// ============================================================================ //=================================================================================================
// Method : LengthFactor
// Purpose:
// ============================================================================
Standard_Real StepData_Factors::LengthFactor() const Standard_Real StepData_Factors::LengthFactor() const
{ {
return myLengthFactor; return myLengthFactor;
} }
// ============================================================================ //=================================================================================================
// Method : PlaneAngleFactor
// Purpose:
// ============================================================================
Standard_Real StepData_Factors::PlaneAngleFactor() const Standard_Real StepData_Factors::PlaneAngleFactor() const
{ {
return myPlaneAngleFactor; return myPlaneAngleFactor;
} }
// ============================================================================ //=================================================================================================
// Method : SolidAngleFactor
// Purpose:
// ============================================================================
Standard_Real StepData_Factors::SolidAngleFactor() const Standard_Real StepData_Factors::SolidAngleFactor() const
{ {
return mySolidAngleFactor; return mySolidAngleFactor;
} }
// ============================================================================ //=================================================================================================
// Method : FactorRadianDegree
// Purpose:
// ============================================================================
Standard_Real StepData_Factors::FactorRadianDegree() const Standard_Real StepData_Factors::FactorRadianDegree() const
{ {
return myFactRD; return myFactRD;
} }
// ============================================================================ //=================================================================================================
// Method : FactorDegreeRadian
// Purpose:
// ============================================================================
Standard_Real StepData_Factors::FactorDegreeRadian() const Standard_Real StepData_Factors::FactorDegreeRadian() const
{ {
return myFactDR; return myFactDR;
} }
// ============================================================================ //=================================================================================================
// Method : SetCascadeUnit
// Purpose:
// ============================================================================
void StepData_Factors::SetCascadeUnit(const Standard_Real theUnit) void StepData_Factors::SetCascadeUnit(const Standard_Real theUnit)
{ {
myCascadeUnit = theUnit; myCascadeUnit = theUnit;
} }
// ============================================================================ //=================================================================================================
// Method : CascadeUnit
// Purpose:
// ============================================================================
Standard_Real StepData_Factors::CascadeUnit() const Standard_Real StepData_Factors::CascadeUnit() const
{ {
return myCascadeUnit; return myCascadeUnit;

View File

@ -104,10 +104,8 @@ static void ResetPreci(Handle(StepData_StepModel)& theStepModel,
} }
} }
// ============================================================================ //=================================================================================================
// Method : StepToTopoDS_Builder
// Purpose : Empty constructor
// ============================================================================
StepToTopoDS_Builder::StepToTopoDS_Builder() StepToTopoDS_Builder::StepToTopoDS_Builder()
: myError(StepToTopoDS_BuilderOther) : myError(StepToTopoDS_BuilderOther)
{ {

View File

@ -26,10 +26,8 @@
#include <Transfer_TransientProcess.hxx> #include <Transfer_TransientProcess.hxx>
#include <TransferBRep.hxx> #include <TransferBRep.hxx>
// ============================================================================ //=================================================================================================
// Method : StepToTopoDS_Tool::StepToTopoDS_Tool
// Purpose : Empty Constructor
// ============================================================================
StepToTopoDS_Tool::StepToTopoDS_Tool() StepToTopoDS_Tool::StepToTopoDS_Tool()
: myComputePC(Standard_False), : myComputePC(Standard_False),
myNbC0Surf(0), myNbC0Surf(0),
@ -55,10 +53,7 @@ StepToTopoDS_Tool::StepToTopoDS_Tool(const StepToTopoDS_DataMapOfTRI& Ma
Init(Map, TP); Init(Map, TP);
} }
// ============================================================================ //=================================================================================================
// Method : Init
// Purpose : Init with a Map
// ============================================================================
void StepToTopoDS_Tool::Init(const StepToTopoDS_DataMapOfTRI& Map, void StepToTopoDS_Tool::Init(const StepToTopoDS_DataMapOfTRI& Map,
const Handle(Transfer_TransientProcess)& TP) const Handle(Transfer_TransientProcess)& TP)
@ -112,70 +107,49 @@ const TopoDS_Shape& StepToTopoDS_Tool::Find(
return myDataMap.Find(TRI); return myDataMap.Find(TRI);
} }
// ============================================================================ //=================================================================================================
// Method : StepToTopoDS_Tool::ClearEdgeMap
// Purpose :
// ============================================================================
void StepToTopoDS_Tool::ClearEdgeMap() void StepToTopoDS_Tool::ClearEdgeMap()
{ {
myEdgeMap.Clear(); myEdgeMap.Clear();
} }
// ============================================================================ //=================================================================================================
// Method : StepToTopoDS_Tool::IsEdgeBound
// Purpose :
// ============================================================================
Standard_Boolean StepToTopoDS_Tool::IsEdgeBound(const StepToTopoDS_PointPair& PP) Standard_Boolean StepToTopoDS_Tool::IsEdgeBound(const StepToTopoDS_PointPair& PP)
{ {
return myEdgeMap.IsBound(PP); return myEdgeMap.IsBound(PP);
} }
// ============================================================================ //=================================================================================================
// Method : StepToTopoDS_Tool_BindEdge
// Purpose :
// ============================================================================
void StepToTopoDS_Tool::BindEdge(const StepToTopoDS_PointPair& PP, const TopoDS_Edge& E) void StepToTopoDS_Tool::BindEdge(const StepToTopoDS_PointPair& PP, const TopoDS_Edge& E)
{ {
myEdgeMap.Bind(PP, E); myEdgeMap.Bind(PP, E);
} }
// ============================================================================ //=================================================================================================
// Method : StepToTopoDS_Tool::FindEdge
// Purpose :
// ============================================================================
const TopoDS_Edge& StepToTopoDS_Tool::FindEdge(const StepToTopoDS_PointPair& PP) const TopoDS_Edge& StepToTopoDS_Tool::FindEdge(const StepToTopoDS_PointPair& PP)
{ {
return myEdgeMap.Find(PP); return myEdgeMap.Find(PP);
} }
// ============================================================================ //=================================================================================================
// Method : StepToTopoDS_Tool::ClearVertexMap
// Purpose :
// ============================================================================
void StepToTopoDS_Tool::ClearVertexMap() void StepToTopoDS_Tool::ClearVertexMap()
{ {
myVertexMap.Clear(); myVertexMap.Clear();
} }
// ============================================================================ //=================================================================================================
// Method : StepToTopoDS_Tool::IsVertexBound
// Purpose :
// ============================================================================
Standard_Boolean StepToTopoDS_Tool::IsVertexBound(const Handle(StepGeom_CartesianPoint)& PG) Standard_Boolean StepToTopoDS_Tool::IsVertexBound(const Handle(StepGeom_CartesianPoint)& PG)
{ {
return myVertexMap.IsBound(PG); return myVertexMap.IsBound(PG);
} }
// ============================================================================ //=================================================================================================
// Method : StepToTopoDS_Tool::BindVertex
// Purpose :
// ============================================================================
void StepToTopoDS_Tool::BindVertex(const Handle(StepGeom_CartesianPoint)& P, const TopoDS_Vertex& V) void StepToTopoDS_Tool::BindVertex(const Handle(StepGeom_CartesianPoint)& P, const TopoDS_Vertex& V)
{ {
@ -185,30 +159,21 @@ void StepToTopoDS_Tool::BindVertex(const Handle(StepGeom_CartesianPoint)& P, con
#endif #endif
} }
// ============================================================================ //=================================================================================================
// Method : StepToTopoDS_Tool::FindVertex
// Purpose :
// ============================================================================
const TopoDS_Vertex& StepToTopoDS_Tool::FindVertex(const Handle(StepGeom_CartesianPoint)& P) const TopoDS_Vertex& StepToTopoDS_Tool::FindVertex(const Handle(StepGeom_CartesianPoint)& P)
{ {
return myVertexMap.Find(P); return myVertexMap.Find(P);
} }
// ============================================================================ //=================================================================================================
// Method : ComputePCurve
// Purpose :
// ============================================================================
void StepToTopoDS_Tool::ComputePCurve(const Standard_Boolean B) void StepToTopoDS_Tool::ComputePCurve(const Standard_Boolean B)
{ {
myComputePC = B; myComputePC = B;
} }
// ============================================================================ //=================================================================================================
// Method : ComputePCurve
// Purpose :
// ============================================================================
Standard_Boolean StepToTopoDS_Tool::ComputePCurve() const Standard_Boolean StepToTopoDS_Tool::ComputePCurve() const
{ {

View File

@ -63,10 +63,8 @@
//: d8 //: d8
// Used in I-DEAS-like STP processing (ssv; 15.11.2010) // Used in I-DEAS-like STP processing (ssv; 15.11.2010)
// #define DEBUG // #define DEBUG
// ============================================================================ //=================================================================================================
// Method : DecodeMakeEdgeError
// Purpose :
// ============================================================================
static void DecodeMakeEdgeError(const BRepLib_MakeEdge& ME, static void DecodeMakeEdgeError(const BRepLib_MakeEdge& ME,
const Handle(Standard_Transient)& orig, const Handle(Standard_Transient)& orig,
const Handle(Geom_Curve)& myCurve, const Handle(Geom_Curve)& myCurve,
@ -135,10 +133,7 @@ static void DecodeMakeEdgeError(const BRepLib_MakeEdge& ME,
#endif #endif
} }
// ============================================================================ //=================================================================================================
// Method : StepToTopoDS_TranslateEdge::StepToTopoDS_TranslateEdge
// Purpose : Empty Constructor
// ============================================================================
static Handle(Geom_Curve) MakeCurve(const Handle(StepGeom_Curve)& C1, static Handle(Geom_Curve) MakeCurve(const Handle(StepGeom_Curve)& C1,
const Handle(Transfer_TransientProcess)& TP, const Handle(Transfer_TransientProcess)& TP,

View File

@ -75,19 +75,14 @@
#include <XSAlgo.hxx> #include <XSAlgo.hxx>
#include <XSAlgo_ShapeProcessor.hxx> #include <XSAlgo_ShapeProcessor.hxx>
// ============================================================================ //=================================================================================================
// Method : RemoveSinglePCurve
// Purpose :
// ============================================================================
static void RemoveSinglePCurve(const TopoDS_Edge& aEdge, const TopoDS_Face& aFace) static void RemoveSinglePCurve(const TopoDS_Edge& aEdge, const TopoDS_Face& aFace)
{ {
ShapeBuild_Edge().RemovePCurve(aEdge, aFace); ShapeBuild_Edge().RemovePCurve(aEdge, aFace);
} }
// ============================================================================ //=================================================================================================
// Method : RemovePCurves
// Purpose :
// ============================================================================
static void RemovePCurves(const TopoDS_Wire& aWire, const TopoDS_Face& aFace) static void RemovePCurves(const TopoDS_Wire& aWire, const TopoDS_Face& aFace)
{ {
@ -176,10 +171,7 @@ static void CheckPCurves(TopoDS_Wire& aWire,
} }
} }
// ============================================================================ //=================================================================================================
// Method : StepToTopoDS_TranslateEdgeLoop::StepToTopoDS_TranslateEdgeLoop
// Purpose : Empty Constructor
// ============================================================================
StepToTopoDS_TranslateEdgeLoop::StepToTopoDS_TranslateEdgeLoop() StepToTopoDS_TranslateEdgeLoop::StepToTopoDS_TranslateEdgeLoop()
: myError(StepToTopoDS_TranslateEdgeLoopOther) : myError(StepToTopoDS_TranslateEdgeLoopOther)

View File

@ -426,10 +426,8 @@ static Handle(Poly_Triangulation) CreatePolyTriangulation(
} }
} // namespace } // namespace
// ============================================================================ //=================================================================================================
// Method : StepToTopoDS_TranslateFace
// Purpose : Empty Constructor
// ============================================================================
StepToTopoDS_TranslateFace::StepToTopoDS_TranslateFace() StepToTopoDS_TranslateFace::StepToTopoDS_TranslateFace()
: myError(StepToTopoDS_TranslateFaceOther) : myError(StepToTopoDS_TranslateFaceOther)
{ {

View File

@ -41,20 +41,15 @@
#include <Transfer_TransientProcess.hxx> #include <Transfer_TransientProcess.hxx>
// #include <BRepAPI.hxx> // #include <BRepAPI.hxx>
// ============================================================================ //=================================================================================================
// Method :
// Purpose :
// ============================================================================
StepToTopoDS_TranslatePolyLoop::StepToTopoDS_TranslatePolyLoop() StepToTopoDS_TranslatePolyLoop::StepToTopoDS_TranslatePolyLoop()
: myError(StepToTopoDS_TranslatePolyLoopOther) : myError(StepToTopoDS_TranslatePolyLoopOther)
{ {
done = Standard_False; done = Standard_False;
} }
// ============================================================================ //=================================================================================================
// Method :
// Purpose :
// ============================================================================
StepToTopoDS_TranslatePolyLoop::StepToTopoDS_TranslatePolyLoop( StepToTopoDS_TranslatePolyLoop::StepToTopoDS_TranslatePolyLoop(
const Handle(StepShape_PolyLoop)& PL, const Handle(StepShape_PolyLoop)& PL,
@ -66,10 +61,7 @@ StepToTopoDS_TranslatePolyLoop::StepToTopoDS_TranslatePolyLoop(
Init(PL, T, S, F, theLocalFactors); Init(PL, T, S, F, theLocalFactors);
} }
// ============================================================================ //=================================================================================================
// Method :
// Purpose :
// ============================================================================
void StepToTopoDS_TranslatePolyLoop::Init(const Handle(StepShape_PolyLoop)& PL, void StepToTopoDS_TranslatePolyLoop::Init(const Handle(StepShape_PolyLoop)& PL,
StepToTopoDS_Tool& aTool, StepToTopoDS_Tool& aTool,
@ -199,10 +191,7 @@ void StepToTopoDS_TranslatePolyLoop::Init(const Handle(StepShape_PolyLoop)& PL,
} }
} }
// ============================================================================ //=================================================================================================
// Method :
// Purpose :
// ============================================================================
const TopoDS_Shape& StepToTopoDS_TranslatePolyLoop::Value() const const TopoDS_Shape& StepToTopoDS_TranslatePolyLoop::Value() const
{ {
@ -210,10 +199,7 @@ const TopoDS_Shape& StepToTopoDS_TranslatePolyLoop::Value() const
return myResult; return myResult;
} }
// ============================================================================ //=================================================================================================
// Method :
// Purpose :
// ============================================================================
StepToTopoDS_TranslatePolyLoopError StepToTopoDS_TranslatePolyLoop::Error() const StepToTopoDS_TranslatePolyLoopError StepToTopoDS_TranslatePolyLoop::Error() const
{ {

View File

@ -35,10 +35,8 @@
#include <Transfer_TransientProcess.hxx> #include <Transfer_TransientProcess.hxx>
#include <TransferBRep_ShapeBinder.hxx> #include <TransferBRep_ShapeBinder.hxx>
// ============================================================================ //=================================================================================================
// Method : StepToTopoDS_TranslateShell::StepToTopoDS_TranslateShell
// Purpose : Empty Constructor
// ============================================================================
StepToTopoDS_TranslateShell::StepToTopoDS_TranslateShell() StepToTopoDS_TranslateShell::StepToTopoDS_TranslateShell()
: myError(StepToTopoDS_TranslateShellOther) : myError(StepToTopoDS_TranslateShellOther)
{ {

View File

@ -30,10 +30,8 @@
#include <Transfer_TransientProcess.hxx> #include <Transfer_TransientProcess.hxx>
#include <TransferBRep_ShapeBinder.hxx> #include <TransferBRep_ShapeBinder.hxx>
// ============================================================================ //=================================================================================================
// Method : StepToTopoDS_TranslateSolid::StepToTopoDS_TranslateSolid
// Purpose : Empty Constructor
// ============================================================================
StepToTopoDS_TranslateSolid::StepToTopoDS_TranslateSolid() StepToTopoDS_TranslateSolid::StepToTopoDS_TranslateSolid()
: myError(StepToTopoDS_TranslateSolidOther) : myError(StepToTopoDS_TranslateSolidOther)
{ {

View File

@ -33,10 +33,8 @@
// #include <BRepAPI.hxx> // #include <BRepAPI.hxx>
// For I-DEAS-like processing (ssv; 15.11.2010) // For I-DEAS-like processing (ssv; 15.11.2010)
// ============================================================================ //=================================================================================================
// Method : StepToTopoDS_TranslateVertex::StepToTopoDS_TranslateVertex
// Purpose : Empty Constructor
// ============================================================================
StepToTopoDS_TranslateVertex::StepToTopoDS_TranslateVertex() StepToTopoDS_TranslateVertex::StepToTopoDS_TranslateVertex()
: myError(StepToTopoDS_TranslateVertexOther) : myError(StepToTopoDS_TranslateVertexOther)
{ {

View File

@ -33,10 +33,8 @@
#include <Transfer_TransientProcess.hxx> #include <Transfer_TransientProcess.hxx>
// #include <BRepAPI.hxx> // #include <BRepAPI.hxx>
// ============================================================================ //=================================================================================================
// Method : StepToTopoDS_TranslateVertexLoop::StepToTopoDS_TranslateVertexLoop
// Purpose : Empty Constructor
// ============================================================================
StepToTopoDS_TranslateVertexLoop::StepToTopoDS_TranslateVertexLoop() StepToTopoDS_TranslateVertexLoop::StepToTopoDS_TranslateVertexLoop()
: myError(StepToTopoDS_TranslateVertexLoopOther) : myError(StepToTopoDS_TranslateVertexLoopOther)
{ {

View File

@ -34,20 +34,16 @@
#include <TopoDSToStep_Tool.hxx> #include <TopoDSToStep_Tool.hxx>
#include <Transfer_FinderProcess.hxx> #include <Transfer_FinderProcess.hxx>
// ============================================================================ //=================================================================================================
// Method : TopoDSToStep_Builder
// Purpose :
// ============================================================================
TopoDSToStep_Builder::TopoDSToStep_Builder() TopoDSToStep_Builder::TopoDSToStep_Builder()
: myError(TopoDSToStep_BuilderOther) : myError(TopoDSToStep_BuilderOther)
{ {
done = Standard_False; done = Standard_False;
} }
// ============================================================================ //=================================================================================================
// Method : TopoDSToStep_Builder
// Purpose :
// ============================================================================
TopoDSToStep_Builder::TopoDSToStep_Builder(const TopoDS_Shape& aShape, TopoDSToStep_Builder::TopoDSToStep_Builder(const TopoDS_Shape& aShape,
TopoDSToStep_Tool& aTool, TopoDSToStep_Tool& aTool,
const Handle(Transfer_FinderProcess)& FP, const Handle(Transfer_FinderProcess)& FP,
@ -59,10 +55,8 @@ TopoDSToStep_Builder::TopoDSToStep_Builder(const TopoDS_Shape&
Init(aShape, aTool, FP, theTessellatedGeomParam, theLocalFactors, theProgress); Init(aShape, aTool, FP, theTessellatedGeomParam, theLocalFactors, theProgress);
} }
// ============================================================================ //=================================================================================================
// Method : Init
// Purpose :
// ============================================================================
void TopoDSToStep_Builder::Init(const TopoDS_Shape& aShape, void TopoDSToStep_Builder::Init(const TopoDS_Shape& aShape,
TopoDSToStep_Tool& myTool, TopoDSToStep_Tool& myTool,
const Handle(Transfer_FinderProcess)& FP, const Handle(Transfer_FinderProcess)& FP,

View File

@ -27,10 +27,8 @@
#include <TopoDS_Shape.hxx> #include <TopoDS_Shape.hxx>
#include <TopoDSToStep_FacetedTool.hxx> #include <TopoDSToStep_FacetedTool.hxx>
// ============================================================================ //=================================================================================================
// Method :
// Purpose :
// ============================================================================
TopoDSToStep_FacetedError TopoDSToStep_FacetedTool::CheckTopoDSShape(const TopoDS_Shape& aShape) TopoDSToStep_FacetedError TopoDSToStep_FacetedTool::CheckTopoDSShape(const TopoDS_Shape& aShape)
{ {
TopExp_Explorer FaceExp, EdgeExp; TopExp_Explorer FaceExp, EdgeExp;

View File

@ -52,20 +52,15 @@
#include <TopoDSToStep_WireframeBuilder.hxx> #include <TopoDSToStep_WireframeBuilder.hxx>
#include <Transfer_FinderProcess.hxx> #include <Transfer_FinderProcess.hxx>
// ============================================================================ //=================================================================================================
// Method : TopoDSToStep_Builder::TopoDSToStep_Builder
// Purpose :
// ============================================================================
TopoDSToStep_WireframeBuilder::TopoDSToStep_WireframeBuilder() TopoDSToStep_WireframeBuilder::TopoDSToStep_WireframeBuilder()
: myError(TopoDSToStep_BuilderOther) : myError(TopoDSToStep_BuilderOther)
{ {
done = Standard_False; done = Standard_False;
} }
// ============================================================================ //=================================================================================================
// Method : TopoDSToStep_Builder::TopoDSToStep_Builder
// Purpose :
// ============================================================================
TopoDSToStep_WireframeBuilder::TopoDSToStep_WireframeBuilder( TopoDSToStep_WireframeBuilder::TopoDSToStep_WireframeBuilder(
const TopoDS_Shape& aShape, const TopoDS_Shape& aShape,
@ -86,20 +81,14 @@ void TopoDSToStep_WireframeBuilder::Init(const TopoDS_Shape& aShape,
myResult = itemList; myResult = itemList;
} }
// ============================================================================ //=================================================================================================
// Method : TopoDSToStep_Builder::Error
// Purpose :
// ============================================================================
TopoDSToStep_BuilderError TopoDSToStep_WireframeBuilder::Error() const TopoDSToStep_BuilderError TopoDSToStep_WireframeBuilder::Error() const
{ {
return myError; return myError;
} }
// ============================================================================ //=================================================================================================
// Method : TopoDSToStep_Builder::Value
// Purpose :
// ============================================================================
const Handle(TColStd_HSequenceOfTransient)& TopoDSToStep_WireframeBuilder::Value() const const Handle(TColStd_HSequenceOfTransient)& TopoDSToStep_WireframeBuilder::Value() const
{ {

View File

@ -34,10 +34,7 @@ IMPLEMENT_STANDARD_RTTIEXT(VrmlData_Node, Standard_Transient)
static VrmlData_Scene MyDefaultScene; static VrmlData_Scene MyDefaultScene;
//======================================================================= //=================================================================================================
// function : IsEqual
// purpose : Global method
//=======================================================================
Standard_Boolean IsEqual(const Handle(VrmlData_Node)& theOne, const Handle(VrmlData_Node)& theTwo) Standard_Boolean IsEqual(const Handle(VrmlData_Node)& theOne, const Handle(VrmlData_Node)& theTwo)
{ {

View File

@ -68,10 +68,7 @@ Standard_Boolean XCAFDoc_AssemblyGraph::IsDirectLink(const Standard_Integer theN
return GetChildren(theNode1).Contains(theNode2); return GetChildren(theNode1).Contains(theNode2);
} }
// ======================================================================= //=================================================================================================
// function : GetNodeType
// purpose : Returns node type
// =======================================================================
XCAFDoc_AssemblyGraph::NodeType XCAFDoc_AssemblyGraph::GetNodeType( XCAFDoc_AssemblyGraph::NodeType XCAFDoc_AssemblyGraph::GetNodeType(
const Standard_Integer theNode) const const Standard_Integer theNode) const

View File

@ -138,10 +138,7 @@ void XCAFDoc_GraphNode::UnSetFather(const Standard_Integer Findex)
} }
} }
//======================================================================= //=================================================================================================
// function : UnSetFatherlink
// purpose : Remove link finily
//=======================================================================
void XCAFDoc_GraphNode::UnSetFatherlink(const Handle(XCAFDoc_GraphNode)& F) void XCAFDoc_GraphNode::UnSetFatherlink(const Handle(XCAFDoc_GraphNode)& F)
{ {
@ -175,10 +172,7 @@ void XCAFDoc_GraphNode::UnSetChild(const Standard_Integer Chindex)
} }
} }
//======================================================================= //=================================================================================================
// function : UnSetChildlink
// purpose : Remove link finily
//=======================================================================
void XCAFDoc_GraphNode::UnSetChildlink(const Handle(XCAFDoc_GraphNode)& Ch) void XCAFDoc_GraphNode::UnSetChildlink(const Handle(XCAFDoc_GraphNode)& Ch)
{ {

View File

@ -235,10 +235,7 @@ Standard_Boolean XSControl_Controller::RecognizeWriteTransient(
return myAdaptorWrite->Recognize(new Transfer_TransientMapper(obj)); return myAdaptorWrite->Recognize(new Transfer_TransientMapper(obj));
} }
//======================================================================= //=================================================================================================
// function : TransferFinder
// purpose : internal function
//=======================================================================
static IFSelect_ReturnStatus TransferFinder(const Handle(Transfer_ActorOfFinderProcess)& theActor, static IFSelect_ReturnStatus TransferFinder(const Handle(Transfer_ActorOfFinderProcess)& theActor,
const Handle(Transfer_Finder)& theMapper, const Handle(Transfer_Finder)& theMapper,

View File

@ -183,10 +183,7 @@ void DDataStd_DrawPresentation::Paste(const Handle(TDF_Attribute)& Into,
Handle(DDataStd_DrawPresentation)::DownCast(Into)->SetDrawable(myDrawable); Handle(DDataStd_DrawPresentation)::DownCast(Into)->SetDrawable(myDrawable);
} }
//======================================================================= //=================================================================================================
// function : AfterAddition
// purpose : erase if displayed
//=======================================================================
void DDataStd_DrawPresentation::AfterAddition() void DDataStd_DrawPresentation::AfterAddition()
{ {
@ -194,10 +191,7 @@ void DDataStd_DrawPresentation::AfterAddition()
// if (isDisplayed) DrawDisplay (); // if (isDisplayed) DrawDisplay ();
} }
//======================================================================= //=================================================================================================
// function : BeforeRemoval
// purpose : erase if displayed
//=======================================================================
void DDataStd_DrawPresentation::BeforeRemoval() void DDataStd_DrawPresentation::BeforeRemoval()
{ {
@ -205,10 +199,7 @@ void DDataStd_DrawPresentation::BeforeRemoval()
// if (isDisplayed) DrawErase (); // if (isDisplayed) DrawErase ();
} }
//======================================================================= //=================================================================================================
// function : BeforeForget
// purpose : erase if displayed
//=======================================================================
void DDataStd_DrawPresentation::BeforeForget() void DDataStd_DrawPresentation::BeforeForget()
{ {

View File

@ -731,10 +731,8 @@ Handle(TFunction_Function) DNaming::GetLastFunction(const Handle(TDataStd_UAttri
return aLastFun; return aLastFun;
} }
//======================================================================= //=================================================================================================
// function : GetObjectFromFunction
// purpose : Returns Object
//=======================================================================
Handle(TDataStd_UAttribute) DNaming::GetObjectFromFunction( Handle(TDataStd_UAttribute) DNaming::GetObjectFromFunction(
const Handle(TFunction_Function)& theFunction) const Handle(TFunction_Function)& theFunction)
{ {

View File

@ -42,10 +42,7 @@ static Standard_Real IntersectorTangency = Precision::PConfusion();
static Standard_Real HatcherConfusion2d = 1.e-8; static Standard_Real HatcherConfusion2d = 1.e-8;
static Standard_Real HatcherConfusion3d = 1.e-8; static Standard_Real HatcherConfusion3d = 1.e-8;
//======================================================================= //=================================================================================================
// Function : DBRep_IsoBuilder
// Purpose : Constructeur.
//=======================================================================
DBRep_IsoBuilder::DBRep_IsoBuilder(const TopoDS_Face& TopologicalFace, DBRep_IsoBuilder::DBRep_IsoBuilder(const TopoDS_Face& TopologicalFace,
const Standard_Real Infinite, const Standard_Real Infinite,

View File

@ -55,10 +55,7 @@ void Draw_Grid::Steps(const Standard_Real StepX,
myIsActive = myStepX > MinimumStep && myStepY > MinimumStep && myStepZ > MinimumStep; myIsActive = myStepX > MinimumStep && myStepY > MinimumStep && myStepZ > MinimumStep;
} }
//======================================================================= //=================================================================================================
// Function : DrawOn
// Purpose : Displays the grid.
//=======================================================================
void Draw_Grid::DrawOn(Draw_Display& Out) const void Draw_Grid::DrawOn(Draw_Display& Out) const
{ {

View File

@ -1183,10 +1183,8 @@ bool Draw::ParseInteger(const Standard_CString theExpressionString,
return true; return true;
} }
//======================================================================= //=================================================================================================
// function : Set
// purpose : set a TCL var
//=======================================================================
void Draw::Set(const Standard_CString Name, const Standard_CString val) void Draw::Set(const Standard_CString Name, const Standard_CString val)
{ {
Standard_PCharacter pName, pVal; Standard_PCharacter pName, pVal;

View File

@ -645,10 +645,8 @@ void DrawTrSurf::Set(const Standard_CString theName, const gp_Pnt2d& thePoint)
Draw::Set(theName, aDrawPoint); Draw::Set(theName, aDrawPoint);
} }
//======================================================================= //=================================================================================================
// function : Set
// purpose : Geometry from Geom
//=======================================================================
void DrawTrSurf::Set(const Standard_CString theName, void DrawTrSurf::Set(const Standard_CString theName,
const Handle(Geom_Geometry)& theGeometry, const Handle(Geom_Geometry)& theGeometry,
const Standard_Boolean isSenseMarker) const Standard_Boolean isSenseMarker)
@ -753,10 +751,8 @@ void DrawTrSurf::Set(const Standard_CString theName,
Draw::Set(theName, aDrawable); Draw::Set(theName, aDrawable);
} }
//======================================================================= //=================================================================================================
// function : Set
// purpose : Curve from Geom2d
//=======================================================================
void DrawTrSurf::Set(const Standard_CString theName, void DrawTrSurf::Set(const Standard_CString theName,
const Handle(Geom2d_Curve)& theCurve, const Handle(Geom2d_Curve)& theCurve,
const Standard_Boolean isSenseMarker) const Standard_Boolean isSenseMarker)

View File

@ -45,10 +45,7 @@ DrawTrSurf_Drawable::DrawTrSurf_Drawable(
{ {
} }
//======================================================================= //=================================================================================================
// function : DrawCurve2dOn
// purpose : draw a 2D curve
//=======================================================================
void DrawTrSurf_Drawable::DrawCurve2dOn(Adaptor2d_Curve2d& C, Draw_Display& aDisplay) const void DrawTrSurf_Drawable::DrawCurve2dOn(Adaptor2d_Curve2d& C, Draw_Display& aDisplay) const
{ {
@ -128,10 +125,7 @@ static void PlotCurve(Draw_Display& aDisplay,
} }
} }
//======================================================================= //=================================================================================================
// function : DrawCurveOn
// purpose : draw a 3D curve
//=======================================================================
void DrawTrSurf_Drawable::DrawCurveOn(Adaptor3d_Curve& C, Draw_Display& aDisplay) const void DrawTrSurf_Drawable::DrawCurveOn(Adaptor3d_Curve& C, Draw_Display& aDisplay) const
{ {

View File

@ -1155,10 +1155,8 @@ static Standard_Integer OCCN1(Draw_Interpretor& di, Standard_Integer argc, const
#include <BRepPrimAPI_MakeSphere.hxx> #include <BRepPrimAPI_MakeSphere.hxx>
#include <BRepAlgoAPI_Section.hxx> #include <BRepAlgoAPI_Section.hxx>
//======================================================================= //=================================================================================================
// function : OCCN2
// purpose : BOOLEAN OPERATION
//=======================================================================
static Standard_Integer OCCN2(Draw_Interpretor& di, Standard_Integer argc, const char** argv) static Standard_Integer OCCN2(Draw_Interpretor& di, Standard_Integer argc, const char** argv)
{ {
if (argc > 2) if (argc > 2)

View File

@ -918,10 +918,8 @@ void StructuralDump(Draw_Interpretor& theCommands,
} }
} }
//======================================================================= //=================================================================================================
// function : checkshape
// purpose : Checks a shape
//=======================================================================
static Standard_Integer checkshape(Draw_Interpretor& theCommands, static Standard_Integer checkshape(Draw_Interpretor& theCommands,
Standard_Integer narg, Standard_Integer narg,
const char** a) const char** a)

View File

@ -1720,10 +1720,7 @@ static Standard_Integer ROF(Draw_Interpretor& theCommands, Standard_Integer narg
return 0; return 0;
} }
//======================================================================= //=================================================================================================
// function : GLU
// purpose : Commande glue
//=======================================================================
static Standard_Integer GLU(Draw_Interpretor&, Standard_Integer narg, const char** a) static Standard_Integer GLU(Draw_Interpretor&, Standard_Integer narg, const char** a)
{ {

View File

@ -46,10 +46,7 @@ static Standard_Real ComputeArea(const gp_XY& theP1, const gp_XY& theP2, const g
return 0.5 * Abs((theP3 - theP1).Crossed(theP2 - theP1)); return 0.5 * Abs((theP3 - theP1).Crossed(theP2 - theP1));
} }
//======================================================================= //=================================================================================================
// function : Perform
// purpose : Performs checking
//=======================================================================
void MeshTest_CheckTopology::Perform(Draw_Interpretor& di) void MeshTest_CheckTopology::Perform(Draw_Interpretor& di)
{ {

View File

@ -990,11 +990,8 @@ static Standard_Integer DT_SplitSurface(Draw_Interpretor& di, Standard_Integer n
} }
//---------------gka //---------------gka
//======================================================================= //=================================================================================================
// function : offset2dcurve
// purpose :
//
//=======================================================================
static Standard_Integer offset2dcurve(Draw_Interpretor& di, static Standard_Integer offset2dcurve(Draw_Interpretor& di,
Standard_Integer argc, Standard_Integer argc,
const char** argv) const char** argv)
@ -1016,11 +1013,8 @@ static Standard_Integer offset2dcurve(Draw_Interpretor& di,
return 0; return 0;
} }
//======================================================================= //=================================================================================================
// function : offsetcurve
// purpose :
//
//=======================================================================
static Standard_Integer offsetcurve(Draw_Interpretor& di, Standard_Integer argc, const char** argv) static Standard_Integer offsetcurve(Draw_Interpretor& di, Standard_Integer argc, const char** argv)
{ {
if (argc < 5) if (argc < 5)

View File

@ -5866,10 +5866,8 @@ static int TextToBRep(Draw_Interpretor& /*theDI*/,
return 0; return 0;
} }
//======================================================================= //=================================================================================================
// function : VFont
// purpose : Font management
//=======================================================================
struct FontComparator struct FontComparator
{ {
bool operator()(const Handle(Font_SystemFont)& theFontA, const Handle(Font_SystemFont)& theFontB) bool operator()(const Handle(Font_SystemFont)& theFontA, const Handle(Font_SystemFont)& theFontB)

View File

@ -3329,10 +3329,7 @@ static int VZBuffTrihedron(Draw_Interpretor& /*theDI*/,
return 0; return 0;
} }
//============================================================================== //=================================================================================================
// function : VRotate
// purpose : Camera Rotating
//==============================================================================
static int VRotate(Draw_Interpretor& /*theDi*/, Standard_Integer theArgNb, const char** theArgVec) static int VRotate(Draw_Interpretor& /*theDi*/, Standard_Integer theArgNb, const char** theArgVec)
{ {

View File

@ -483,10 +483,8 @@ static Standard_Integer noteDelete(Draw_Interpretor& di, Standard_Integer argc,
return 0; return 0;
} }
//======================================================================= //=================================================================================================
// function : noteDeleteAll
// purpose : deletes all notes
//=======================================================================
static const cmd XNoteDeleteAll = {"XNoteDeleteAll", 2, "XNoteDeleteAll Doc"}; static const cmd XNoteDeleteAll = {"XNoteDeleteAll", 2, "XNoteDeleteAll Doc"};
static Standard_Integer noteDeleteAll(Draw_Interpretor& di, static Standard_Integer noteDeleteAll(Draw_Interpretor& di,

View File

@ -101,10 +101,8 @@ static bool parseCoordinateSystem(const char* theArg, RWMesh_CoordinateSystem& t
return Standard_True; return Standard_True;
} }
//============================================================================= //=================================================================================================
// function : ReadGltf
// purpose : Reads glTF file
//=============================================================================
static Standard_Integer ReadGltf(Draw_Interpretor& theDI, static Standard_Integer ReadGltf(Draw_Interpretor& theDI,
Standard_Integer theNbArgs, Standard_Integer theNbArgs,
const char** theArgVec) const char** theArgVec)
@ -286,10 +284,8 @@ static Standard_Integer ReadGltf(Draw_Interpretor& theDI,
return 0; return 0;
} }
//============================================================================= //=================================================================================================
// function : WriteGltf
// purpose : Writes glTF file
//=============================================================================
static Standard_Integer WriteGltf(Draw_Interpretor& theDI, static Standard_Integer WriteGltf(Draw_Interpretor& theDI,
Standard_Integer theNbArgs, Standard_Integer theNbArgs,
const char** theArgVec) const char** theArgVec)

View File

@ -55,10 +55,8 @@ static bool parseCoordinateSystem(const char* theArg, RWMesh_CoordinateSystem& t
return Standard_True; return Standard_True;
} }
//============================================================================= //=================================================================================================
// function : ReadObj
// purpose : Reads OBJ file
//=============================================================================
static Standard_Integer ReadObj(Draw_Interpretor& theDI, static Standard_Integer ReadObj(Draw_Interpretor& theDI,
Standard_Integer theNbArgs, Standard_Integer theNbArgs,
const char** theArgVec) const char** theArgVec)
@ -232,10 +230,8 @@ static Standard_Integer ReadObj(Draw_Interpretor& theDI,
return 0; return 0;
} }
///============================================================================= ///=================================================================================================
// function : WriteObj
// purpose : Writes OBJ file
//=============================================================================
static Standard_Integer WriteObj(Draw_Interpretor& theDI, static Standard_Integer WriteObj(Draw_Interpretor& theDI,
Standard_Integer theNbArgs, Standard_Integer theNbArgs,
const char** theArgVec) const char** theArgVec)

View File

@ -36,10 +36,8 @@
#include <XSControl_WorkSession.hxx> #include <XSControl_WorkSession.hxx>
#include <XSDRAW.hxx> #include <XSDRAW.hxx>
//======================================================================= //=================================================================================================
// function : writeply
// purpose : write PLY file
//=======================================================================
static Standard_Integer WritePly(Draw_Interpretor& theDI, static Standard_Integer WritePly(Draw_Interpretor& theDI,
Standard_Integer theNbArgs, Standard_Integer theNbArgs,
const char** theArgVec) const char** theArgVec)

View File

@ -77,10 +77,8 @@ static Standard_Integer writestl(Draw_Interpretor& di, Standard_Integer argc, co
return 0; return 0;
} }
//============================================================================= //=================================================================================================
// function : readstl
// purpose : Reads stl file
//=============================================================================
static Standard_Integer readstl(Draw_Interpretor& theDI, static Standard_Integer readstl(Draw_Interpretor& theDI,
Standard_Integer theArgc, Standard_Integer theArgc,
const char** theArgv) const char** theArgv)

View File

@ -23,10 +23,7 @@
IMPLEMENT_STANDARD_RTTIEXT(Poly_CoherentTriangulation, Standard_Transient) IMPLEMENT_STANDARD_RTTIEXT(Poly_CoherentTriangulation, Standard_Transient)
//======================================================================= //=================================================================================================
// function : Poly_CoherentTriangulation
// purpose : Empty constructor
//=======================================================================
Poly_CoherentTriangulation::Poly_CoherentTriangulation( Poly_CoherentTriangulation::Poly_CoherentTriangulation(
const Handle(NCollection_BaseAllocator)& theAlloc) const Handle(NCollection_BaseAllocator)& theAlloc)

View File

@ -29,10 +29,7 @@
TopLoc_Location::TopLoc_Location() {} TopLoc_Location::TopLoc_Location() {}
//======================================================================= //=================================================================================================
// function : TopLoc_Location
// purpose : constructor Datum
//=======================================================================
TopLoc_Location::TopLoc_Location(const Handle(TopLoc_Datum3D)& D) TopLoc_Location::TopLoc_Location(const Handle(TopLoc_Datum3D)& D)
{ {
@ -63,10 +60,7 @@ TopLoc_Location::operator gp_Trsf() const
return Transformation(); return Transformation();
} }
//======================================================================= //=================================================================================================
// function : Inverted
// purpose : return the inverse
//=======================================================================
TopLoc_Location TopLoc_Location::Inverted() const TopLoc_Location TopLoc_Location::Inverted() const
{ {
@ -137,10 +131,7 @@ TopLoc_Location TopLoc_Location::Predivided(const TopLoc_Location& Other) const
return Other.Inverted().Multiplied(*this); return Other.Inverted().Multiplied(*this);
} }
//======================================================================= //=================================================================================================
// function : Powered
// purpose : power elevation
//=======================================================================
TopLoc_Location TopLoc_Location::Powered(const Standard_Integer pwr) const TopLoc_Location TopLoc_Location::Powered(const Standard_Integer pwr) const
{ {
@ -165,10 +156,7 @@ TopLoc_Location TopLoc_Location::Powered(const Standard_Integer pwr) const
return Inverted().Powered(-pwr); return Inverted().Powered(-pwr);
} }
//======================================================================= //=================================================================================================
// function : IsEqual
// purpose : operator ==
//=======================================================================
// two locations are Equal if the Items have the same LocalValues and Powers // two locations are Equal if the Items have the same LocalValues and Powers
// this is a recursive function to test it // this is a recursive function to test it

View File

@ -18,10 +18,8 @@
static const Standard_Real CGOLD = 0.3819660; // 0.5*(3 - sqrt(5)); static const Standard_Real CGOLD = 0.3819660; // 0.5*(3 - sqrt(5));
//======================================================================= //=================================================================================================
// function : SHFT
// purpose : Shifts arguments
//=======================================================================
inline void SHFT(Standard_Real& theA, Standard_Real& theB, Standard_Real& theC, Standard_Real& theD) inline void SHFT(Standard_Real& theA, Standard_Real& theB, Standard_Real& theC, Standard_Real& theD)
{ {
theA = theB; theA = theB;

View File

@ -726,11 +726,8 @@ void FSD_File::ReadInfo(Standard_Integer& nbObj,
} }
} }
//======================================================================= //=================================================================================================
// function : ReadCompleteInfo
// purpose :
//
//=======================================================================
void FSD_File::ReadCompleteInfo(Standard_IStream& /*theIStream*/, Handle(Storage_Data)& /*theData*/) void FSD_File::ReadCompleteInfo(Standard_IStream& /*theIStream*/, Handle(Storage_Data)& /*theData*/)
{ {
} }

View File

@ -339,10 +339,7 @@ Handle(TColStd_HSequenceOfHExtendedString) Message_Algorithm::GetMessageStrings(
return Handle(TColStd_HSequenceOfHExtendedString)::DownCast(myReportStrings->Value(aFlagIndex)); return Handle(TColStd_HSequenceOfHExtendedString)::DownCast(myReportStrings->Value(aFlagIndex));
} }
//======================================================================= //=================================================================================================
// function : PrepareReport
// purpose : static method
//=======================================================================
TCollection_ExtendedString Message_Algorithm::PrepareReport( TCollection_ExtendedString Message_Algorithm::PrepareReport(
const Handle(TColStd_HPackedMapOfInteger)& theMapError, const Handle(TColStd_HPackedMapOfInteger)& theMapError,
@ -367,10 +364,7 @@ TCollection_ExtendedString Message_Algorithm::PrepareReport(
return aNewReport; return aNewReport;
} }
//======================================================================= //=================================================================================================
// function : PrepareReport
// purpose : static method
//=======================================================================
TCollection_ExtendedString Message_Algorithm::PrepareReport( TCollection_ExtendedString Message_Algorithm::PrepareReport(
const TColStd_SequenceOfHExtendedString& theReportSeq, const TColStd_SequenceOfHExtendedString& theReportSeq,

Some files were not shown because too many files have changed in this diff Show More