* Fixed - Unnecessary functions exported from OCC Topology Explorer code

This commit is contained in:
Philippose Rajan 2009-04-04 21:43:55 +00:00
parent 62c877a83d
commit 73451bace6
6 changed files with 241 additions and 241 deletions

View File

@ -55,46 +55,46 @@ class Partition_Inter2d {
public: public:
void* operator new(size_t,void* anAddress) void* operator new(size_t,void* anAddress)
{ {
return anAddress; return anAddress;
} }
void* operator new(size_t size) void* operator new(size_t size)
{ {
return Standard::Allocate(size); return Standard::Allocate(size);
} }
void operator delete(void *anAddress) void operator delete(void *anAddress)
{ {
if (anAddress) Standard::Free((Standard_Address&)anAddress); if (anAddress) Standard::Free((Standard_Address&)anAddress);
} }
// Methods PUBLIC // Methods PUBLIC
// //
Standard_EXPORT static void CompletPart2d(const Handle(BRepAlgo_AsDes)& AsDes,const TopoDS_Face& F,const TopTools_MapOfShape& NewEdges) ; static void CompletPart2d(const Handle(BRepAlgo_AsDes)& AsDes,const TopoDS_Face& F,const TopTools_MapOfShape& NewEdges) ;
Standard_EXPORT static TopoDS_Vertex FindEndVertex(const TopTools_ListOfShape& VertList,const Standard_Real f,const Standard_Real l,const TopoDS_Edge& E,Standard_Boolean& First,Standard_Real& DU) ; static TopoDS_Vertex FindEndVertex(const TopTools_ListOfShape& VertList,const Standard_Real f,const Standard_Real l,const TopoDS_Edge& E,Standard_Boolean& First,Standard_Real& DU) ;
Standard_EXPORT static TopoDS_Vertex AddVonE(const TopoDS_Vertex& V,const TopoDS_Edge& E1,const TopoDS_Edge& E2,const Handle(BRepAlgo_AsDes)& AsDes,const TopoDS_Face& F) ; static TopoDS_Vertex AddVonE(const TopoDS_Vertex& V,const TopoDS_Edge& E1,const TopoDS_Edge& E2,const Handle(BRepAlgo_AsDes)& AsDes,const TopoDS_Face& F) ;
Standard_EXPORT static Standard_Real GetTolerance(const TopoDS_Vertex& theV,const Standard_Real theU,const TopoDS_Edge& theE,const Handle(BRepAlgo_AsDes)& theAsDes) ; static Standard_Real GetTolerance(const TopoDS_Vertex& theV,const Standard_Real theU,const TopoDS_Edge& theE,const Handle(BRepAlgo_AsDes)& theAsDes) ;
protected: protected:
// Methods PROTECTED // Methods PROTECTED
// //
// Fields PROTECTED // Fields PROTECTED
// //
private: private:
// Methods PRIVATE // Methods PRIVATE
// //
// Fields PRIVATE // Fields PRIVATE
// //
}; };

View File

