1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00

0027562: Coding - avoid exporting of inline methods

This commit is contained in:
kgv 2016-06-03 15:35:52 +03:00 committed by bugmaster
parent 83b0f13a58
commit be5c360207
48 changed files with 195 additions and 195 deletions

View File

@ -349,10 +349,10 @@ public:
Standard_Boolean HasWidth() const; Standard_Boolean HasWidth() const;
//! Returns the width setting of the Interactive Object. //! Returns the width setting of the Interactive Object.
Standard_EXPORT Standard_Real Width() const; Standard_Real Width() const;
//! Returns true if the Interactive Object has a setting for material. //! Returns true if the Interactive Object has a setting for material.
Standard_EXPORT Standard_Boolean HasMaterial() const; Standard_Boolean HasMaterial() const;
//! Returns the current material setting. //! Returns the current material setting.
//! This will be on of the following materials: //! This will be on of the following materials:
@ -362,7 +362,7 @@ public:
//! - Pewter //! - Pewter
//! - Silver //! - Silver
//! - Stone. //! - Stone.
Standard_EXPORT virtual Graphic3d_NameOfMaterial Material() const; virtual Graphic3d_NameOfMaterial Material() const;
//! Sets the name aName for material defining this //! Sets the name aName for material defining this
//! display attribute for the interactive object. //! display attribute for the interactive object.

View File

@ -43,7 +43,7 @@ class BRepExtrema_DistShapeShape
//! create tool and load both shapes into it <br> //! create tool and load both shapes into it <br>
Standard_EXPORT BRepExtrema_DistShapeShape(const TopoDS_Shape& Shape1,const TopoDS_Shape& Shape2,const Standard_Real theDeflection,const Extrema_ExtFlag F = Extrema_ExtFlag_MINMAX,const Extrema_ExtAlgo A = Extrema_ExtAlgo_Grad); Standard_EXPORT BRepExtrema_DistShapeShape(const TopoDS_Shape& Shape1,const TopoDS_Shape& Shape2,const Standard_Real theDeflection,const Extrema_ExtFlag F = Extrema_ExtFlag_MINMAX,const Extrema_ExtAlgo A = Extrema_ExtAlgo_Grad);
Standard_EXPORT void SetDeflection(const Standard_Real theDeflection) void SetDeflection(const Standard_Real theDeflection)
{ {
myEps = theDeflection; myEps = theDeflection;
} }
@ -58,12 +58,12 @@ class BRepExtrema_DistShapeShape
//! Returns IsDone status. <br> //! Returns IsDone status. <br>
Standard_EXPORT Standard_Boolean Perform(); Standard_EXPORT Standard_Boolean Perform();
//! True if the minimum distance is found. <br> //! True if the minimum distance is found. <br>
Standard_EXPORT Standard_Boolean IsDone() const Standard_Boolean IsDone() const
{ {
return myIsDone; return myIsDone;
} }
//! Returns the number of solutions satisfying the minimum distance. <br> //! Returns the number of solutions satisfying the minimum distance. <br>
Standard_EXPORT Standard_Integer NbSolution() const Standard_Integer NbSolution() const
{ {
return mySolutionsShape1.Length(); return mySolutionsShape1.Length();
} }
@ -71,17 +71,17 @@ class BRepExtrema_DistShapeShape
Standard_EXPORT Standard_Real Value() const; Standard_EXPORT Standard_Real Value() const;
//! True if one of the shapes is a solid and the other shape <br> //! True if one of the shapes is a solid and the other shape <br>
//! is completely or partially inside the solid. <br> //! is completely or partially inside the solid. <br>
Standard_EXPORT Standard_Boolean InnerSolution() const Standard_Boolean InnerSolution() const
{ {
return myInnerSol; return myInnerSol;
} }
//! Returns the Point corresponding to the <N>th solution on the first Shape <br> //! Returns the Point corresponding to the <N>th solution on the first Shape <br>
Standard_EXPORT const gp_Pnt & PointOnShape1(const Standard_Integer N) const const gp_Pnt & PointOnShape1(const Standard_Integer N) const
{ {
return mySolutionsShape1.Value(N).Point(); return mySolutionsShape1.Value(N).Point();
} }
//! Returns the Point corresponding to the <N>th solution on the second Shape <br> //! Returns the Point corresponding to the <N>th solution on the second Shape <br>
Standard_EXPORT const gp_Pnt & PointOnShape2(const Standard_Integer N) const const gp_Pnt & PointOnShape2(const Standard_Integer N) const
{ {
return mySolutionsShape2.Value(N).Point(); return mySolutionsShape2.Value(N).Point();
} }
@ -90,7 +90,7 @@ class BRepExtrema_DistShapeShape
//! IsOnEdge => the Nth soluion on the first shape is on a Edge <br> //! IsOnEdge => the Nth soluion on the first shape is on a Edge <br>
//! IsInFace => the Nth solution on the first shape is inside a face <br> //! IsInFace => the Nth solution on the first shape is inside a face <br>
//! the corresponding support is obtained by the method SupportOnShape1 <br> //! the corresponding support is obtained by the method SupportOnShape1 <br>
Standard_EXPORT BRepExtrema_SupportType SupportTypeShape1(const Standard_Integer N) const BRepExtrema_SupportType SupportTypeShape1(const Standard_Integer N) const
{ {
return mySolutionsShape1.Value(N).SupportKind(); return mySolutionsShape1.Value(N).SupportKind();
} }
@ -99,7 +99,7 @@ class BRepExtrema_DistShapeShape
//! IsOnEdge => the Nth soluion on the secondt shape is on a Edge <br> //! IsOnEdge => the Nth soluion on the secondt shape is on a Edge <br>
//! IsInFace => the Nth solution on the second shape is inside a face <br> //! IsInFace => the Nth solution on the second shape is inside a face <br>
//! the corresponding support is obtained by the method SupportOnShape2 <br> //! the corresponding support is obtained by the method SupportOnShape2 <br>
Standard_EXPORT BRepExtrema_SupportType SupportTypeShape2(const Standard_Integer N) const BRepExtrema_SupportType SupportTypeShape2(const Standard_Integer N) const
{ {
return mySolutionsShape2.Value(N).SupportKind(); return mySolutionsShape2.Value(N).SupportKind();
} }
@ -124,12 +124,12 @@ class BRepExtrema_DistShapeShape
//! Prints on the stream o information on the current state of the object. <br> //! Prints on the stream o information on the current state of the object. <br>
Standard_EXPORT void Dump(Standard_OStream& o) const; Standard_EXPORT void Dump(Standard_OStream& o) const;
Standard_EXPORT void SetFlag(const Extrema_ExtFlag F) void SetFlag(const Extrema_ExtFlag F)
{ {
myFlag = F; myFlag = F;
} }
Standard_EXPORT void SetAlgo(const Extrema_ExtAlgo A) void SetAlgo(const Extrema_ExtAlgo A)
{ {
myAlgo = A; myAlgo = A;
} }

View File

