mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0027562: Coding - avoid exporting of inline methods
This commit is contained in:
@@ -33,7 +33,7 @@ public:
|
||||
//! @param theTolerance tolerance to be used for identification of shot circles.
|
||||
//! @param theReservedSize size to be reserved for vector of circles.
|
||||
//! @param theAllocator memory allocator to be used by internal collections.
|
||||
Standard_EXPORT BRepMesh_CircleInspector(
|
||||
BRepMesh_CircleInspector(
|
||||
const Standard_Real theTolerance,
|
||||
const Standard_Integer theReservedSize,
|
||||
const Handle(NCollection_IncAllocator)& theAllocator)
|
||||
@@ -87,7 +87,7 @@ public:
|
||||
const Standard_Integer theTargetIndex);
|
||||
|
||||
//! Checks indices for equlity.
|
||||
Standard_EXPORT static Standard_Boolean IsEqual(
|
||||
static Standard_Boolean IsEqual(
|
||||
const Standard_Integer theIndex,
|
||||
const Standard_Integer theTargetIndex)
|
||||
{
|
||||
|
@@ -63,7 +63,7 @@ public: //! @name API for accessing mesh nodes.
|
||||
//! Finds the index of the given node.
|
||||
//! @param theNode node to find.
|
||||
//! @return index of the given element of zero if node is not in the mesh.
|
||||
Standard_EXPORT Standard_Integer IndexOf(const BRepMesh_Vertex& theNode)
|
||||
Standard_Integer IndexOf(const BRepMesh_Vertex& theNode)
|
||||
{
|
||||
return myNodes->FindIndex(theNode);
|
||||
}
|
||||
@@ -95,8 +95,8 @@ public: //! @name API for accessing mesh nodes.
|
||||
//! @param theIndex index of node to be removed.
|
||||
//! @param isForce if TRUE node will be removed even if movability
|
||||
//! is not Free.
|
||||
Standard_EXPORT void RemoveNode(const Standard_Integer theIndex,
|
||||
const Standard_Boolean isForce = Standard_False)
|
||||
void RemoveNode(const Standard_Integer theIndex,
|
||||
const Standard_Boolean isForce = Standard_False)
|
||||
{
|
||||
if (isForce || myNodes->FindKey(theIndex).Movability() == BRepMesh_Free)
|
||||
{
|
||||
@@ -131,7 +131,7 @@ public: //! @name API for accessing mesh links.
|
||||
//! Finds the index of the given link.
|
||||
//! @param theLink link to find.
|
||||
//! @return index of the given element of zero if link is not in the mesh.
|
||||
Standard_EXPORT Standard_Integer IndexOf(const BRepMesh_Edge& theLink) const
|
||||
Standard_Integer IndexOf(const BRepMesh_Edge& theLink) const
|
||||
{
|
||||
return myLinks.FindIndex(theLink);
|
||||
}
|
||||
@@ -139,7 +139,7 @@ public: //! @name API for accessing mesh links.
|
||||
//! Get link by the index.
|
||||
//! @param theIndex index of a link.
|
||||
//! @return link with the given index.
|
||||
Standard_EXPORT const BRepMesh_Edge& GetLink(const Standard_Integer theIndex)
|
||||
const BRepMesh_Edge& GetLink(const Standard_Integer theIndex)
|
||||
{
|
||||
return myLinks.FindKey(theIndex);
|
||||
}
|
||||
@@ -168,7 +168,7 @@ public: //! @name API for accessing mesh links.
|
||||
//! Returns indices of elements conected to the link with the given index.
|
||||
//! @param theLinkIndex index of link whose data should be retrieved.
|
||||
//! @return indices of elements conected to the link.
|
||||
Standard_EXPORT const BRepMesh_PairOfIndex& ElementsConnectedTo(
|
||||
const BRepMesh_PairOfIndex& ElementsConnectedTo(
|
||||
const Standard_Integer theLinkIndex) const
|
||||
{
|
||||
return myLinks.FindFromIndex(theLinkIndex);
|
||||
@@ -192,7 +192,7 @@ public: //! @name API for accessing mesh elements.
|
||||
//! Finds the index of the given element.
|
||||
//! @param theElement element to find.
|
||||
//! @return index of the given element of zero if element is not in the mesh.
|
||||
Standard_EXPORT Standard_Integer IndexOf(const BRepMesh_Triangle& theElement) const
|
||||
Standard_Integer IndexOf(const BRepMesh_Triangle& theElement) const
|
||||
{
|
||||
return myElements.FindIndex(theElement);
|
||||
}
|
||||
@@ -200,7 +200,7 @@ public: //! @name API for accessing mesh elements.
|
||||
//! Get element by the index.
|
||||
//! @param theIndex index of an element.
|
||||
//! @return element with the given index.
|
||||
Standard_EXPORT const BRepMesh_Triangle& GetElement(const Standard_Integer theIndex)
|
||||
const BRepMesh_Triangle& GetElement(const Standard_Integer theIndex)
|
||||
{
|
||||
return myElements.FindKey(theIndex);
|
||||
}
|
||||
@@ -254,7 +254,7 @@ public: //! @name Auxilary API
|
||||
|
||||
//! Substitutes deleted items by the last one from corresponding map
|
||||
//! to have only non-deleted elements, links or nodes in the structure.
|
||||
Standard_EXPORT void ClearDeleted()
|
||||
void ClearDeleted()
|
||||
{
|
||||
clearDeletedLinks();
|
||||
clearDeletedNodes();
|
||||
|
@@ -26,14 +26,14 @@ class BRepMesh_Edge : public BRepMesh_OrientedEdge
|
||||
public:
|
||||
|
||||
//! Default constructor.
|
||||
Standard_EXPORT BRepMesh_Edge()
|
||||
BRepMesh_Edge()
|
||||
: BRepMesh_OrientedEdge(),
|
||||
myMovability(BRepMesh_Deleted)
|
||||
{
|
||||
}
|
||||
|
||||
//! Constructs a link between two vertices.
|
||||
Standard_EXPORT BRepMesh_Edge(
|
||||
BRepMesh_Edge(
|
||||
const Standard_Integer theFirstNode,
|
||||
const Standard_Integer theLastNode,
|
||||
const BRepMesh_DegreeOfFreedom theMovability)
|
||||
|
@@ -27,14 +27,14 @@ public:
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
//! Default constructor.
|
||||
Standard_EXPORT BRepMesh_OrientedEdge()
|
||||
BRepMesh_OrientedEdge()
|
||||
: myFirstNode(-1),
|
||||
myLastNode(-1)
|
||||
{
|
||||
}
|
||||
|
||||
//! Constructs a link between two vertices.
|
||||
Standard_EXPORT BRepMesh_OrientedEdge(
|
||||
BRepMesh_OrientedEdge(
|
||||
const Standard_Integer theFirstNode,
|
||||
const Standard_Integer theLastNode)
|
||||
: myFirstNode(theFirstNode),
|
||||
@@ -57,7 +57,7 @@ public:
|
||||
//! Returns hash code for this edge.
|
||||
//! @param theUpper upper index in the container.
|
||||
//! @return hash code.
|
||||
Standard_EXPORT Standard_Integer HashCode(const Standard_Integer theUpper) const
|
||||
Standard_Integer HashCode(const Standard_Integer theUpper) const
|
||||
{
|
||||
return ::HashCode(myFirstNode + myLastNode, theUpper);
|
||||
}
|
||||
|
@@ -26,7 +26,7 @@ class BRepMesh_PairOfIndex
|
||||
public:
|
||||
|
||||
//! Default constructor
|
||||
Standard_EXPORT BRepMesh_PairOfIndex()
|
||||
BRepMesh_PairOfIndex()
|
||||
{
|
||||
Clear();
|
||||
}
|
||||
|
@@ -27,7 +27,7 @@ public:
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
//! Constructor. Creates empty pair with null fileds.
|
||||
Standard_EXPORT BRepMesh_PairOfPolygon()
|
||||
BRepMesh_PairOfPolygon()
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -33,7 +33,7 @@ public:
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
//! Default constructor.
|
||||
Standard_EXPORT BRepMesh_Triangle()
|
||||
BRepMesh_Triangle()
|
||||
: myEdge1(0),
|
||||
myEdge2(0),
|
||||
myEdge3(0),
|
||||
@@ -48,7 +48,7 @@ public:
|
||||
//! @param theEdges array of edges of triangle.
|
||||
//! @param theOrientations array of edge's orientations.
|
||||
//! @param theMovability movability of triangle.
|
||||
Standard_EXPORT BRepMesh_Triangle(
|
||||
BRepMesh_Triangle(
|
||||
const Standard_Integer (&theEdges)[3],
|
||||
const Standard_Boolean (&theOrientations)[3],
|
||||
const BRepMesh_DegreeOfFreedom theMovability)
|
||||
@@ -103,7 +103,7 @@ public:
|
||||
//! Returns hash code for this triangle.
|
||||
//! @param theUpper upper index in the container.
|
||||
//! @return hash code.
|
||||
Standard_EXPORT Standard_Integer HashCode(const Standard_Integer theUpper) const
|
||||
Standard_Integer HashCode(const Standard_Integer theUpper) const
|
||||
{
|
||||
return ::HashCode(myEdge1 + myEdge2 + myEdge3, theUpper);
|
||||
}
|
||||
@@ -111,7 +111,7 @@ public:
|
||||
//! Checks for equality with another triangle.
|
||||
//! @param theOther triangle to be checked against this one.
|
||||
//! @return TRUE if equal, FALSE if not.
|
||||
Standard_EXPORT Standard_Boolean IsEqual(const BRepMesh_Triangle& theOther) const
|
||||
Standard_Boolean IsEqual(const BRepMesh_Triangle& theOther) const
|
||||
{
|
||||
if (myMovability == BRepMesh_Deleted || theOther.myMovability == BRepMesh_Deleted)
|
||||
return Standard_False;
|
||||
@@ -141,7 +141,7 @@ public:
|
||||
}
|
||||
|
||||
//! Alias for IsEqual.
|
||||
Standard_EXPORT Standard_Boolean operator ==(const BRepMesh_Triangle& theOther) const
|
||||
Standard_Boolean operator ==(const BRepMesh_Triangle& theOther) const
|
||||
{
|
||||
return IsEqual(theOther);
|
||||
}
|
||||
|
@@ -31,7 +31,7 @@ public:
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
//! Default constructor
|
||||
Standard_EXPORT BRepMesh_Vertex()
|
||||
BRepMesh_Vertex()
|
||||
: myLocation3d(0),
|
||||
myMovability(BRepMesh_Free)
|
||||
{
|
||||
@@ -41,9 +41,9 @@ public:
|
||||
//! @param theUV position of vertex in parametric space.
|
||||
//! @param theLocation3d index of 3d point to be associated with vertex.
|
||||
//! @param theMovability movability of the vertex.
|
||||
Standard_EXPORT BRepMesh_Vertex(const gp_XY& theUV,
|
||||
const Standard_Integer theLocation3d,
|
||||
const BRepMesh_DegreeOfFreedom theMovability)
|
||||
BRepMesh_Vertex(const gp_XY& theUV,
|
||||
const Standard_Integer theLocation3d,
|
||||
const BRepMesh_DegreeOfFreedom theMovability)
|
||||
{
|
||||
Initialize(theUV, theLocation3d, theMovability);
|
||||
}
|
||||
@@ -52,9 +52,9 @@ public:
|
||||
//! @param theU U position of vertex in parametric space.
|
||||
//! @param theV V position of vertex in parametric space.
|
||||
//! @param theMovability movability of the vertex.
|
||||
Standard_EXPORT BRepMesh_Vertex(const Standard_Real theU,
|
||||
const Standard_Real theV,
|
||||
const BRepMesh_DegreeOfFreedom theMovability)
|
||||
BRepMesh_Vertex(const Standard_Real theU,
|
||||
const Standard_Real theV,
|
||||
const BRepMesh_DegreeOfFreedom theMovability)
|
||||
: myUV(theU, theV),
|
||||
myLocation3d(0),
|
||||
myMovability(theMovability)
|
||||
@@ -106,7 +106,7 @@ public:
|
||||
//! Returns hash code for this vertex.
|
||||
//! @param theUpper upper index in the container.
|
||||
//! @return hash code.
|
||||
Standard_EXPORT Standard_Integer HashCode(const Standard_Integer Upper) const
|
||||
Standard_Integer HashCode(const Standard_Integer Upper) const
|
||||
{
|
||||
return ::HashCode(Floor(1e5 * myUV.X()) * Floor(1e5 * myUV.Y()), Upper);
|
||||
}
|
||||
@@ -114,7 +114,7 @@ public:
|
||||
//! Checks for equality with another vertex.
|
||||
//! @param theOther vertex to be checked against this one.
|
||||
//! @return TRUE if equal, FALSE if not.
|
||||
Standard_EXPORT Standard_Boolean IsEqual(const BRepMesh_Vertex& theOther) const
|
||||
Standard_Boolean IsEqual(const BRepMesh_Vertex& theOther) const
|
||||
{
|
||||
if (myMovability == BRepMesh_Deleted ||
|
||||
theOther.myMovability == BRepMesh_Deleted)
|
||||
@@ -126,7 +126,7 @@ public:
|
||||
}
|
||||
|
||||
//! Alias for IsEqual.
|
||||
Standard_EXPORT Standard_Boolean operator ==(const BRepMesh_Vertex& Other) const
|
||||
Standard_Boolean operator ==(const BRepMesh_Vertex& Other) const
|
||||
{
|
||||
return IsEqual(Other);
|
||||
}
|
||||
|
@@ -31,7 +31,7 @@ public:
|
||||
|
||||
//! Constructor.
|
||||
//! @param theAllocator memory allocator to be used by internal collections.
|
||||
Standard_EXPORT BRepMesh_VertexInspector (
|
||||
BRepMesh_VertexInspector (
|
||||
const Handle(NCollection_IncAllocator)& theAllocator)
|
||||
: myResIndices(theAllocator),
|
||||
myVertices (new BRepMesh::VectorOfVertex),
|
||||
@@ -42,7 +42,7 @@ public:
|
||||
|
||||
//! Registers the given vertex.
|
||||
//! @param theVertex vertex to be registered.
|
||||
Standard_EXPORT Standard_Integer Add(const BRepMesh_Vertex& theVertex)
|
||||
Standard_Integer Add(const BRepMesh_Vertex& theVertex)
|
||||
{
|
||||
if( myDelNodes.IsEmpty() )
|
||||
{
|
||||
@@ -145,7 +145,7 @@ public:
|
||||
Standard_EXPORT NCollection_CellFilter_Action Inspect(const Standard_Integer theTargetIndex);
|
||||
|
||||
//! Checks indices for equlity.
|
||||
Standard_EXPORT static Standard_Boolean IsEqual(const Standard_Integer theIndex,
|
||||
static Standard_Boolean IsEqual(const Standard_Integer theIndex,
|
||||
const Standard_Integer theTargetIndex)
|
||||
{
|
||||
return (theIndex == theTargetIndex);
|
||||
|
@@ -41,7 +41,7 @@ public:
|
||||
const Handle(NCollection_IncAllocator)& theAllocator);
|
||||
|
||||
//! Sets new size of cell for cellfilter equal in both directions.
|
||||
Standard_EXPORT void SetCellSize(const Standard_Real theSize)
|
||||
void SetCellSize(const Standard_Real theSize)
|
||||
{
|
||||
myCellFilter.Reset(theSize, myAllocator);
|
||||
mySelector.Clear();
|
||||
@@ -50,8 +50,8 @@ public:
|
||||
//! Sets new size of cell for cellfilter.
|
||||
//! @param theSizeX size for X dimension.
|
||||
//! @param theSizeY size for Y dimension.
|
||||
Standard_EXPORT void SetCellSize(const Standard_Real theSizeX,
|
||||
const Standard_Real theSizeY)
|
||||
void SetCellSize(const Standard_Real theSizeX,
|
||||
const Standard_Real theSizeY)
|
||||
{
|
||||
Standard_Real aCellSizeC[2] = { theSizeX, theSizeY };
|
||||
NCollection_Array1<Standard_Real> aCellSize(aCellSizeC[0], 1, 2);
|
||||
@@ -61,7 +61,7 @@ public:
|
||||
|
||||
//! Sets the tolerance to be used for identification of
|
||||
//! coincident vertices equal for both dimensions.
|
||||
Standard_EXPORT void SetTolerance(const Standard_Real theTolerance)
|
||||
void SetTolerance(const Standard_Real theTolerance)
|
||||
{
|
||||
mySelector.SetTolerance( theTolerance );
|
||||
myTolerance[0] = theTolerance;
|
||||
@@ -72,8 +72,8 @@ public:
|
||||
//! coincident vertices.
|
||||
//! @param theToleranceX tolerance for X dimension.
|
||||
//! @param theToleranceY tolerance for Y dimension.
|
||||
Standard_EXPORT void SetTolerance(const Standard_Real theToleranceX,
|
||||
const Standard_Real theToleranceY)
|
||||
void SetTolerance(const Standard_Real theToleranceX,
|
||||
const Standard_Real theToleranceY)
|
||||
{
|
||||
mySelector.SetTolerance( theToleranceX, theToleranceY );
|
||||
myTolerance[0] = theToleranceX;
|
||||
@@ -84,8 +84,8 @@ public:
|
||||
//! coincident vertices.
|
||||
//! @param theToleranceX tolerance for X dimension.
|
||||
//! @param theToleranceY tolerance for Y dimension.
|
||||
Standard_EXPORT void GetTolerance(Standard_Real& theToleranceX,
|
||||
Standard_Real& theToleranceY)
|
||||
void GetTolerance(Standard_Real& theToleranceX,
|
||||
Standard_Real& theToleranceY)
|
||||
{
|
||||
theToleranceX = myTolerance[0];
|
||||
theToleranceY = myTolerance[1];
|
||||
@@ -122,7 +122,7 @@ public:
|
||||
}
|
||||
|
||||
//! Returns index of the given vertex.
|
||||
Standard_EXPORT Standard_Integer FindIndex(const BRepMesh_Vertex& theVertex)
|
||||
Standard_Integer FindIndex(const BRepMesh_Vertex& theVertex)
|
||||
{
|
||||
mySelector.SetPoint(theVertex.Coord());
|
||||
myCellFilter.Inspect (theVertex.Coord(), mySelector);
|
||||
|
Reference in New Issue
Block a user