@ -63,37 +63,37 @@ class Partition_Inter3d {
public: public:
void* operator new(size_t,void* anAddress) void* operator new(size_t,void* anAddress)
{ {
return anAddress; return anAddress;
} }
void* operator new(size_t size) void* operator new(size_t size)
{ {
return Standard::Allocate(size); return Standard::Allocate(size);
} }
void operator delete(void *anAddress) void operator delete(void *anAddress)
{ {
if (anAddress) Standard::Free((Standard_Address&)anAddress); if (anAddress) Standard::Free((Standard_Address&)anAddress);
} }
// Methods PUBLIC // Methods PUBLIC
// //
Standard_EXPORT Partition_Inter3d(); Partition_Inter3d();
Standard_EXPORT Partition_Inter3d(const Handle(BRepAlgo_AsDes)& AsDes); Partition_Inter3d(const Handle(BRepAlgo_AsDes)& AsDes);
Standard_EXPORT void CompletPart3d(const TopTools_ListOfShape& SetOfFaces1,const TopTools_DataMapOfShapeShape& FaceShapeMap) ; void CompletPart3d(const TopTools_ListOfShape& SetOfFaces1,const TopTools_DataMapOfShapeShape& FaceShapeMap) ;
Standard_EXPORT void FacesPartition(const TopoDS_Face& F1,const TopoDS_Face& F2) ; void FacesPartition(const TopoDS_Face& F1,const TopoDS_Face& F2) ;
Standard_EXPORT Standard_Boolean IsDone(const TopoDS_Face& F1,const TopoDS_Face& F2) const; Standard_Boolean IsDone(const TopoDS_Face& F1,const TopoDS_Face& F2) const;
Standard_EXPORT TopTools_MapOfShape& TouchedFaces() ; TopTools_MapOfShape& TouchedFaces() ;
Standard_EXPORT Handle_BRepAlgo_AsDes AsDes() const; Handle_BRepAlgo_AsDes AsDes() const;
Standard_EXPORT TopTools_MapOfShape& NewEdges() ; TopTools_MapOfShape& NewEdges() ;
Standard_EXPORT Standard_Boolean HasSameDomainF(const TopoDS_Shape& F) const; Standard_Boolean HasSameDomainF(const TopoDS_Shape& F) const;
Standard_EXPORT Standard_Boolean IsSameDomainF(const TopoDS_Shape& F1,const TopoDS_Shape& F2) const; Standard_Boolean IsSameDomainF(const TopoDS_Shape& F1,const TopoDS_Shape& F2) const;
Standard_EXPORT const TopTools_ListOfShape& SameDomain(const TopoDS_Face& F) const; const TopTools_ListOfShape& SameDomain(const TopoDS_Face& F) const;
Standard_EXPORT TopoDS_Vertex ReplaceSameDomainV(const TopoDS_Vertex& V,const TopoDS_Edge& E) const; TopoDS_Vertex ReplaceSameDomainV(const TopoDS_Vertex& V,const TopoDS_Edge& E) const;
Standard_EXPORT Handle_BRepAlgo_AsDes SectionEdgesAD() const; Handle_BRepAlgo_AsDes SectionEdgesAD() const;
Standard_EXPORT Standard_Boolean IsSectionEdge(const TopoDS_Edge& E) const; Standard_Boolean IsSectionEdge(const TopoDS_Edge& E) const;
Standard_EXPORT Standard_Boolean HasSectionEdge(const TopoDS_Face& F) const; Standard_Boolean HasSectionEdge(const TopoDS_Face& F) const;
Standard_EXPORT Standard_Boolean IsSplitOn(const TopoDS_Edge& NewE,const TopoDS_Edge& OldE,const TopoDS_Face& F) const; Standard_Boolean IsSplitOn(const TopoDS_Edge& NewE,const TopoDS_Edge& OldE,const TopoDS_Face& F) const;
Standard_EXPORT const TopTools_ListOfShape& SectionEdgeFaces(const TopoDS_Edge& SecE) const; const TopTools_ListOfShape& SectionEdgeFaces(const TopoDS_Edge& SecE) const;
@ -101,33 +101,33 @@ Standard_EXPORT const TopTools_ListOfShape& SectionEdgeFaces(const TopoDS_Edge&
protected: protected:
// Methods PROTECTED // Methods PROTECTED
// //
// Fields PROTECTED // Fields PROTECTED
// //
private: private:
// Methods PRIVATE // Methods PRIVATE
// //
Standard_EXPORT void Inter3D(const TopoDS_Face& F1,const TopoDS_Face& F2,TopTools_ListOfShape& LInt) ; void Inter3D(const TopoDS_Face& F1,const TopoDS_Face& F2,TopTools_ListOfShape& LInt) ;
Standard_EXPORT void StorePart3d(const TopoDS_Face& F1,const TopoDS_Face& F2,const TopTools_ListOfShape& LInt1) ; void StorePart3d(const TopoDS_Face& F1,const TopoDS_Face& F2,const TopTools_ListOfShape& LInt1) ;
Standard_EXPORT void SetDone(const TopoDS_Face& F1,const TopoDS_Face& F2) ; void SetDone(const TopoDS_Face& F1,const TopoDS_Face& F2) ;
Standard_EXPORT void Affiche(const TopTools_ListOfShape& SetOfFaces) const; void Affiche(const TopTools_ListOfShape& SetOfFaces) const;
// Fields PRIVATE // Fields PRIVATE
// //
Handle_BRepAlgo_AsDes myAsDes; Handle_BRepAlgo_AsDes myAsDes;
TopTools_DataMapOfShapeListOfShape myDone; TopTools_DataMapOfShapeListOfShape myDone;
TopTools_MapOfShape myTouched; TopTools_MapOfShape myTouched;
TopTools_MapOfShape myNewEdges; TopTools_MapOfShape myNewEdges;
Handle_BRepAlgo_AsDes mySectionEdgesAD; Handle_BRepAlgo_AsDes mySectionEdgesAD;
TopTools_DataMapOfShapeListOfShape mySameDomainFM; TopTools_DataMapOfShapeListOfShape mySameDomainFM;
TopTools_DataMapOfShapeShape mySameDomainVM; TopTools_DataMapOfShapeShape mySameDomainVM;
}; };