@ -33,7 +33,7 @@ public:
//! @param theTolerance tolerance to be used for identification of shot circles. //! @param theTolerance tolerance to be used for identification of shot circles.
//! @param theReservedSize size to be reserved for vector of circles. //! @param theReservedSize size to be reserved for vector of circles.
//! @param theAllocator memory allocator to be used by internal collections. //! @param theAllocator memory allocator to be used by internal collections.
Standard_EXPORT BRepMesh_CircleInspector( BRepMesh_CircleInspector(
const Standard_Real theTolerance, const Standard_Real theTolerance,
const Standard_Integer theReservedSize, const Standard_Integer theReservedSize,
const Handle(NCollection_IncAllocator)& theAllocator) const Handle(NCollection_IncAllocator)& theAllocator)
@ -87,7 +87,7 @@ public:
const Standard_Integer theTargetIndex); const Standard_Integer theTargetIndex);
//! Checks indices for equlity. //! Checks indices for equlity.
Standard_EXPORT static Standard_Boolean IsEqual( static Standard_Boolean IsEqual(
const Standard_Integer theIndex, const Standard_Integer theIndex,
const Standard_Integer theTargetIndex) const Standard_Integer theTargetIndex)
{ {

View File

@ -63,7 +63,7 @@ public: //! @name API for accessing mesh nodes.
//! Finds the index of the given node. //! Finds the index of the given node.
//! @param theNode node to find. //! @param theNode node to find.
//! @return index of the given element of zero if node is not in the mesh. //! @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); return myNodes->FindIndex(theNode);
} }
@ -95,8 +95,8 @@ public: //! @name API for accessing mesh nodes.
//! @param theIndex index of node to be removed. //! @param theIndex index of node to be removed.
//! @param isForce if TRUE node will be removed even if movability //! @param isForce if TRUE node will be removed even if movability
//! is not Free. //! is not Free.
Standard_EXPORT void RemoveNode(const Standard_Integer theIndex, void RemoveNode(const Standard_Integer theIndex,
const Standard_Boolean isForce = Standard_False) const Standard_Boolean isForce = Standard_False)
{ {
if (isForce || myNodes->FindKey(theIndex).Movability() == BRepMesh_Free) 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. //! Finds the index of the given link.
//! @param theLink link to find. //! @param theLink link to find.
//! @return index of the given element of zero if link is not in the mesh. //! @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); return myLinks.FindIndex(theLink);
} }
@ -139,7 +139,7 @@ public: //! @name API for accessing mesh links.
//! Get link by the index. //! Get link by the index.
//! @param theIndex index of a link. //! @param theIndex index of a link.
//! @return link with the given index. //! @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); 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. //! Returns indices of elements conected to the link with the given index.
//! @param theLinkIndex index of link whose data should be retrieved. //! @param theLinkIndex index of link whose data should be retrieved.
//! @return indices of elements conected to the link. //! @return indices of elements conected to the link.
Standard_EXPORT const BRepMesh_PairOfIndex& ElementsConnectedTo( const BRepMesh_PairOfIndex& ElementsConnectedTo(
const Standard_Integer theLinkIndex) const const Standard_Integer theLinkIndex) const
{ {
return myLinks.FindFromIndex(theLinkIndex); return myLinks.FindFromIndex(theLinkIndex);
@ -192,7 +192,7 @@ public: //! @name API for accessing mesh elements.
//! Finds the index of the given element. //! Finds the index of the given element.
//! @param theElement element to find. //! @param theElement element to find.
//! @return index of the given element of zero if element is not in the mesh. //! @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); return myElements.FindIndex(theElement);
} }
@ -200,7 +200,7 @@ public: //! @name API for accessing mesh elements.
//! Get element by the index. //! Get element by the index.
//! @param theIndex index of an element. //! @param theIndex index of an element.
//! @return element with the given index. //! @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); return myElements.FindKey(theIndex);
} }
@ -254,7 +254,7 @@ public: //! @name Auxilary API
//! Substitutes deleted items by the last one from corresponding map //! Substitutes deleted items by the last one from corresponding map
//! to have only non-deleted elements, links or nodes in the structure. //! to have only non-deleted elements, links or nodes in the structure.
Standard_EXPORT void ClearDeleted() void ClearDeleted()
{ {
clearDeletedLinks(); clearDeletedLinks();
clearDeletedNodes(); clearDeletedNodes();

View File

@ -26,14 +26,14 @@ class BRepMesh_Edge : public BRepMesh_OrientedEdge
public: public:
//! Default constructor. //! Default constructor.
Standard_EXPORT BRepMesh_Edge() BRepMesh_Edge()
: BRepMesh_OrientedEdge(), : BRepMesh_OrientedEdge(),
myMovability(BRepMesh_Deleted) myMovability(BRepMesh_Deleted)
{ {
} }
//! Constructs a link between two vertices. //! Constructs a link between two vertices.
Standard_EXPORT BRepMesh_Edge( BRepMesh_Edge(
const Standard_Integer theFirstNode, const Standard_Integer theFirstNode,
const Standard_Integer theLastNode, const Standard_Integer theLastNode,
const BRepMesh_DegreeOfFreedom theMovability) const BRepMesh_DegreeOfFreedom theMovability)

View File

@ -27,14 +27,14 @@ public:
DEFINE_STANDARD_ALLOC DEFINE_STANDARD_ALLOC
//! Default constructor. //! Default constructor.
Standard_EXPORT BRepMesh_OrientedEdge() BRepMesh_OrientedEdge()
: myFirstNode(-1), : myFirstNode(-1),
myLastNode(-1) myLastNode(-1)
{ {
} }
//! Constructs a link between two vertices. //! Constructs a link between two vertices.
Standard_EXPORT BRepMesh_OrientedEdge( BRepMesh_OrientedEdge(
const Standard_Integer theFirstNode, const Standard_Integer theFirstNode,
const Standard_Integer theLastNode) const Standard_Integer theLastNode)
: myFirstNode(theFirstNode), : myFirstNode(theFirstNode),
@ -57,7 +57,7 @@ public:
//! Returns hash code for this edge. //! Returns hash code for this edge.
//! @param theUpper upper index in the container. //! @param theUpper upper index in the container.
//! @return hash code. //! @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); return ::HashCode(myFirstNode + myLastNode, theUpper);
} }

View File

@ -26,7 +26,7 @@ class BRepMesh_PairOfIndex
public: public:
//! Default constructor //! Default constructor
Standard_EXPORT BRepMesh_PairOfIndex() BRepMesh_PairOfIndex()
{ {
Clear(); Clear();
} }

View File

@ -27,7 +27,7 @@ public:
DEFINE_STANDARD_ALLOC DEFINE_STANDARD_ALLOC
//! Constructor. Creates empty pair with null fileds. //! Constructor. Creates empty pair with null fileds.
Standard_EXPORT BRepMesh_PairOfPolygon() BRepMesh_PairOfPolygon()
{ {
} }

View File

@ -33,7 +33,7 @@ public:
DEFINE_STANDARD_ALLOC DEFINE_STANDARD_ALLOC
//! Default constructor. //! Default constructor.
Standard_EXPORT BRepMesh_Triangle() BRepMesh_Triangle()
: myEdge1(0), : myEdge1(0),
myEdge2(0), myEdge2(0),
myEdge3(0), myEdge3(0),
@ -48,7 +48,7 @@ public:
//! @param theEdges array of edges of triangle. //! @param theEdges array of edges of triangle.
//! @param theOrientations array of edge's orientations. //! @param theOrientations array of edge's orientations.
//! @param theMovability movability of triangle. //! @param theMovability movability of triangle.
Standard_EXPORT BRepMesh_Triangle( BRepMesh_Triangle(
const Standard_Integer (&theEdges)[3], const Standard_Integer (&theEdges)[3],
const Standard_Boolean (&theOrientations)[3], const Standard_Boolean (&theOrientations)[3],
const BRepMesh_DegreeOfFreedom theMovability) const BRepMesh_DegreeOfFreedom theMovability)
@ -103,7 +103,7 @@ public:
//! Returns hash code for this triangle. //! Returns hash code for this triangle.
//! @param theUpper upper index in the container. //! @param theUpper upper index in the container.
//! @return hash code. //! @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); return ::HashCode(myEdge1 + myEdge2 + myEdge3, theUpper);
} }
@ -111,7 +111,7 @@ public:
//! Checks for equality with another triangle. //! Checks for equality with another triangle.
//! @param theOther triangle to be checked against this one. //! @param theOther triangle to be checked against this one.
//! @return TRUE if equal, FALSE if not. //! @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) if (myMovability == BRepMesh_Deleted || theOther.myMovability == BRepMesh_Deleted)
return Standard_False; return Standard_False;
@ -141,7 +141,7 @@ public:
} }
//! Alias for IsEqual. //! Alias for IsEqual.
Standard_EXPORT Standard_Boolean operator ==(const BRepMesh_Triangle& theOther) const Standard_Boolean operator ==(const BRepMesh_Triangle& theOther) const
{ {
return IsEqual(theOther); return IsEqual(theOther);
} }

View File

@ -31,7 +31,7 @@ public:
DEFINE_STANDARD_ALLOC DEFINE_STANDARD_ALLOC
//! Default constructor //! Default constructor
Standard_EXPORT BRepMesh_Vertex() BRepMesh_Vertex()
: myLocation3d(0), : myLocation3d(0),
myMovability(BRepMesh_Free) myMovability(BRepMesh_Free)
{ {
@ -41,9 +41,9 @@ public:
//! @param theUV position of vertex in parametric space. //! @param theUV position of vertex in parametric space.
//! @param theLocation3d index of 3d point to be associated with vertex. //! @param theLocation3d index of 3d point to be associated with vertex.
//! @param theMovability movability of the vertex. //! @param theMovability movability of the vertex.
Standard_EXPORT BRepMesh_Vertex(const gp_XY& theUV, BRepMesh_Vertex(const gp_XY& theUV,
const Standard_Integer theLocation3d, const Standard_Integer theLocation3d,
const BRepMesh_DegreeOfFreedom theMovability) const BRepMesh_DegreeOfFreedom theMovability)
{ {
Initialize(theUV, theLocation3d, theMovability); Initialize(theUV, theLocation3d, theMovability);
} }
@ -52,9 +52,9 @@ public:
//! @param theU U position of vertex in parametric space. //! @param theU U position of vertex in parametric space.
//! @param theV V position of vertex in parametric space. //! @param theV V position of vertex in parametric space.
//! @param theMovability movability of the vertex. //! @param theMovability movability of the vertex.
Standard_EXPORT BRepMesh_Vertex(const Standard_Real theU, BRepMesh_Vertex(const Standard_Real theU,
const Standard_Real theV, const Standard_Real theV,
const BRepMesh_DegreeOfFreedom theMovability) const BRepMesh_DegreeOfFreedom theMovability)
: myUV(theU, theV), : myUV(theU, theV),
myLocation3d(0), myLocation3d(0),
myMovability(theMovability) myMovability(theMovability)
@ -106,7 +106,7 @@ public:
//! Returns hash code for this vertex. //! Returns hash code for this vertex.
//! @param theUpper upper index in the container. //! @param theUpper upper index in the container.
//! @return hash code. //! @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); return ::HashCode(Floor(1e5 * myUV.X()) * Floor(1e5 * myUV.Y()), Upper);
} }
@ -114,7 +114,7 @@ public:
//! Checks for equality with another vertex. //! Checks for equality with another vertex.
//! @param theOther vertex to be checked against this one. //! @param theOther vertex to be checked against this one.
//! @return TRUE if equal, FALSE if not. //! @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 || if (myMovability == BRepMesh_Deleted ||
theOther.myMovability == BRepMesh_Deleted) theOther.myMovability == BRepMesh_Deleted)
@ -126,7 +126,7 @@ public:
} }
//! Alias for IsEqual. //! Alias for IsEqual.
Standard_EXPORT Standard_Boolean operator ==(const BRepMesh_Vertex& Other) const Standard_Boolean operator ==(const BRepMesh_Vertex& Other) const
{ {
return IsEqual(Other); return IsEqual(Other);
} }

View File