View File

@ -52,57 +52,57 @@ class Partition_Loop {
public: public:
inline void* operator new(size_t,void* anAddress) inline void* operator new(size_t,void* anAddress)
{ {
return anAddress; return anAddress;
} }
inline void* operator new(size_t size) inline void* operator new(size_t size)
{ {
return Standard::Allocate(size); return Standard::Allocate(size);
} }
inline void operator delete(void *anAddress) inline void operator delete(void *anAddress)
{ {
if (anAddress) Standard::Free((Standard_Address&)anAddress); if (anAddress) Standard::Free((Standard_Address&)anAddress);
} }
// inline void operator delete(void *anAddress, size_t size) // inline void operator delete(void *anAddress, size_t size)
// { // {
// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
// } // }
// Methods PUBLIC // Methods PUBLIC
// //
Standard_EXPORT Partition_Loop(); Partition_Loop();
Standard_EXPORT void Init(const TopoDS_Face& F) ; void Init(const TopoDS_Face& F) ;
Standard_EXPORT void AddConstEdge(const TopoDS_Edge& E) ; void AddConstEdge(const TopoDS_Edge& E) ;
Standard_EXPORT void Perform() ; void Perform() ;
Standard_EXPORT const TopTools_ListOfShape& NewWires() const; const TopTools_ListOfShape& NewWires() const;
Standard_EXPORT void WiresToFaces() ; void WiresToFaces() ;
Standard_EXPORT const TopTools_ListOfShape& NewFaces() const; const TopTools_ListOfShape& NewFaces() const;
protected: protected:
// Methods PROTECTED // Methods PROTECTED
// //
// Fields PROTECTED // Fields PROTECTED
// //
private: private:
// Methods PRIVATE // Methods PRIVATE
// //
// Fields PRIVATE // Fields PRIVATE
// //
TopoDS_Face myFace; TopoDS_Face myFace;
TopTools_ListOfShape myConstEdges; TopTools_ListOfShape myConstEdges;
TopTools_ListOfShape myNewWires; TopTools_ListOfShape myNewWires;
TopTools_ListOfShape myNewFaces; TopTools_ListOfShape myNewFaces;
}; };

View File

@ -39,28 +39,28 @@ class Partition_Loop2d {
public: public:
void* operator new(size_t,void* anAddress) void* operator new(size_t,void* anAddress)
{ {
return anAddress; return anAddress;
} }
void* operator new(size_t size) void* operator new(size_t size)
{ {
return Standard::Allocate(size); return Standard::Allocate(size);
} }
void operator delete(void *anAddress) void operator delete(void *anAddress)
{ {
if (anAddress) Standard::Free((Standard_Address&)anAddress); if (anAddress) Standard::Free((Standard_Address&)anAddress);
} }
// Methods PUBLIC // Methods PUBLIC
// //
Standard_EXPORT Partition_Loop2d(); Partition_Loop2d();
Standard_EXPORT void Init(const TopoDS_Face& F) ; void Init(const TopoDS_Face& F) ;
Standard_EXPORT void AddConstEdge(const TopoDS_Edge& E) ; void AddConstEdge(const TopoDS_Edge& E) ;
Standard_EXPORT void AddSectionEdge(const TopoDS_Edge& E) ; void AddSectionEdge(const TopoDS_Edge& E) ;
Standard_EXPORT void Perform() ; void Perform() ;
Standard_EXPORT const TopTools_ListOfShape& NewWires() const; const TopTools_ListOfShape& NewWires() const;
Standard_EXPORT void WiresToFaces(const BRepAlgo_Image& EdgeImage) ; void WiresToFaces(const BRepAlgo_Image& EdgeImage) ;
Standard_EXPORT const TopTools_ListOfShape& NewFaces() const; const TopTools_ListOfShape& NewFaces() const;
@ -68,29 +68,29 @@ Standard_EXPORT const TopTools_ListOfShape& NewFaces() const;
protected: protected:
// Methods PROTECTED // Methods PROTECTED
// //
// Fields PROTECTED // Fields PROTECTED
// //
private: private:
// Methods PRIVATE // Methods PRIVATE
// //
// Fields PRIVATE // Fields PRIVATE
// //
TopoDS_Face myFace; TopoDS_Face myFace;
TopAbs_Orientation myFaceOri; TopAbs_Orientation myFaceOri;
TopTools_ListOfShape myConstEdges; TopTools_ListOfShape myConstEdges;
TopTools_ListOfShape myNewWires; TopTools_ListOfShape myNewWires;
TopTools_ListOfShape myNewFaces; TopTools_ListOfShape myNewFaces;
TopTools_ListOfShape myInternalWL; TopTools_ListOfShape myInternalWL;
TopTools_MapOfShape mySectionEdges; TopTools_MapOfShape mySectionEdges;
}; };

View File

@ -41,26 +41,26 @@ class Partition_Loop3d {
public: public:
void* operator new(size_t,void* anAddress) void* operator new(size_t,void* anAddress)
{ {
return anAddress; return anAddress;
} }
void* operator new(size_t size) void* operator new(size_t size)
{ {
return Standard::Allocate(size); return Standard::Allocate(size);
} }
void operator delete(void *anAddress) void operator delete(void *anAddress)
{ {
if (anAddress) Standard::Free((Standard_Address&)anAddress); if (anAddress) Standard::Free((Standard_Address&)anAddress);
} }
// Methods PUBLIC // Methods PUBLIC
// //
Standard_EXPORT Partition_Loop3d(); Partition_Loop3d();
Standard_EXPORT void AddConstFaces(const TopoDS_Shape& S) ; void AddConstFaces(const TopoDS_Shape& S) ;
Standard_EXPORT void AddSectionFaces(const TopoDS_Shape& S) ; void AddSectionFaces(const TopoDS_Shape& S) ;
Standard_EXPORT const TopTools_ListOfShape& MakeShells(const TopTools_MapOfOrientedShape& AvoidFacesMap) ; const TopTools_ListOfShape& MakeShells(const TopTools_MapOfOrientedShape& AvoidFacesMap) ;
Standard_EXPORT static Standard_Boolean IsInside(const TopoDS_Edge& E,const TopoDS_Face& F1,const TopoDS_Face& F2,const Standard_Boolean CountDot,Standard_Real& Dot,Standard_Boolean& GoodOri) ; static Standard_Boolean IsInside(const TopoDS_Edge& E,const TopoDS_Face& F1,const TopoDS_Face& F2,const Standard_Boolean CountDot,Standard_Real& Dot,Standard_Boolean& GoodOri) ;
Standard_EXPORT static gp_Vec Normal(const TopoDS_Edge& E,const TopoDS_Face& F) ; static gp_Vec Normal(const TopoDS_Edge& E,const TopoDS_Face& F) ;
@ -68,25 +68,25 @@ Standard_EXPORT static gp_Vec Normal(const TopoDS_Edge& E,const TopoDS_Face& F)
protected: protected:
// Methods PROTECTED // Methods PROTECTED
// //
// Fields PROTECTED // Fields PROTECTED
// //
private: private:
// Methods PRIVATE // Methods PRIVATE
// //
// Fields PRIVATE // Fields PRIVATE
// //
TopTools_ListOfShape myNewShells; TopTools_ListOfShape myNewShells;
TopTools_ListOfShape myFaces; TopTools_ListOfShape myFaces;
TopTools_IndexedDataMapOfShapeListOfShape myEFMap; TopTools_IndexedDataMapOfShapeListOfShape myEFMap;
}; };

View File