@ -31,7 +31,7 @@ public:
//! Constructor. //! Constructor.
//! @param theAllocator memory allocator to be used by internal collections. //! @param theAllocator memory allocator to be used by internal collections.
Standard_EXPORT BRepMesh_VertexInspector ( BRepMesh_VertexInspector (
const Handle(NCollection_IncAllocator)& theAllocator) const Handle(NCollection_IncAllocator)& theAllocator)
: myResIndices(theAllocator), : myResIndices(theAllocator),
myVertices (new BRepMesh::VectorOfVertex), myVertices (new BRepMesh::VectorOfVertex),
@ -42,7 +42,7 @@ public:
//! Registers the given vertex. //! Registers the given vertex.
//! @param theVertex vertex to be registered. //! @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() ) if( myDelNodes.IsEmpty() )
{ {
@ -145,7 +145,7 @@ public:
Standard_EXPORT NCollection_CellFilter_Action Inspect(const Standard_Integer theTargetIndex); Standard_EXPORT NCollection_CellFilter_Action Inspect(const Standard_Integer theTargetIndex);
//! Checks indices for equlity. //! 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) const Standard_Integer theTargetIndex)
{ {
return (theIndex == theTargetIndex); return (theIndex == theTargetIndex);

View File

@ -41,7 +41,7 @@ public:
const Handle(NCollection_IncAllocator)& theAllocator); const Handle(NCollection_IncAllocator)& theAllocator);
//! Sets new size of cell for cellfilter equal in both directions. //! 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); myCellFilter.Reset(theSize, myAllocator);
mySelector.Clear(); mySelector.Clear();
@ -50,8 +50,8 @@ public:
//! Sets new size of cell for cellfilter. //! Sets new size of cell for cellfilter.
//! @param theSizeX size for X dimension. //! @param theSizeX size for X dimension.
//! @param theSizeY size for Y dimension. //! @param theSizeY size for Y dimension.
Standard_EXPORT void SetCellSize(const Standard_Real theSizeX, void SetCellSize(const Standard_Real theSizeX,
const Standard_Real theSizeY) const Standard_Real theSizeY)
{ {
Standard_Real aCellSizeC[2] = { theSizeX, theSizeY }; Standard_Real aCellSizeC[2] = { theSizeX, theSizeY };
NCollection_Array1<Standard_Real> aCellSize(aCellSizeC[0], 1, 2); NCollection_Array1<Standard_Real> aCellSize(aCellSizeC[0], 1, 2);
@ -61,7 +61,7 @@ public:
//! Sets the tolerance to be used for identification of //! Sets the tolerance to be used for identification of
//! coincident vertices equal for both dimensions. //! coincident vertices equal for both dimensions.
Standard_EXPORT void SetTolerance(const Standard_Real theTolerance) void SetTolerance(const Standard_Real theTolerance)
{ {
mySelector.SetTolerance( theTolerance ); mySelector.SetTolerance( theTolerance );
myTolerance[0] = theTolerance; myTolerance[0] = theTolerance;
@ -72,8 +72,8 @@ public:
//! coincident vertices. //! coincident vertices.
//! @param theToleranceX tolerance for X dimension. //! @param theToleranceX tolerance for X dimension.
//! @param theToleranceY tolerance for Y dimension. //! @param theToleranceY tolerance for Y dimension.
Standard_EXPORT void SetTolerance(const Standard_Real theToleranceX, void SetTolerance(const Standard_Real theToleranceX,
const Standard_Real theToleranceY) const Standard_Real theToleranceY)
{ {
mySelector.SetTolerance( theToleranceX, theToleranceY ); mySelector.SetTolerance( theToleranceX, theToleranceY );
myTolerance[0] = theToleranceX; myTolerance[0] = theToleranceX;
@ -84,8 +84,8 @@ public:
//! coincident vertices. //! coincident vertices.
//! @param theToleranceX tolerance for X dimension. //! @param theToleranceX tolerance for X dimension.
//! @param theToleranceY tolerance for Y dimension. //! @param theToleranceY tolerance for Y dimension.
Standard_EXPORT void GetTolerance(Standard_Real& theToleranceX, void GetTolerance(Standard_Real& theToleranceX,
Standard_Real& theToleranceY) Standard_Real& theToleranceY)
{ {
theToleranceX = myTolerance[0]; theToleranceX = myTolerance[0];
theToleranceY = myTolerance[1]; theToleranceY = myTolerance[1];
@ -122,7 +122,7 @@ public:
} }
//! Returns index of the given vertex. //! 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()); mySelector.SetPoint(theVertex.Coord());
myCellFilter.Inspect (theVertex.Coord(), mySelector); myCellFilter.Inspect (theVertex.Coord(), mySelector);

View File

@ -54,7 +54,7 @@ public:
Standard_EXPORT void Add (const gp_XY& thePnt); Standard_EXPORT void Add (const gp_XY& thePnt);
//! Update the box by a point. //! Update the box by a point.
Standard_EXPORT void Add (const gp_Pnt2d& thePnt); void Add (const gp_Pnt2d& thePnt);
//! Update the box by another box. //! Update the box by another box.
void Add (const Bnd_B2d& theBox); void Add (const Bnd_B2d& theBox);

View File

@ -339,7 +339,7 @@ public:
//! The point P must be on the curve. These functions are //! The point P must be on the curve. These functions are
//! not protected, however, and if point P is not on the //! not protected, however, and if point P is not on the
//! curve, an exception may be raised. //! curve, an exception may be raised.
Standard_EXPORT static Standard_Real Parameter (const gp_Lin& L, const gp_Pnt& P); static Standard_Real Parameter (const gp_Lin& L, const gp_Pnt& P);
//! parametrization //! parametrization
//! P (U) = L.Location() + U * L.Direction() //! P (U) = L.Location() + U * L.Direction()

View File

@ -39,7 +39,7 @@
* - Fail flags correspond to cases when algorithm failed to complete * - Fail flags correspond to cases when algorithm failed to complete
*/ */
class Standard_EXPORT Message_ExecStatus class Message_ExecStatus
{ {
private: private:

View File

@ -162,11 +162,11 @@ public:
//! Returns current number of opened scopes //! Returns current number of opened scopes
//! This number is always >=1 as top-level scale is always present //! This number is always >=1 as top-level scale is always present
Standard_EXPORT Standard_Integer GetNbScopes() const; Standard_Integer GetNbScopes() const;
//! Returns data for scale of index-th scope //! Returns data for scale of index-th scope
//! The first scope is current one, the last is the top-level one //! The first scope is current one, the last is the top-level one
Standard_EXPORT const Message_ProgressScale& GetScope (const Standard_Integer index) const; const Message_ProgressScale& GetScope (const Standard_Integer index) const;

View File

@ -83,7 +83,7 @@ template <class TheObjType, class TheBndType> class NCollection_UBTreeFiller
* @return * @return
* the number of objects added to the tree. * the number of objects added to the tree.
*/ */
Standard_EXPORT Standard_Integer Fill (); Standard_Integer Fill ();
/** /**
* Remove all data from Filler, partculary if the Tree no more needed * Remove all data from Filler, partculary if the Tree no more needed
@ -97,7 +97,7 @@ template <class TheObjType, class TheBndType> class NCollection_UBTreeFiller
* @return * @return
* the tree size (the same value is returned by method Fill()). * the tree size (the same value is returned by method Fill()).
*/ */
Standard_EXPORT Standard_Integer CheckTree (Standard_OStream& theStream); Standard_Integer CheckTree (Standard_OStream& theStream);
/** /**
* Destructor. Fills the tree with accumulated items if they have not been * Destructor. Fills the tree with accumulated items if they have not been

View File

@ -123,7 +123,7 @@ public:
//! you can use : //! you can use :
//! If ( Abs( D1.D2 ) < Precision::Angular() ) ... //! If ( Abs( D1.D2 ) < Precision::Angular() ) ...
//! (although the function IsNormal does exist). //! (although the function IsNormal does exist).
Standard_EXPORT static Standard_Real Angular(); static Standard_Real Angular();
//! Returns the recommended precision value when //! Returns the recommended precision value when
@ -166,12 +166,12 @@ public:
//! distance (1 / 10 millimeter). This distance //! distance (1 / 10 millimeter). This distance
//! becomes easily measurable, but only within a restricted //! becomes easily measurable, but only within a restricted
//! space which contains some small objects of the complete scene. //! space which contains some small objects of the complete scene.
Standard_EXPORT static Standard_Real Confusion(); static Standard_Real Confusion();
//! Returns square of Confusion. //! Returns square of Confusion.
//! Created for speed and convenience. //! Created for speed and convenience.
Standard_EXPORT static Standard_Real SquareConfusion(); static Standard_Real SquareConfusion();
//! Returns the precision value in real space, frequently //! Returns the precision value in real space, frequently
//! used by intersection algorithms to decide that a solution is reached. //! used by intersection algorithms to decide that a solution is reached.
@ -195,7 +195,7 @@ public:
//! The tolerance of intersection is equal to : //! The tolerance of intersection is equal to :
//! Precision::Confusion() / 100. //! Precision::Confusion() / 100.
//! (that is, 1.e-9). //! (that is, 1.e-9).
Standard_EXPORT static Standard_Real Intersection(); static Standard_Real Intersection();
//! Returns the precision value in real space, frequently used //! Returns the precision value in real space, frequently used
//! by approximation algorithms. //! by approximation algorithms.
@ -210,7 +210,7 @@ public:
//! (that is, 1.e-6). //! (that is, 1.e-6).
//! You may use a smaller tolerance in an approximation //! You may use a smaller tolerance in an approximation
//! algorithm, but this option might be costly. //! algorithm, but this option might be costly.
Standard_EXPORT static Standard_Real Approximation(); static Standard_Real Approximation();
//! Convert a real space precision to a parametric //! Convert a real space precision to a parametric
//! space precision. <T> is the mean value of the //! space precision. <T> is the mean value of the
@ -264,7 +264,7 @@ public:
//! 2.Pi without impacting on the resulting point. //! 2.Pi without impacting on the resulting point.
//! Therefore, take great care when adjusting a parametric //! Therefore, take great care when adjusting a parametric
//! tolerance to your own algorithm. //! tolerance to your own algorithm.
Standard_EXPORT static Standard_Real PConfusion (const Standard_Real T); static Standard_Real PConfusion (const Standard_Real T);
//! Returns a precision value in parametric space, which //! Returns a precision value in parametric space, which
@ -280,7 +280,7 @@ public:
//! segment whose length is equal to 100. (default value), or T. //! segment whose length is equal to 100. (default value), or T.
//! The parametric tolerance of intersection is equal to : //! The parametric tolerance of intersection is equal to :
//! - Precision::Intersection() / 100., or Precision::Intersection() / T. //! - Precision::Intersection() / 100., or Precision::Intersection() / T.
Standard_EXPORT static Standard_Real PIntersection (const Standard_Real T); static Standard_Real PIntersection (const Standard_Real T);
//! Returns a precision value in parametric space, which may //! Returns a precision value in parametric space, which may
//! be used by approximation algorithms. The purpose of this //! be used by approximation algorithms. The purpose of this
@ -295,13 +295,13 @@ public:
//! segment whose length is equal to 100. (default value), or T. //! segment whose length is equal to 100. (default value), or T.
//! The parametric tolerance of intersection is equal to : //! The parametric tolerance of intersection is equal to :
//! - Precision::Approximation() / 100., or Precision::Approximation() / T. //! - Precision::Approximation() / 100., or Precision::Approximation() / T.
Standard_EXPORT static Standard_Real PApproximation (const Standard_Real T); static Standard_Real PApproximation (const Standard_Real T);
//! Convert a real space precision to a parametric //! Convert a real space precision to a parametric
//! space precision on a default curve. //! space precision on a default curve.
//! //!
//! Value is Parametric(P,1.e+2) //! Value is Parametric(P,1.e+2)
Standard_EXPORT static Standard_Real Parametric (const Standard_Real P); static Standard_Real Parametric (const Standard_Real P);
//! Used to test distances in parametric space on a //! Used to test distances in parametric space on a
//! default curve. //! default curve.
@ -323,19 +323,19 @@ public:
//! Returns True if R may be considered as an infinite //! Returns True if R may be considered as an infinite
//! number. Currently Abs(R) > 1e100 //! number. Currently Abs(R) > 1e100
Standard_EXPORT static Standard_Boolean IsInfinite (const Standard_Real R); static Standard_Boolean IsInfinite (const Standard_Real R);
//! Returns True if R may be considered as a positive //! Returns True if R may be considered as a positive
//! infinite number. Currently R > 1e100 //! infinite number. Currently R > 1e100
Standard_EXPORT static Standard_Boolean IsPositiveInfinite (const Standard_Real R); static Standard_Boolean IsPositiveInfinite (const Standard_Real R);
//! Returns True if R may be considered as a negative //! Returns True if R may be considered as a negative
//! infinite number. Currently R < -1e100 //! infinite number. Currently R < -1e100
Standard_EXPORT static Standard_Boolean IsNegativeInfinite (const Standard_Real R); static Standard_Boolean IsNegativeInfinite (const Standard_Real R);
//! Returns a big number that can be considered as //! Returns a big number that can be considered as
//! infinite. Use -Infinite() for a negative big number. //! infinite. Use -Infinite() for a negative big number.
Standard_EXPORT static Standard_Real Infinite(); static Standard_Real Infinite();

View File

@ -73,10 +73,10 @@ public:
Standard_EXPORT PrsMgr_Presentations& Presentations(); Standard_EXPORT PrsMgr_Presentations& Presentations();
//! Returns information on whether the object accepts display in HLR mode or not. //! Returns information on whether the object accepts display in HLR mode or not.
Standard_EXPORT PrsMgr_TypeOfPresentation3d TypeOfPresentation3d() const; PrsMgr_TypeOfPresentation3d TypeOfPresentation3d() const;
//! Sets up Transform Persistence Mode for this object. //! Sets up Transform Persistence Mode for this object.
//! This function used to lock in object position, rotation and / or zooming relative to camera position. //! This function used to lock in object position, rotation and / or zooming relative to camera position.
//! Object will be drawn in the origin setted by APoint parameter (except Graphic3d_TMF_TriedronPers flag //! Object will be drawn in the origin setted by APoint parameter (except Graphic3d_TMF_TriedronPers flag
@ -191,13 +191,13 @@ public:
Standard_EXPORT virtual void RemoveChild (const Handle(PrsMgr_PresentableObject)& theObject); Standard_EXPORT virtual void RemoveChild (const Handle(PrsMgr_PresentableObject)& theObject);
//! Returns children of the current object. //! Returns children of the current object.
Standard_EXPORT const PrsMgr_ListOfPresentableObjects& Children() const; const PrsMgr_ListOfPresentableObjects& Children() const;
//! Returns true if object should have own presentations. //! Returns true if object should have own presentations.
Standard_EXPORT Standard_Boolean HasOwnPresentations() const; Standard_Boolean HasOwnPresentations() const;
//! Returns parent of current object in scene hierarchy. //! Returns parent of current object in scene hierarchy.
Standard_EXPORT PrsMgr_PresentableObjectPointer Parent() const; PrsMgr_PresentableObjectPointer Parent() const;
friend class PrsMgr_Presentation; friend class PrsMgr_Presentation;

View File

@ -123,7 +123,7 @@ public:
Standard_EXPORT void RedrawImmediate (const Handle(V3d_Viewer)& theViewer); Standard_EXPORT void RedrawImmediate (const Handle(V3d_Viewer)& theViewer);
//! Returns true if Presentation Manager is accumulating transient list of presentations to be displayed in immediate mode. //! Returns true if Presentation Manager is accumulating transient list of presentations to be displayed in immediate mode.
Standard_EXPORT Standard_Boolean IsImmediateModeOn() const; Standard_Boolean IsImmediateModeOn() const;
//! Highlights the graphic object thePrsObject in the color theColor. //! Highlights the graphic object thePrsObject in the color theColor.
//! thePrsObject has the display mode theMode; //! thePrsObject has the display mode theMode;

View File

@ -68,7 +68,7 @@ public:
Standard_EXPORT virtual Standard_Integer NbSubElements() Standard_OVERRIDE; Standard_EXPORT virtual Standard_Integer NbSubElements() Standard_OVERRIDE;
//! Returns the 3D points of the array used at construction time. //! Returns the 3D points of the array used at construction time.
Standard_EXPORT void Points3D (Handle(TColgp_HArray1OfPnt)& theHArrayOfPnt); void Points3D (Handle(TColgp_HArray1OfPnt)& theHArrayOfPnt);
//! Returns bounding box of a polygon. If location //! Returns bounding box of a polygon. If location
//! transformation is set, it will be applied //! transformation is set, it will be applied

View File

@ -43,7 +43,7 @@ public:
//! Creates new empty sensitive set and its content //! Creates new empty sensitive set and its content
Standard_EXPORT Select3D_SensitiveSet (const Handle(SelectBasics_EntityOwner)& theOwnerId); Standard_EXPORT Select3D_SensitiveSet (const Handle(SelectBasics_EntityOwner)& theOwnerId);
Standard_EXPORT ~Select3D_SensitiveSet() {}; ~Select3D_SensitiveSet() {};
public: public:

View File

@ -57,7 +57,7 @@ public:
//! allows a better sensitivity for //! allows a better sensitivity for
//! a specific entity in selection algorithms //! a specific entity in selection algorithms
//! useful for small sized entities. //! useful for small sized entities.
Standard_EXPORT Standard_Integer SensitivityFactor() const; Standard_Integer SensitivityFactor() const;
//! Allows to manage sensitivity of a particular sensitive entity //! Allows to manage sensitivity of a particular sensitive entity
Standard_EXPORT void SetSensitivityFactor (const Standard_Integer theNewSens); Standard_EXPORT void SetSensitivityFactor (const Standard_Integer theNewSens);

View File

@ -102,8 +102,8 @@ public:
//! There are no default parameters, but in case if: //! There are no default parameters, but in case if:
//! - transformation only is needed: @theScaleFactor must be initialized as any negative value; //! - transformation only is needed: @theScaleFactor must be initialized as any negative value;
//! - scale only is needed: @theTrsf must be set to gp_Identity. //! - scale only is needed: @theTrsf must be set to gp_Identity.
Standard_EXPORT virtual NCollection_Handle<SelectMgr_BaseFrustum> ScaleAndTransform (const Standard_Integer /*theScaleFactor*/, virtual NCollection_Handle<SelectMgr_BaseFrustum> ScaleAndTransform (const Standard_Integer /*theScaleFactor*/,
const gp_Trsf& /*theTrsf*/) { return NULL; } const gp_Trsf& /*theTrsf*/) { return NULL; }
//! SAT intersection test between defined volume and given axis-aligned box //! SAT intersection test between defined volume and given axis-aligned box
Standard_EXPORT virtual Standard_Boolean Overlaps (const SelectMgr_Vec3& theBoxMin, Standard_EXPORT virtual Standard_Boolean Overlaps (const SelectMgr_Vec3& theBoxMin,
@ -160,7 +160,7 @@ public:
//! Valid for point selection only! //! Valid for point selection only!
//! Computes depth range for global (defined for the whole view) clipping planes. //! Computes depth range for global (defined for the whole view) clipping planes.
Standard_EXPORT virtual void SetViewClipping (const Graphic3d_SequenceOfHClipPlane& /*thePlanes*/) {}; virtual void SetViewClipping (const Graphic3d_SequenceOfHClipPlane& /*thePlanes*/) {};
DEFINE_STANDARD_RTTIEXT(SelectMgr_BaseFrustum,Standard_Transient) DEFINE_STANDARD_RTTIEXT(SelectMgr_BaseFrustum,Standard_Transient)

View File

@ -36,7 +36,7 @@ public:
//! Creates instances of all available selecting volume types //! Creates instances of all available selecting volume types
Standard_EXPORT SelectMgr_SelectingVolumeManager (Standard_Boolean theToAllocateFrustums = Standard_True); Standard_EXPORT SelectMgr_SelectingVolumeManager (Standard_Boolean theToAllocateFrustums = Standard_True);
Standard_EXPORT virtual ~SelectMgr_SelectingVolumeManager() {}; virtual ~SelectMgr_SelectingVolumeManager() {};
//! IMPORTANT: Scaling makes sense only for frustum built on a single point! //! IMPORTANT: Scaling makes sense only for frustum built on a single point!
//! Note that this method does not perform any checks on type of the frustum. //! Note that this method does not perform any checks on type of the frustum.

View File

@ -51,7 +51,7 @@ public:
void UnregisterCallback(); void UnregisterCallback();
//! Destructor //! Destructor
virtual Standard_EXPORT ~Standard_ErrorHandlerCallback (); virtual ~Standard_ErrorHandlerCallback ();
//! The callback function to perform necessary callback action. //! The callback function to perform necessary callback action.
//! Called by the exception handler when it is being destroyed but //! Called by the exception handler when it is being destroyed but

View File

@ -150,7 +150,7 @@ public:
Standard_EXPORT Standard_Boolean TryLock (); Standard_EXPORT Standard_Boolean TryLock ();
//! Method to unlock the mutex; releases it to other users //! Method to unlock the mutex; releases it to other users
Standard_EXPORT void Unlock (); void Unlock ();
private: private:

View File

@ -90,7 +90,7 @@ public:
//!@name Reference counting, for use by handle<> //!@name Reference counting, for use by handle<>
//! Get the reference counter of this object //! Get the reference counter of this object
Standard_EXPORT Standard_Integer GetRefCount() const { return count; } Standard_Integer GetRefCount() const { return count; }
//! Increments the reference counter of this object //! Increments the reference counter of this object
Standard_EXPORT void IncrementRefCounter() const; Standard_EXPORT void IncrementRefCounter() const;

View File

@ -176,7 +176,7 @@ namespace opencascade {
class type_instance<void> class type_instance<void>
{ {
public: public:
Standard_EXPORT static Handle(Standard_Type) get () { return 0; } static Handle(Standard_Type) get () { return 0; }
}; };
// Implementation of static function returning instance of the // Implementation of static function returning instance of the

View File

@ -63,7 +63,7 @@ public:
const TDF_Label Root() const; const TDF_Label Root() const;
//! Returns the current transaction number. //! Returns the current transaction number.
Standard_EXPORT Standard_Integer Transaction() const; Standard_Integer Transaction() const;
//! Returns the current tick. It is incremented each Commit. //! Returns the current tick. It is incremented each Commit.
Standard_Integer Time() const; Standard_Integer Time() const;

View File

@ -88,7 +88,7 @@ public:
Standard_Integer Transaction() const; Standard_Integer Transaction() const;
//! Returns the transaction name. //! Returns the transaction name.
Standard_EXPORT const TCollection_AsciiString& Name() const; const TCollection_AsciiString& Name() const;
//! Returns true if the transaction is open. //! Returns true if the transaction is open.
Standard_Boolean IsOpen() const; Standard_Boolean IsOpen() const;

View File

@ -225,7 +225,7 @@ public:
Standard_EXPORT virtual void ChangeStorageFormat (const TCollection_ExtendedString& newStorageFormat); Standard_EXPORT virtual void ChangeStorageFormat (const TCollection_ExtendedString& newStorageFormat);
//! Sets nested transaction mode if isAllowed == Standard_True //! Sets nested transaction mode if isAllowed == Standard_True
Standard_EXPORT void SetNestedTransactionMode (const Standard_Boolean isAllowed = Standard_True); void SetNestedTransactionMode (const Standard_Boolean isAllowed = Standard_True);
//! Returns Standard_True if mode is set //! Returns Standard_True if mode is set
Standard_Boolean IsNestedTransactionMode() const; Standard_Boolean IsNestedTransactionMode() const;

View File

@ -73,11 +73,11 @@ class TObj_Model : public MMgt_TShared
*/ */
//! Set messenger to use for messages output //! Set messenger to use for messages output
Standard_EXPORT void SetMessenger (const Handle(Message_Messenger) &theMsgr) { myMessenger = theMsgr; } void SetMessenger (const Handle(Message_Messenger) &theMsgr) { myMessenger = theMsgr; }
//! Get messenger used for messages output (by default, the messenger from //! Get messenger used for messages output (by default, the messenger from
//! application is used) //! application is used)
Standard_EXPORT Handle(Message_Messenger) Messenger () const { return myMessenger; } Handle(Message_Messenger) Messenger () const { return myMessenger; }
public: public:
/** /**
@ -302,7 +302,7 @@ class TObj_Model : public MMgt_TShared
//! Sets OCAF label on which model data are stored. //! Sets OCAF label on which model data are stored.
//! Used by persistence mechanism. //! Used by persistence mechanism.
void Standard_EXPORT SetLabel(const TDF_Label& theLabel) { myLabel = theLabel; } void SetLabel(const TDF_Label& theLabel) { myLabel = theLabel; }
protected: protected:

View File

@ -182,7 +182,7 @@ class TObj_Object : public MMgt_TShared
//! Returns name for copy //! Returns name for copy
//! default implementation returns the same name //! default implementation returns the same name
virtual Standard_EXPORT Handle(TCollection_HExtendedString) GetNameForClone virtual Handle(TCollection_HExtendedString) GetNameForClone
( const Handle(TObj_Object)& ) const ( const Handle(TObj_Object)& ) const
{ return GetName(); } { return GetName(); }
@ -272,7 +272,7 @@ class TObj_Object : public MMgt_TShared
//! Invokes from TObj_TReference::BeforeForget(). //! Invokes from TObj_TReference::BeforeForget().
//! theLabel - label on that reference become removed //! theLabel - label on that reference become removed
//! Default implementation is empty //! Default implementation is empty
virtual Standard_EXPORT void BeforeForgetReference( const TDF_Label& /*theLabel*/ ) virtual void BeforeForgetReference( const TDF_Label& /*theLabel*/ )
{} {}
public: public:

View File

@ -86,7 +86,7 @@ class TObj_Partition : public TObj_Object
(const Handle(TCollection_HExtendedString)& thePrefix); (const Handle(TCollection_HExtendedString)& thePrefix);
//! Returns prefix for names of the objects in partition. //! Returns prefix for names of the objects in partition.
Standard_EXPORT Handle(TCollection_HExtendedString) GetNamePrefix() const Handle(TCollection_HExtendedString) GetNamePrefix() const
{ return myPrefix; } { return myPrefix; }
//! Generates and returns name for new object in partition. //! Generates and returns name for new object in partition.
@ -117,7 +117,7 @@ class TObj_Partition : public TObj_Object
*/ */
//! Does nothing in the partition. //! Does nothing in the partition.
virtual Standard_EXPORT Standard_Boolean Update() virtual Standard_Boolean Update()
{return Standard_True;} {return Standard_True;}
protected: protected:

View File

@ -94,7 +94,7 @@ public:
//! Exceptions //! Exceptions
//! Standard_ConstructionError if A1 is parallel to the "X //! Standard_ConstructionError if A1 is parallel to the "X
//! Direction" of this coordinate system. //! Direction" of this coordinate system.
Standard_EXPORT void SetAxis (const gp_Ax1& A1); void SetAxis (const gp_Ax1& A1);
//! Changes the "main Direction" of this coordinate system, //! Changes the "main Direction" of this coordinate system,
@ -104,11 +104,11 @@ public:
//! Exceptions //! Exceptions
//! Standard_ConstructionError if V is parallel to the "X //! Standard_ConstructionError if V is parallel to the "X
//! Direction" of this coordinate system. //! Direction" of this coordinate system.
Standard_EXPORT void SetDirection (const gp_Dir& V); void SetDirection (const gp_Dir& V);
//! Changes the "Location" point (origin) of <me>. //! Changes the "Location" point (origin) of <me>.
Standard_EXPORT void SetLocation (const gp_Pnt& P); void SetLocation (const gp_Pnt& P);
//! Changes the "Xdirection" of <me>. The main direction //! Changes the "Xdirection" of <me>. The main direction
@ -118,7 +118,7 @@ public:
//! Exceptions //! Exceptions
//! Standard_ConstructionError if Vx or Vy is parallel to //! Standard_ConstructionError if Vx or Vy is parallel to
//! the "main Direction" of this coordinate system. //! the "main Direction" of this coordinate system.
Standard_EXPORT void SetXDirection (const gp_Dir& Vx); void SetXDirection (const gp_Dir& Vx);
//! Changes the "Ydirection" of <me>. The main direction is not //! Changes the "Ydirection" of <me>. The main direction is not
@ -129,13 +129,13 @@ public:
//! Exceptions //! Exceptions
//! Standard_ConstructionError if Vx or Vy is parallel to //! Standard_ConstructionError if Vx or Vy is parallel to
//! the "main Direction" of this coordinate system. //! the "main Direction" of this coordinate system.
Standard_EXPORT void SetYDirection (const gp_Dir& Vy); void SetYDirection (const gp_Dir& Vy);
//! Computes the angular value, in radians, between the main direction of //! Computes the angular value, in radians, between the main direction of
//! <me> and the main direction of <Other>. Returns the angle //! <me> and the main direction of <Other>. Returns the angle
//! between 0 and PI in radians. //! between 0 and PI in radians.
Standard_EXPORT Standard_Real Angle (const gp_Ax2& Other) const; Standard_Real Angle (const gp_Ax2& Other) const;
//! Returns the main axis of <me>. It is the "Location" point //! Returns the main axis of <me>. It is the "Location" point
@ -158,7 +158,7 @@ public:
//! Returns the "YDirection" of <me>. //! Returns the "YDirection" of <me>.
const gp_Dir& YDirection() const; const gp_Dir& YDirection() const;
Standard_EXPORT Standard_Boolean IsCoplanar (const gp_Ax2& Other, const Standard_Real LinearTolerance, const Standard_Real AngularTolerance) const; Standard_Boolean IsCoplanar (const gp_Ax2& Other, const Standard_Real LinearTolerance, const Standard_Real AngularTolerance) const;
//! Returns True if //! Returns True if

View File

@ -77,17 +77,17 @@ public:
//! Creates an object corresponding to the reference //! Creates an object corresponding to the reference
//! coordinate system (OXYZ). //! coordinate system (OXYZ).
Standard_EXPORT gp_Ax3(); gp_Ax3();
//! Creates a coordinate system from a right-handed //! Creates a coordinate system from a right-handed
//! coordinate system. //! coordinate system.
Standard_EXPORT gp_Ax3(const gp_Ax2& A); gp_Ax3(const gp_Ax2& A);
//! Creates a right handed axis placement with the //! Creates a right handed axis placement with the
//! "Location" point P and two directions, N gives the //! "Location" point P and two directions, N gives the
//! "Direction" and Vx gives the "XDirection". //! "Direction" and Vx gives the "XDirection".
//! Raises ConstructionError if N and Vx are parallel (same or opposite orientation). //! Raises ConstructionError if N and Vx are parallel (same or opposite orientation).
Standard_EXPORT gp_Ax3(const gp_Pnt& P, const gp_Dir& N, const gp_Dir& Vx); gp_Ax3(const gp_Pnt& P, const gp_Dir& N, const gp_Dir& Vx);
//! Creates an axis placement with the "Location" point <P> //! Creates an axis placement with the "Location" point <P>
@ -95,13 +95,13 @@ public:
Standard_EXPORT gp_Ax3(const gp_Pnt& P, const gp_Dir& V); Standard_EXPORT gp_Ax3(const gp_Pnt& P, const gp_Dir& V);
//! Reverses the X direction of <me>. //! Reverses the X direction of <me>.
Standard_EXPORT void XReverse(); void XReverse();
//! Reverses the Y direction of <me>. //! Reverses the Y direction of <me>.
Standard_EXPORT void YReverse(); void YReverse();
//! Reverses the Z direction of <me>. //! Reverses the Z direction of <me>.
Standard_EXPORT void ZReverse(); void ZReverse();
//! Assigns the origin and "main Direction" of the axis A1 to //! Assigns the origin and "main Direction" of the axis A1 to
//! this coordinate system, then recomputes its "X Direction" and "Y Direction". //! this coordinate system, then recomputes its "X Direction" and "Y Direction".
@ -115,7 +115,7 @@ public:
//! are parallel (same or opposite orientation) because it is //! are parallel (same or opposite orientation) because it is
//! impossible to calculate the new "XDirection" and the new //! impossible to calculate the new "XDirection" and the new
//! "YDirection". //! "YDirection".
Standard_EXPORT void SetAxis (const gp_Ax1& A1); void SetAxis (const gp_Ax1& A1);
//! Changes the main direction of this coordinate system, //! Changes the main direction of this coordinate system,
@ -127,11 +127,11 @@ public:
//! Raises ConstructionError if <V< and the previous "XDirection" are parallel //! Raises ConstructionError if <V< and the previous "XDirection" are parallel
//! because it is impossible to calculate the new "XDirection" //! because it is impossible to calculate the new "XDirection"
//! and the new "YDirection". //! and the new "YDirection".
Standard_EXPORT void SetDirection (const gp_Dir& V); void SetDirection (const gp_Dir& V);
//! Changes the "Location" point (origin) of <me>. //! Changes the "Location" point (origin) of <me>.
Standard_EXPORT void SetLocation (const gp_Pnt& P); void SetLocation (const gp_Pnt& P);
//! Changes the "Xdirection" of <me>. The main direction //! Changes the "Xdirection" of <me>. The main direction
@ -140,7 +140,7 @@ public:
//! is computed as follows XDirection = Direction ^ (Vx ^ Direction). //! is computed as follows XDirection = Direction ^ (Vx ^ Direction).
//! Raises ConstructionError if <Vx> is parallel (same or opposite //! Raises ConstructionError if <Vx> is parallel (same or opposite
//! orientation) to the main direction of <me> //! orientation) to the main direction of <me>
Standard_EXPORT void SetXDirection (const gp_Dir& Vx); void SetXDirection (const gp_Dir& Vx);
//! Changes the "Ydirection" of <me>. The main direction is not //! Changes the "Ydirection" of <me>. The main direction is not
@ -168,7 +168,7 @@ public:
//! If this coordinate system is right-handed, the result //! If this coordinate system is right-handed, the result
//! returned is the same coordinate system. If this //! returned is the same coordinate system. If this
//! coordinate system is left-handed, the result is reversed. //! coordinate system is left-handed, the result is reversed.
Standard_EXPORT gp_Ax2 Ax2() const; gp_Ax2 Ax2() const;
//! Returns the main direction of <me>. //! Returns the main direction of <me>.
@ -245,15 +245,15 @@ public:
//! the "XDirection" and the "YDirection" after transformation. //! the "XDirection" and the "YDirection" after transformation.
Standard_EXPORT gp_Ax3 Mirrored (const gp_Ax2& A2) const; Standard_EXPORT gp_Ax3 Mirrored (const gp_Ax2& A2) const;
Standard_EXPORT void Rotate (const gp_Ax1& A1, const Standard_Real Ang); void Rotate (const gp_Ax1& A1, const Standard_Real Ang);
//! Rotates an axis placement. <A1> is the axis of the //! Rotates an axis placement. <A1> is the axis of the
//! rotation . Ang is the angular value of the rotation //! rotation . Ang is the angular value of the rotation
//! in radians. //! in radians.
Standard_EXPORT gp_Ax3 Rotated (const gp_Ax1& A1, const Standard_Real Ang) const; gp_Ax3 Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
Standard_EXPORT void Scale (const gp_Pnt& P, const Standard_Real S); void Scale (const gp_Pnt& P, const Standard_Real S);
//! Applies a scaling transformation on the axis placement. //! Applies a scaling transformation on the axis placement.
@ -263,9 +263,9 @@ public:
//! . the main direction of the axis placement is not changed. //! . the main direction of the axis placement is not changed.
//! . The "XDirection" and the "YDirection" are reversed. //! . The "XDirection" and the "YDirection" are reversed.
//! So the axis placement stay right handed. //! So the axis placement stay right handed.
Standard_EXPORT gp_Ax3 Scaled (const gp_Pnt& P, const Standard_Real S) const; gp_Ax3 Scaled (const gp_Pnt& P, const Standard_Real S) const;
Standard_EXPORT void Transform (const gp_Trsf& T); void Transform (const gp_Trsf& T);
//! Transforms an axis placement with a Trsf. //! Transforms an axis placement with a Trsf.
@ -273,21 +273,21 @@ public:
//! "YDirection" are transformed with T. The resulting //! "YDirection" are transformed with T. The resulting
//! main "Direction" of <me> is the cross product between //! main "Direction" of <me> is the cross product between
//! the "XDirection" and the "YDirection" after transformation. //! the "XDirection" and the "YDirection" after transformation.
Standard_EXPORT gp_Ax3 Transformed (const gp_Trsf& T) const; gp_Ax3 Transformed (const gp_Trsf& T) const;
Standard_EXPORT void Translate (const gp_Vec& V); void Translate (const gp_Vec& V);
//! Translates an axis plaxement in the direction of the vector //! Translates an axis plaxement in the direction of the vector
//! <V>. The magnitude of the translation is the vector's magnitude. //! <V>. The magnitude of the translation is the vector's magnitude.
Standard_EXPORT gp_Ax3 Translated (const gp_Vec& V) const; gp_Ax3 Translated (const gp_Vec& V) const;
Standard_EXPORT void Translate (const gp_Pnt& P1, const gp_Pnt& P2); void Translate (const gp_Pnt& P1, const gp_Pnt& P2);
//! Translates an axis placement from the point <P1> to the //! Translates an axis placement from the point <P1> to the
//! point <P2>. //! point <P2>.
Standard_EXPORT gp_Ax3 Translated (const gp_Pnt& P1, const gp_Pnt& P2) const; gp_Ax3 Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;

View File

@ -82,7 +82,7 @@ public:
gp_Circ2d(const gp_Ax22d& Axis, const Standard_Real Radius); gp_Circ2d(const gp_Ax22d& Axis, const Standard_Real Radius);
//! Changes the location point (center) of the circle. //! Changes the location point (center) of the circle.
Standard_EXPORT void SetLocation (const gp_Pnt2d& P); void SetLocation (const gp_Pnt2d& P);
//! Changes the X axis of the circle. //! Changes the X axis of the circle.
void SetXAxis (const gp_Ax2d& A); void SetXAxis (const gp_Ax2d& A);

View File

@ -87,37 +87,37 @@ public:
//! It is possible to create an ellipse with //! It is possible to create an ellipse with
//! MajorRadius = MinorRadius. //! MajorRadius = MinorRadius.
//! Raises ConstructionError if MajorRadius < MinorRadius or MinorRadius < 0.0 //! Raises ConstructionError if MajorRadius < MinorRadius or MinorRadius < 0.0
Standard_EXPORT gp_Elips2d(const gp_Ax22d& A, const Standard_Real MajorRadius, const Standard_Real MinorRadius); gp_Elips2d(const gp_Ax22d& A, const Standard_Real MajorRadius, const Standard_Real MinorRadius);
//! Modifies this ellipse, by redefining its local coordinate system so that //! Modifies this ellipse, by redefining its local coordinate system so that
//! - its origin becomes P. //! - its origin becomes P.
Standard_EXPORT void SetLocation (const gp_Pnt2d& P); void SetLocation (const gp_Pnt2d& P);
//! Changes the value of the major radius. //! Changes the value of the major radius.
//! Raises ConstructionError if MajorRadius < MinorRadius. //! Raises ConstructionError if MajorRadius < MinorRadius.
Standard_EXPORT void SetMajorRadius (const Standard_Real MajorRadius); void SetMajorRadius (const Standard_Real MajorRadius);
//! Changes the value of the minor radius. //! Changes the value of the minor radius.
//! Raises ConstructionError if MajorRadius < MinorRadius or MinorRadius < 0.0 //! Raises ConstructionError if MajorRadius < MinorRadius or MinorRadius < 0.0
Standard_EXPORT void SetMinorRadius (const Standard_Real MinorRadius); void SetMinorRadius (const Standard_Real MinorRadius);
//! Modifies this ellipse, by redefining its local coordinate system so that //! Modifies this ellipse, by redefining its local coordinate system so that
//! it becomes A. //! it becomes A.
Standard_EXPORT void SetAxis (const gp_Ax22d& A); void SetAxis (const gp_Ax22d& A);
//! Modifies this ellipse, by redefining its local coordinate system so that //! Modifies this ellipse, by redefining its local coordinate system so that
//! its origin and its "X Direction" become those //! its origin and its "X Direction" become those
//! of the axis A. The "Y Direction" is then //! of the axis A. The "Y Direction" is then
//! recomputed. The orientation of the local coordinate //! recomputed. The orientation of the local coordinate
//! system is not modified. //! system is not modified.
Standard_EXPORT void SetXAxis (const gp_Ax2d& A); void SetXAxis (const gp_Ax2d& A);
//! Modifies this ellipse, by redefining its local coordinate system so that //! Modifies this ellipse, by redefining its local coordinate system so that
//! its origin and its "Y Direction" become those //! its origin and its "Y Direction" become those
//! of the axis A. The "X Direction" is then //! of the axis A. The "X Direction" is then
//! recomputed. The orientation of the local coordinate //! recomputed. The orientation of the local coordinate
//! system is not modified. //! system is not modified.
Standard_EXPORT void SetYAxis (const gp_Ax2d& A); void SetYAxis (const gp_Ax2d& A);
//! Computes the area of the ellipse. //! Computes the area of the ellipse.
Standard_Real Area() const; Standard_Real Area() const;
@ -217,34 +217,34 @@ public:
//! to an axis placement which is the axis of the symmetry. //! to an axis placement which is the axis of the symmetry.
Standard_EXPORT gp_Elips2d Mirrored (const gp_Ax2d& A) const; Standard_EXPORT gp_Elips2d Mirrored (const gp_Ax2d& A) const;
Standard_EXPORT void Rotate (const gp_Pnt2d& P, const Standard_Real Ang); void Rotate (const gp_Pnt2d& P, const Standard_Real Ang);
Standard_EXPORT gp_Elips2d Rotated (const gp_Pnt2d& P, const Standard_Real Ang) const; gp_Elips2d Rotated (const gp_Pnt2d& P, const Standard_Real Ang) const;
Standard_EXPORT void Scale (const gp_Pnt2d& P, const Standard_Real S); void Scale (const gp_Pnt2d& P, const Standard_Real S);
//! Scales a ellipse. S is the scaling value. //! Scales a ellipse. S is the scaling value.
Standard_EXPORT gp_Elips2d Scaled (const gp_Pnt2d& P, const Standard_Real S) const; gp_Elips2d Scaled (const gp_Pnt2d& P, const Standard_Real S) const;
Standard_EXPORT void Transform (const gp_Trsf2d& T); void Transform (const gp_Trsf2d& T);
//! Transforms an ellipse with the transformation T from class Trsf2d. //! Transforms an ellipse with the transformation T from class Trsf2d.
Standard_EXPORT gp_Elips2d Transformed (const gp_Trsf2d& T) const; gp_Elips2d Transformed (const gp_Trsf2d& T) const;
Standard_EXPORT void Translate (const gp_Vec2d& V); void Translate (const gp_Vec2d& V);
//! Translates a ellipse in the direction of the vector V. //! Translates a ellipse in the direction of the vector V.
//! The magnitude of the translation is the vector's magnitude. //! The magnitude of the translation is the vector's magnitude.
Standard_EXPORT gp_Elips2d Translated (const gp_Vec2d& V) const; gp_Elips2d Translated (const gp_Vec2d& V) const;
Standard_EXPORT void Translate (const gp_Pnt2d& P1, const gp_Pnt2d& P2); void Translate (const gp_Pnt2d& P1, const gp_Pnt2d& P2);
//! Translates a ellipse from the point P1 to the point P2. //! Translates a ellipse from the point P1 to the point P2.
Standard_EXPORT gp_Elips2d Translated (const gp_Pnt2d& P1, const gp_Pnt2d& P2) const; gp_Elips2d Translated (const gp_Pnt2d& P1, const gp_Pnt2d& P2) const;

View File

@ -145,7 +145,7 @@ public:
//! transformation (relative to a point, an axis or a plane), a //! transformation (relative to a point, an axis or a plane), a
//! scaling transformation, a compound transformation or //! scaling transformation, a compound transformation or
//! some other type of transformation. //! some other type of transformation.
Standard_EXPORT gp_TrsfForm Form() const; gp_TrsfForm Form() const;
//! verify and set the shape of the GTrsf Other or CompoundTrsf //! verify and set the shape of the GTrsf Other or CompoundTrsf

View File

@ -94,7 +94,7 @@ public:
//! It is yet possible to create an Hyperbola with //! It is yet possible to create an Hyperbola with
//! MajorRadius <= MinorRadius. //! MajorRadius <= MinorRadius.
//! Raises ConstructionError if MajorRadius < 0.0 or MinorRadius < 0.0 //! Raises ConstructionError if MajorRadius < 0.0 or MinorRadius < 0.0
Standard_EXPORT gp_Hypr2d(const gp_Ax2d& MajorAxis, const Standard_Real MajorRadius, const Standard_Real MinorRadius, const Standard_Boolean Sense = Standard_True); gp_Hypr2d(const gp_Ax2d& MajorAxis, const Standard_Real MajorRadius, const Standard_Real MinorRadius, const Standard_Boolean Sense = Standard_True);
//! a hyperbola with radii MajorRadius and //! a hyperbola with radii MajorRadius and
@ -251,7 +251,7 @@ public:
//! - the unit vector is the "X Direction" or "Y Direction" //! - the unit vector is the "X Direction" or "Y Direction"
//! respectively of the local coordinate system of this hyperbola //! respectively of the local coordinate system of this hyperbola
//! Returns the major axis of the hyperbola. //! Returns the major axis of the hyperbola.
Standard_EXPORT gp_Ax2d XAxis() const; gp_Ax2d XAxis() const;
//! Computes an axis whose //! Computes an axis whose
//! - the origin is the center of this hyperbola, and //! - the origin is the center of this hyperbola, and

View File

@ -63,8 +63,8 @@ public:
//! Creates a line passing through point P and parallel to //! Creates a line passing through point P and parallel to
//! vector V (P and V are, respectively, the origin and //! vector V (P and V are, respectively, the origin and
//! the unit vector of the positioning axis of the line). //! the unit vector of the positioning axis of the line).
Standard_EXPORT gp_Lin(const gp_Pnt& P, const gp_Dir& V); gp_Lin(const gp_Pnt& P, const gp_Dir& V);
void Reverse(); void Reverse();
//! Reverses the direction of the line. //! Reverses the direction of the line.

View File

@ -160,7 +160,7 @@ public:
//! Ang is the angular value of the rotation in radians. //! Ang is the angular value of the rotation in radians.
gp_Lin2d Rotated (const gp_Pnt2d& P, const Standard_Real Ang) const; gp_Lin2d Rotated (const gp_Pnt2d& P, const Standard_Real Ang) const;
Standard_EXPORT void Scale (const gp_Pnt2d& P, const Standard_Real S); void Scale (const gp_Pnt2d& P, const Standard_Real S);
//! Scales a line. S is the scaling value. Only the //! Scales a line. S is the scaling value. Only the

View File

@ -107,7 +107,7 @@ public:
void SetLocation (const gp_Pnt& P); void SetLocation (const gp_Pnt& P);
//! Changes the local coordinate system of the parabola. //! Changes the local coordinate system of the parabola.
Standard_EXPORT void SetPosition (const gp_Ax2& A2); void SetPosition (const gp_Ax2& A2);
//! Returns the main axis of the parabola. //! Returns the main axis of the parabola.

View File

@ -72,7 +72,7 @@ public:
//! Index = 1 => X is returned //! Index = 1 => X is returned
//! Index = 2 => Y is returned //! Index = 2 => Y is returned
//! Raises OutOfRange if Index != {1, 2}. //! Raises OutOfRange if Index != {1, 2}.
Standard_EXPORT Standard_Real Coord (const Standard_Integer Index) const; Standard_Real Coord (const Standard_Integer Index) const;
//! For this point returns its two coordinates as a number pair. //! For this point returns its two coordinates as a number pair.
void Coord (Standard_Real& Xp, Standard_Real& Yp) const; void Coord (Standard_Real& Xp, Standard_Real& Yp) const;

View File

@ -43,32 +43,32 @@ public:
//! Creates an identity quaternion //! Creates an identity quaternion
gp_Quaternion(); gp_Quaternion();
//! Creates quaternion directly from component values //! Creates quaternion directly from component values
Standard_EXPORT gp_Quaternion(const Standard_Real x, const Standard_Real y, const Standard_Real z, const Standard_Real w); gp_Quaternion(const Standard_Real x, const Standard_Real y, const Standard_Real z, const Standard_Real w);
//! Creates copy of another quaternion //! Creates copy of another quaternion
Standard_EXPORT gp_Quaternion(const gp_Quaternion& theToCopy); gp_Quaternion(const gp_Quaternion& theToCopy);
//! Creates quaternion representing shortest-arc rotation //! Creates quaternion representing shortest-arc rotation
//! operator producing vector theVecTo from vector theVecFrom. //! operator producing vector theVecTo from vector theVecFrom.
Standard_EXPORT gp_Quaternion(const gp_Vec& theVecFrom, const gp_Vec& theVecTo); gp_Quaternion(const gp_Vec& theVecFrom, const gp_Vec& theVecTo);
//! Creates quaternion representing shortest-arc rotation //! Creates quaternion representing shortest-arc rotation
//! operator producing vector theVecTo from vector theVecFrom. //! operator producing vector theVecTo from vector theVecFrom.
//! Additional vector theHelpCrossVec defines preferred direction for //! Additional vector theHelpCrossVec defines preferred direction for
//! rotation and is used when theVecTo and theVecFrom are directed //! rotation and is used when theVecTo and theVecFrom are directed
//! oppositely. //! oppositely.
Standard_EXPORT gp_Quaternion(const gp_Vec& theVecFrom, const gp_Vec& theVecTo, const gp_Vec& theHelpCrossVec); gp_Quaternion(const gp_Vec& theVecFrom, const gp_Vec& theVecTo, const gp_Vec& theHelpCrossVec);
//! Creates quaternion representing rotation on angle //! Creates quaternion representing rotation on angle
//! theAngle around vector theAxis //! theAngle around vector theAxis
Standard_EXPORT gp_Quaternion(const gp_Vec& theAxis, const Standard_Real theAngle); gp_Quaternion(const gp_Vec& theAxis, const Standard_Real theAngle);
//! Creates quaternion from rotation matrix 3*3 //! Creates quaternion from rotation matrix 3*3
//! (which should be orthonormal skew-symmetric matrix) //! (which should be orthonormal skew-symmetric matrix)
Standard_EXPORT gp_Quaternion(const gp_Mat& theMat); gp_Quaternion(const gp_Mat& theMat);
//! Simple equal test without precision //! Simple equal test without precision
Standard_EXPORT Standard_Boolean IsEqual (const gp_Quaternion& theOther) const; Standard_EXPORT Standard_Boolean IsEqual (const gp_Quaternion& theOther) const;
@ -109,49 +109,49 @@ public:
//! Returns Euler angles describing current rotation //! Returns Euler angles describing current rotation
Standard_EXPORT void GetEulerAngles (const gp_EulerSequence theOrder, Standard_Real& theAlpha, Standard_Real& theBeta, Standard_Real& theGamma) const; Standard_EXPORT void GetEulerAngles (const gp_EulerSequence theOrder, Standard_Real& theAlpha, Standard_Real& theBeta, Standard_Real& theGamma) const;
Standard_EXPORT void Set (const Standard_Real x, const Standard_Real y, const Standard_Real z, const Standard_Real w); void Set (const Standard_Real x, const Standard_Real y, const Standard_Real z, const Standard_Real w);
Standard_EXPORT void Set (const gp_Quaternion& theQuaternion); void Set (const gp_Quaternion& theQuaternion);
Standard_EXPORT Standard_Real X() const; Standard_Real X() const;
Standard_EXPORT Standard_Real Y() const; Standard_Real Y() const;
Standard_EXPORT Standard_Real Z() const; Standard_Real Z() const;
Standard_EXPORT Standard_Real W() const; Standard_Real W() const;
//! Make identity quaternion (zero-rotation) //! Make identity quaternion (zero-rotation)
Standard_EXPORT void SetIdent(); void SetIdent();
//! Reverse direction of rotation (conjugate quaternion) //! Reverse direction of rotation (conjugate quaternion)
Standard_EXPORT void Reverse(); void Reverse();
//! Return rotation with reversed direction (conjugated quaternion) //! Return rotation with reversed direction (conjugated quaternion)
Standard_EXPORT gp_Quaternion Reversed() const; gp_Quaternion Reversed() const;
//! Inverts quaternion (both rotation direction and norm) //! Inverts quaternion (both rotation direction and norm)
Standard_EXPORT void Invert(); void Invert();
//! Return inversed quaternion q^-1 //! Return inversed quaternion q^-1
Standard_EXPORT gp_Quaternion Inverted() const; gp_Quaternion Inverted() const;
//! Returns square norm of quaternion //! Returns square norm of quaternion
Standard_EXPORT Standard_Real SquareNorm() const; Standard_Real SquareNorm() const;
//! Returns norm of quaternion //! Returns norm of quaternion
Standard_EXPORT Standard_Real Norm() const; Standard_Real Norm() const;
//! Scale all components by quaternion by theScale; note that //! Scale all components by quaternion by theScale; note that
//! rotation is not changed by this operation (except 0-scaling) //! rotation is not changed by this operation (except 0-scaling)
Standard_EXPORT void Scale (const Standard_Real theScale); void Scale (const Standard_Real theScale);
void operator *= (const Standard_Real theScale) void operator *= (const Standard_Real theScale)
{ {
Scale(theScale); Scale(theScale);
} }
//! Returns scaled quaternion //! Returns scaled quaternion
Standard_EXPORT gp_Quaternion Scaled (const Standard_Real theScale) const; gp_Quaternion Scaled (const Standard_Real theScale) const;
gp_Quaternion operator * (const Standard_Real theScale) const gp_Quaternion operator * (const Standard_Real theScale) const
{ {
return Scaled(theScale); return Scaled(theScale);
@ -168,26 +168,26 @@ gp_Quaternion operator * (const Standard_Real theScale) const
Standard_EXPORT void Normalize(); Standard_EXPORT void Normalize();
//! Returns quaternion scaled so that its norm goes to 1. //! Returns quaternion scaled so that its norm goes to 1.
Standard_EXPORT gp_Quaternion Normalized() const; gp_Quaternion Normalized() const;
//! Returns quaternion with all components negated. //! Returns quaternion with all components negated.
//! Note that this operation does not affect neither //! Note that this operation does not affect neither
//! rotation operator defined by quaternion nor its norm. //! rotation operator defined by quaternion nor its norm.
Standard_EXPORT gp_Quaternion Negated() const; gp_Quaternion Negated() const;
gp_Quaternion operator -() const gp_Quaternion operator -() const
{ {
return Negated(); return Negated();
} }
//! Makes sum of quaternion components; result is "rotations mix" //! Makes sum of quaternion components; result is "rotations mix"
Standard_EXPORT gp_Quaternion Added (const gp_Quaternion& theOther) const; gp_Quaternion Added (const gp_Quaternion& theOther) const;
gp_Quaternion operator + (const gp_Quaternion& theOther) const gp_Quaternion operator + (const gp_Quaternion& theOther) const
{ {
return Added(theOther); return Added(theOther);
} }
//! Makes difference of quaternion components; result is "rotations mix" //! Makes difference of quaternion components; result is "rotations mix"
Standard_EXPORT gp_Quaternion Subtracted (const gp_Quaternion& theOther) const; gp_Quaternion Subtracted (const gp_Quaternion& theOther) const;
gp_Quaternion operator - (const gp_Quaternion& theOther) const gp_Quaternion operator - (const gp_Quaternion& theOther) const
{ {
return Subtracted(theOther); return Subtracted(theOther);
@ -199,35 +199,35 @@ gp_Quaternion operator - (const gp_Quaternion& theOther) const
//! Notices than: //! Notices than:
//! qq' != q'q; //! qq' != q'q;
//! qq^-1 = q; //! qq^-1 = q;
Standard_EXPORT gp_Quaternion Multiplied (const gp_Quaternion& theOther) const; gp_Quaternion Multiplied (const gp_Quaternion& theOther) const;
gp_Quaternion operator * (const gp_Quaternion& theOther) const gp_Quaternion operator * (const gp_Quaternion& theOther) const
{ {
return Multiplied(theOther); return Multiplied(theOther);
} }
//! Adds componnets of other quaternion; result is "rotations mix" //! Adds componnets of other quaternion; result is "rotations mix"
Standard_EXPORT void Add (const gp_Quaternion& theOther); void Add (const gp_Quaternion& theOther);
void operator += (const gp_Quaternion& theOther) void operator += (const gp_Quaternion& theOther)
{ {
Add(theOther); Add(theOther);
} }
//! Subtracts componnets of other quaternion; result is "rotations mix" //! Subtracts componnets of other quaternion; result is "rotations mix"
Standard_EXPORT void Subtract (const gp_Quaternion& theOther); void Subtract (const gp_Quaternion& theOther);
void operator -= (const gp_Quaternion& theOther) void operator -= (const gp_Quaternion& theOther)
{ {
Subtract(theOther); Subtract(theOther);
} }
//! Adds rotation by multiplication //! Adds rotation by multiplication
Standard_EXPORT void Multiply (const gp_Quaternion& theOther); void Multiply (const gp_Quaternion& theOther);
void operator *= (const gp_Quaternion& theOther) void operator *= (const gp_Quaternion& theOther)
{ {
Multiply(theOther); Multiply(theOther);
} }
//! Computes inner product / scalar product / Dot //! Computes inner product / scalar product / Dot
Standard_EXPORT Standard_Real Dot (const gp_Quaternion& theOther) const; Standard_Real Dot (const gp_Quaternion& theOther) const;
//! Return rotation angle from -PI to PI //! Return rotation angle from -PI to PI
Standard_EXPORT Standard_Real GetRotationAngle() const; Standard_EXPORT Standard_Real GetRotationAngle() const;

View File

@ -120,7 +120,7 @@ public:
//! Reverses the V parametrization of the torus //! Reverses the V parametrization of the torus
//! reversing the ZAxis. //! reversing the ZAxis.
Standard_EXPORT void VReverse(); void VReverse();
//! returns true if the Ax3, the local coordinate system of this torus, is right handed. //! returns true if the Ax3, the local coordinate system of this torus, is right handed.
Standard_Boolean Direct() const; Standard_Boolean Direct() const;

View File

@ -197,7 +197,7 @@ public:
//! Raises ConstructionError If S is null. //! Raises ConstructionError If S is null.
Standard_EXPORT void SetScaleFactor (const Standard_Real S); Standard_EXPORT void SetScaleFactor (const Standard_Real S);
Standard_EXPORT void SetForm (const gp_TrsfForm P); void SetForm (const gp_TrsfForm P);
//! Sets the coefficients of the transformation. The //! Sets the coefficients of the transformation. The
//! transformation of the point x,y,z is the point //! transformation of the point x,y,z is the point