@ -60,28 +60,28 @@ class Partition_Spliter {
public: public:
void* operator new(size_t,void* anAddress) void* operator new(size_t,void* anAddress)
{ {
return anAddress; return anAddress;
} }
void* operator new(size_t size) void* operator new(size_t size)
{ {
return Standard::Allocate(size); return Standard::Allocate(size);
} }
void operator delete(void *anAddress) void operator delete(void *anAddress)
{ {
if (anAddress) Standard::Free((Standard_Address&)anAddress); if (anAddress) Standard::Free((Standard_Address&)anAddress);
} }
// Methods PUBLIC // Methods PUBLIC
// //
Standard_EXPORT Partition_Spliter(); Partition_Spliter();
Standard_EXPORT void AddShape(const TopoDS_Shape& S) ; void AddShape(const TopoDS_Shape& S) ;
Standard_EXPORT void AddTool(const TopoDS_Shape& S) ; void AddTool(const TopoDS_Shape& S) ;
Standard_EXPORT void Compute(const TopAbs_ShapeEnum Limit = TopAbs_SHAPE) ; void Compute(const TopAbs_ShapeEnum Limit = TopAbs_SHAPE) ;
Standard_EXPORT void KeepShapesInside(const TopoDS_Shape& S) ; void KeepShapesInside(const TopoDS_Shape& S) ;
Standard_EXPORT void RemoveShapesInside(const TopoDS_Shape& S) ; void RemoveShapesInside(const TopoDS_Shape& S) ;
Standard_EXPORT TopoDS_Shape Shape() const; TopoDS_Shape Shape() const;
Standard_EXPORT void Clear() ; void Clear() ;
@ -89,52 +89,52 @@ Standard_EXPORT void Clear() ;
protected: protected:
// Methods PROTECTED // Methods PROTECTED
// //
// Fields PROTECTED // Fields PROTECTED
// //
private: private:
// Methods PRIVATE // Methods PRIVATE
// //
Standard_EXPORT void MakeSolids(const TopoDS_Shape& Solid,TopTools_ListOfShape& Shells) ; void MakeSolids(const TopoDS_Shape& Solid,TopTools_ListOfShape& Shells) ;
Standard_EXPORT void MakeShells(const TopoDS_Shape& S,TopTools_ListOfShape& NS) ; void MakeShells(const TopoDS_Shape& S,TopTools_ListOfShape& NS) ;
Standard_EXPORT TopoDS_Shape MakeFaces(const TopoDS_Shape& S) ; TopoDS_Shape MakeFaces(const TopoDS_Shape& S) ;
Standard_EXPORT void MakeEdges(const TopoDS_Edge& E,const TopTools_ListOfShape& VOnE,TopTools_ListOfShape& NE) const; void MakeEdges(const TopoDS_Edge& E,const TopTools_ListOfShape& VOnE,TopTools_ListOfShape& NE) const;
Standard_EXPORT TopoDS_Shape FindFacesInside(const TopoDS_Shape& S,const Standard_Boolean CheckClosed = Standard_False,const Standard_Boolean All = Standard_False) ; TopoDS_Shape FindFacesInside(const TopoDS_Shape& S,const Standard_Boolean CheckClosed = Standard_False,const Standard_Boolean All = Standard_False) ;
Standard_EXPORT Standard_Boolean CheckTool(const TopoDS_Shape& S) ; Standard_Boolean CheckTool(const TopoDS_Shape& S) ;
Standard_EXPORT void MergeEqualEdges(const TopTools_ListOfShape& LE) ; void MergeEqualEdges(const TopTools_ListOfShape& LE) ;
Standard_EXPORT static Standard_Boolean IsInside(const TopoDS_Shape& S1,const TopoDS_Shape& S2) ; static Standard_Boolean IsInside(const TopoDS_Shape& S1,const TopoDS_Shape& S2) ;
Standard_EXPORT TopoDS_Shape GetOriginalShape(const TopoDS_Shape& aShape) const; TopoDS_Shape GetOriginalShape(const TopoDS_Shape& aShape) const;
Standard_EXPORT void FindToolsToReconstruct() ; void FindToolsToReconstruct() ;
// Fields PRIVATE // Fields PRIVATE
// //
TopAbs_ShapeEnum myDoneStep; TopAbs_ShapeEnum myDoneStep;
TopoDS_Compound myShape; TopoDS_Compound myShape;
BRep_Builder myBuilder; BRep_Builder myBuilder;
TopTools_ListOfShape myListShapes; TopTools_ListOfShape myListShapes;
TopTools_MapOfShape myMapFaces; TopTools_MapOfShape myMapFaces;
TopTools_MapOfShape myMapTools; TopTools_MapOfShape myMapTools;
TopTools_MapOfShape myEqualEdges; TopTools_MapOfShape myEqualEdges;
TopTools_MapOfShape myNewSection; TopTools_MapOfShape myNewSection;
TopTools_MapOfShape myClosedShapes; TopTools_MapOfShape myClosedShapes;
TopTools_MapOfShape mySharedFaces; TopTools_MapOfShape mySharedFaces;
TopTools_MapOfShape myWrappingSolid; TopTools_MapOfShape myWrappingSolid;
TopTools_DataMapOfShapeShape myFaceShapeMap; TopTools_DataMapOfShapeShape myFaceShapeMap;
TopTools_DataMapOfShapeShape myInternalFaces; TopTools_DataMapOfShapeShape myInternalFaces;
TopTools_DataMapOfShapeShape myIntNotClFaces; TopTools_DataMapOfShapeShape myIntNotClFaces;
Handle_BRepAlgo_AsDes myAsDes; Handle_BRepAlgo_AsDes myAsDes;
BRepAlgo_Image myImagesFaces; BRepAlgo_Image myImagesFaces;
BRepAlgo_Image myImagesEdges; BRepAlgo_Image myImagesEdges;
BRepAlgo_Image myImageShape; BRepAlgo_Image myImageShape;
Partition_Inter3d myInter3d; Partition_Inter3d myInter3d;
TopTools_MapOfOrientedShape myAddedFacesMap; TopTools_MapOfOrientedShape myAddedFacesMap;
}; };