((MinMaxFEdg->Max[7] - myLEMinMax->Min[7]) & 0x80008000) == 0) { //-- Rejection en Z
// not rejected perform intersection
Standard_Boolean rej = Standard_False;
- if (myLE == myFE) { // test if an auto-intersection is not usefull
+ if (myLE == myFE) { // test if an auto-intersection is not useful
if (((HLRBRep_EdgeData*)myLEData)->AutoIntersectionDone()) {
((HLRBRep_EdgeData*)myLEData)->
AutoIntersectionDone(Standard_True);
class IntRes2d_IntersectionPoint;
class TableauRejection;
-
class HLRBRep_Data;
DEFINE_STANDARD_HANDLE(HLRBRep_Data, Standard_Transient)
-
class HLRBRep_Data : public Standard_Transient
{
//! classification.
Standard_EXPORT TopAbs_State Compare (const Standard_Integer E, const HLRBRep_EdgeData& ED);
- //! Simple classification of part of edge [p1, p2]
- //! returns OUT if at least 1 of Nbp points of edge is out
- //! othewise returns IN
- //! It is used to check "suspision" hided part of edge.
+ //! Simple classification of part of edge [p1, p2].
+ //! Returns OUT if at least 1 of Nbp points of edge is out; otherwise returns IN.
+ //! It is used to check "suspicion" hidden part of edge.
Standard_EXPORT TopAbs_State SimplClassify (const Standard_Integer E, const HLRBRep_EdgeData& ED, const Standard_Integer Nbp, const Standard_Real p1, const Standard_Real p2);
//! Classification of an edge.
Destroy();
}
-
-
DEFINE_STANDARD_RTTIEXT(HLRBRep_Data,Standard_Transient)
-protected:
-
-
-
-
private:
-
//! Orient the OutLines ( left must be inside in
//! projection ). Returns True if the face of a closed
//! shell has been inverted;
//! Returns True if the intersection is rejected.
Standard_EXPORT Standard_Boolean RejectedPoint (const IntRes2d_IntersectionPoint& PInter, const TopAbs_Orientation BoundOri, const Standard_Integer NumSeg);
- //! returns True if there is a common vertex between
- //! myLE and myFE dependig on <head1> and <head2>.
+ //! Returns True if there is a common vertex between myLE and myFE depending on <head1> and <head2>.
Standard_EXPORT Standard_Boolean SameVertex (const Standard_Boolean head1, const Standard_Boolean head2);
+private:
+
Standard_Integer myNbVertices;
Standard_Integer myNbEdges;
Standard_Integer myNbFaces;
Standard_Boolean myAboveIntf;
TableauRejection* myReject;
-
};
-
#include <HLRBRep_Data.lxx>
-
-
-
#endif // _HLRBRep_Data_HeaderFile
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- std::cout << "An exception was catched when hiding edge " << E;
+ std::cout << "An exception was caught when hiding edge " << E;
std::cout << " by the face " << FI << std::endl;
std::cout << anException << std::endl;
#endif
catch(Standard_Failure const& anException) {
if (myDebug)
{
- std::cout << "An exception was catched when preparing the Shape " << i;
+ std::cout << "An exception was caught when preparing the Shape " << i;
std::cout << " and computing its OutLines " << std::endl;
std::cout << anException << std::endl;
}
std::cout << "Vertices : " << std::setw(5) << myDS->NbVertices() << std::endl;
std::cout << "Edges : " << std::setw(5) << myDS->NbEdges() << " , ";
std::cout << "Selected : " << std::setw(5) << nbSelEdges << " , ";
- std::cout << "Visibles : " << std::setw(5) << nbVisEdges << std::endl;
+ std::cout << "Visible : " << std::setw(5) << nbVisEdges << std::endl;
std::cout << "Faces : " << std::setw(5) << myDS->NbFaces() << " , ";
std::cout << "Selected : " << std::setw(5) << nbSelFaces << " , ";
std::cout << "Simple : " << std::setw(5) << nbFSimp << std::endl;
class IntRes2d_IntersectionSegment;
class IntCurveSurface_IntersectionSegment;
-
-//! The Intersector computes 2D intersections of the
-//! projections of 3D curves.
-//!
-//! It can also computes the intersection of a 3D line
-//! and a surface.
+//! The Intersector computes 2D intersections of the projections of 3D curves.
+//! It can also computes the intersection of a 3D line and a surface.
class HLRBRep_Intersector
{
public:
DEFINE_STANDARD_ALLOC
-
Standard_EXPORT HLRBRep_Intersector();
- //! Performs the auto intersection of an edge. The
- //! edge domain is cutted at start with da1*(b-a) and
- //! at end with db1*(b-a).
+ //! Performs the auto intersection of an edge.
+ //! The edge domain is cut at start with da1*(b-a) and at end with db1*(b-a).
Standard_EXPORT void Perform (const Standard_Address A1, const Standard_Real da1, const Standard_Real db1);
- //! Performs the intersection between the two edges.
- //! The edges domains are cutted at start with
- //! da*(b-a) and at end with db*(b-a).
+ //! Performs the intersection between the two edges.
+ //! The edges domains are cut at start with da*(b-a) and at end with db*(b-a).
Standard_EXPORT void Perform (const Standard_Integer nA, const Standard_Address A1, const Standard_Real da1, const Standard_Real db1, const Standard_Integer nB, const Standard_Address A2, const Standard_Real da2, const Standard_Real db2, const Standard_Boolean NoBound);
//! Create a single IntersectionPoint (U on A1) (V on A2)
Destroy();
}
-
-
-
-protected:
-
-
-
-
-
private:
-
-
IntRes2d_IntersectionPoint mySinglePoint;
Standard_Integer myTypePerform;
HLRBRep_CInter myIntersector;
Standard_Address mySurface;
HLRBRep_ThePolyhedronOfInterCSurf* myPolyhedron;
-
};
-
-
-
-
-
-
#endif // _HLRBRep_Intersector_HeaderFile
//! Save the found extremum.
Standard_EXPORT virtual Standard_Integer GetStateNumber() Standard_OVERRIDE;
- //! Return the nunber of found extrema.
+ //! Return the number of found extrema.
Standard_EXPORT Standard_Integer NbExt() const;
//! Returns the Nth distance.
DEFINE_STANDARD_ALLOC
-
Standard_EXPORT HLRBRep_TheLocateExtPCOfTheProjPCurOfCInter();
-
+
//! Calculates the distance with a close point.
- //! The close point is defined by the parameter value
- //! U0.
- //! The function F(u)=distance(P,C(u)) has an extremum
- //! when g(u)=dF/du=0. The algorithm searchs a zero
- //! near the close point.
+ //! The close point is defined by the parameter value U0.
+ //! The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0.
+ //! The algorithm searches a zero near the close point.
//! TolU is used to decide to stop the iterations.
//! At the nth iteration, the criteria is:
//! abs(Un - Un-1) < TolU.
Standard_EXPORT HLRBRep_TheLocateExtPCOfTheProjPCurOfCInter(const gp_Pnt2d& P, const Standard_Address& C, const Standard_Real U0, const Standard_Real TolU);
//! Calculates the distance with a close point.
- //! The close point is defined by the parameter value
- //! U0.
- //! The function F(u)=distance(P,C(u)) has an extremum
- //! when g(u)=dF/du=0. The algorithm searchs a zero
- //! near the close point.
- //! Zeros are searched between Umin et Usup.
+ //! The close point is defined by the parameter value U0.
+ //! The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0.
+ //! The algorithm searches a zero near the close point.
+ //! Zeros are searched between Umin and Usup.
//! TolU is used to decide to stop the iterations.
//! At the nth iteration, the criteria is:
//! abs(Un - Un-1) < TolU.
//! Returns the point of the extremum distance.
Standard_EXPORT const Extrema_POnCurv2d& Point() const;
-
-
-
-protected:
-
-
-
-
-
private:
-
-
Standard_Boolean myDone;
Standard_Real mytolU;
Standard_Real myumin;
Standard_Real myusup;
HLRBRep_PCLocFOfTheLocateExtPCOfTheProjPCurOfCInter myF;
-
};
-
-
-
-
-
-
#endif // _HLRBRep_TheLocateExtPCOfTheProjPCurOfCInter_HeaderFile
class Bnd_Box;
class gp_XYZ;
-
-
class HLRBRep_ThePolyhedronOfInterCSurf
{
public:
DEFINE_STANDARD_ALLOC
-
Standard_EXPORT HLRBRep_ThePolyhedronOfInterCSurf(const Standard_Address& Surface, const Standard_Integer nbdU, const Standard_Integer nbdV, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2);
Standard_EXPORT HLRBRep_ThePolyhedronOfInterCSurf(const Standard_Address& Surface, const TColStd_Array1OfReal& Upars, const TColStd_Array1OfReal& Vpars);
//! Give the number of triangles in this double array of
Standard_EXPORT Standard_Integer NbTriangles() const;
- //! Give the 3 points of the triangle of addresse Index in
+ //! Give the 3 points of the triangle of address Index in
//! the double array of triangles.
Standard_EXPORT void Triangle (const Standard_Integer Index, Standard_Integer& P1, Standard_Integer& P2, Standard_Integer& P3) const;
- //! Give the addresse Tricon of the triangle connexe to the
+ //! Give the address Tricon of the triangle connexe to the
//! triangle of address Triang by the edge Pivot Pedge and
//! the third point of this connexe triangle. When we are
//! on a free edge TriCon==0 but the function return the
Standard_EXPORT Standard_Boolean HasVMaxSingularity() const;
- //! Give the plane equation of the triangle of addresse Triang.
+ //! Give the plane equation of the triangle of address Triang.
Standard_EXPORT void PlaneEquation (const Standard_Integer Triang, gp_XYZ& NormalVector, Standard_Real& PolarDistance) const;
- //! Give the plane equation of the triangle of addresse Triang.
+ //! Give the plane equation of the triangle of address Triang.
Standard_EXPORT Standard_Boolean Contain (const Standard_Integer Triang, const gp_Pnt& ThePnt) const;
Standard_EXPORT void Parameters (const Standard_Integer Index, Standard_Real& U, Standard_Real& V) const;
Standard_EXPORT void Dump() const;
-
-
-
protected:
Standard_EXPORT void Init (const Standard_Address& Surface, const TColStd_Array1OfReal& Upars, const TColStd_Array1OfReal& Vpars);
-
-
-
private:
-
//! This method computes and returns a deflection of isoline
//! of given parameter on Surface.
Standard_EXPORT Standard_Real ComputeBorderDeflection (const Standard_Address& Surface, const Standard_Real Parameter, const Standard_Real PMin, const Standard_Real PMax, const Standard_Boolean isUIso) const;
+private:
Standard_Integer nbdeltaU;
Standard_Integer nbdeltaV;
Standard_Real TheBorderDeflection;
Standard_Address C_MyIsOnBounds;
-
};
#define ThePSurface Standard_Address
#undef IntCurveSurface_Polyhedron
#undef IntCurveSurface_Polyhedron_hxx
-
-
-
#endif // _HLRBRep_ThePolyhedronOfInterCSurf_HeaderFile
class Bnd_Box;
class gp_Pnt;
-
-
class HLRBRep_ThePolyhedronToolOfInterCSurf
{
public:
DEFINE_STANDARD_ALLOC
-
//! Give the bounding box of the PolyhedronTool.
- static const Bnd_Box& Bounding (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh);
-
+ static const Bnd_Box& Bounding (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh);
+
//! Give the array of boxes. The box <n> corresponding
//! to the triangle <n>.
- static const Handle(Bnd_HArray1OfBox)& ComponentsBounding (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh);
-
- //! Give the tolerance of the polygon.
- static Standard_Real DeflectionOverEstimation (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh);
-
- //! Give the number of triangles in this polyedral surface.
- static Standard_Integer NbTriangles (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh);
-
- //! Give the indices of the 3 points of the triangle of
- //! address Index in the PolyhedronTool.
- static void Triangle (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, const Standard_Integer Index, Standard_Integer& P1, Standard_Integer& P2, Standard_Integer& P3);
-
- //! Give the point of index i in the polyedral surface.
- static const gp_Pnt& Point (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, const Standard_Integer Index);
-
- //! Give the addresse Tricon of the triangle connexe to
- //! the triangle of address Triang by the edge Pivot Pedge
- //! and the third point of this connexe triangle. When we
- //! are on a free edge TriCon==0 but the function return
- //! the value of the triangle in the other side of Pivot
- //! on the free edge. Used to turn around a vertex.
- static Standard_Integer TriConnex (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, const Standard_Integer Triang, const Standard_Integer Pivot, const Standard_Integer Pedge, Standard_Integer& TriCon, Standard_Integer& OtherP);
-
- //! This method returns true if the edge based on points with
- //! indices Index1 and Index2 represents a boundary edge. It is
- //! necessary to take into account the boundary deflection for
- //! this edge.
- static Standard_Boolean IsOnBound (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, const Standard_Integer Index1, const Standard_Integer Index2);
-
- //! This method returns a border deflection of the polyhedron.
- static Standard_Real GetBorderDeflection (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh);
-
- Standard_EXPORT static void Dump (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh);
-
-
-
-
-protected:
-
+ static const Handle(Bnd_HArray1OfBox)& ComponentsBounding (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh);
+ //! Give the tolerance of the polygon.
+ static Standard_Real DeflectionOverEstimation (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh);
+ //! Give the number of triangles in this polyhedral surface.
+ static Standard_Integer NbTriangles (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh);
+ //! Give the indices of the 3 points of the triangle of
+ //! address Index in the PolyhedronTool.
+ static void Triangle (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, const Standard_Integer Index, Standard_Integer& P1, Standard_Integer& P2, Standard_Integer& P3);
-private:
+ //! Give the point of index i in the polyhedral surface.
+ static const gp_Pnt& Point (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, const Standard_Integer Index);
+ //! Give the address Tricon of the triangle connexe to
+ //! the triangle of address Triang by the edge Pivot Pedge
+ //! and the third point of this connexe triangle.
+ //! When we are on a free edge TriCon==0 but the function return
+ //! the value of the triangle in the other side of Pivot on the free edge.
+ //! Used to turn around a vertex.
+ static Standard_Integer TriConnex (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, const Standard_Integer Triang, const Standard_Integer Pivot, const Standard_Integer Pedge, Standard_Integer& TriCon, Standard_Integer& OtherP);
+ //! This method returns true if the edge based on points with
+ //! indices Index1 and Index2 represents a boundary edge.
+ //! It is necessary to take into account the boundary deflection for this edge.
+ static Standard_Boolean IsOnBound (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, const Standard_Integer Index1, const Standard_Integer Index2);
+ //! This method returns a border deflection of the polyhedron.
+ static Standard_Real GetBorderDeflection (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh);
+ Standard_EXPORT static void Dump (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh);
};
class HLRBRep_PCLocFOfTheLocateExtPCOfTheProjPCurOfCInter;
class gp_Pnt2d;
-
-
class HLRBRep_TheProjPCurOfCInter
{
public:
DEFINE_STANDARD_ALLOC
-
//! Returns the parameter V of the point on the
//! parametric curve corresponding to the Point Pnt.
- //! The Correspondance between Pnt and the point P(V)
+ //! The Correspondence between Pnt and the point P(V)
//! on the parametric curve must be coherent with the
//! way of determination of the signed distance
//! between a point and the implicit curve.
//! Tol is the tolerance on the distance between a point
//! and the parametrised curve.
//! In that case, no bounds are given. The research of
- //! the rigth parameter has to be made on the natural
+ //! the right parameter has to be made on the natural
//! parametric domain of the curve.
Standard_EXPORT static Standard_Real FindParameter (const Standard_Address& C, const gp_Pnt2d& Pnt, const Standard_Real Tol);
//! Returns the parameter V of the point on the
//! parametric curve corresponding to the Point Pnt.
- //! The Correspondance between Pnt and the point P(V)
+ //! The Correspondence between Pnt and the point P(V)
//! on the parametric curve must be coherent with the
//! way of determination of the signed distance
//! between a point and the implicit curve.
//! LowParameter <= Value <= HighParameter.
Standard_EXPORT static Standard_Real FindParameter (const Standard_Address& C, const gp_Pnt2d& Pnt, const Standard_Real LowParameter, const Standard_Real HighParameter, const Standard_Real Tol);
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
};
-
-
-
-
-
-
#endif // _HLRBRep_TheProjPCurOfCInter_HeaderFile
itE.Next()) {
TopoDS_Edge E = TopoDS::Edge(itE.Value());
E.Orientation(TopAbs_INTERNAL);
- if (myDS.EdgeHasSplE(E)) { // normaly IsoLines are never splitted.
+ if (myDS.EdgeHasSplE(E)) { // normally IsoLines are never split.
TopTools_ListIteratorOfListOfShape itS;
for (itS.Initialize(myDS.EdgeSplE(E));
//!
//! the function a(u)D(u) has value 1 at the umin and umax
//! and has 0.0e0 derivative value a umin and umax.
-//! The details of the computation occuring in this package
+//! The details of the computation occurring in this package
//! can be found by reading :
//! " Etude sur la concatenation de NURBS en vue du
//! balayage de surfaces" PFE n S85 Ensam Lille
DEFINE_STANDARD_ALLOC
-
//! returns the correct spline a(u) which will
//! be multiplicated with BS later.
Standard_EXPORT static Handle(Geom2d_BSplineCurve) Solution (const Handle(Geom_BSplineCurve)& BS, const Standard_Real TolPoles = 0.000001, const Standard_Real TolKnots = 0.000001);
//! tolerances.
Standard_EXPORT static void Solutionbis (const Handle(Geom_BSplineCurve)& BS, Standard_Real& Knotmin, Standard_Real& Knotmax, const Standard_Real TolPoles = 0.000001, const Standard_Real TolKnots = 0.000001);
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
};
-
-
-
-
-
-
#endif // _Hermit_HeaderFile
class Standard_Transient;
class Interface_EntityIterator;
-
//! this class gives entities which are Articulation points
//! in a whole Model or in a sub-part
//! An Articulation Point divides the graph in two (or more)
//! disconnected sub-graphs
//! Identifying Articulation Points allows improving
-//! efficiency of spliting a set of Entities into sub-sets
+//! efficiency of splitting a set of Entities into sub-sets
class IFGraph_Articulations : public Interface_GraphContent
{
public:
DEFINE_STANDARD_ALLOC
-
//! creates Articulations to evaluate a Graph
//! whole True : works on the whole Model
//! whole False : remains empty, ready to work on a sub-part
//! Evaluates the list of Articulation points
Standard_EXPORT virtual void Evaluate() Standard_OVERRIDE;
-
-
-
-protected:
-
-
-
-
-
private:
-
//! basic routine of computation
//! (see book Sedgewick "Algorithms", p 392)
Standard_EXPORT Standard_Integer Visit (const Standard_Integer num);
+private:
Interface_Graph thegraph;
Standard_Integer thenow;
Handle(TColStd_HSequenceOfInteger) thelist;
-
};
-
-
-
-
-
-
#endif // _IFGraph_Articulations_HeaderFile
// Pour travailler, ConnectedComponants exploite AllConnected :
// On prend un 1er Vertex, on determine ses AllConnected -> voila un 1er
-// Connected Componant
+// Connected Component
// On recommence jusqu'a ce qu'il n'y ait plus de Vertex libre
// Honnetement, si ca ne marche pas, cf classe ConnectedVerticesIterator
// de GraphTools qui fait en principe la meme chose
#include <Standard_Boolean.hxx>
class Interface_Graph;
-
-//! determines Connected Componants in a Graph. They define
-//! disjoined sets of Entities
+//! determines Connected Components in a Graph.
+//! They define disjoined sets of Entities.
class IFGraph_ConnectedComponants : public IFGraph_SubPartsIterator
{
public:
DEFINE_STANDARD_ALLOC
-
//! creates with a Graph, and will analyse :
//! whole True : all the contents of the Model
//! does the computation
Standard_EXPORT virtual void Evaluate() Standard_OVERRIDE;
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
};
-
-
-
-
-
-
#endif // _IFGraph_ConnectedComponants_HeaderFile
#include <TColStd_HSequenceOfInteger.hxx>
class IFSelect_GeneralModifier;
-
class IFSelect_AppliedModifiers;
DEFINE_STANDARD_HANDLE(IFSelect_AppliedModifiers, Standard_Transient)
//! This class allows to memorize and access to the modifiers
//! which are to be applied to a file. To each modifier, is bound
-//! a list of integers (optionnal) : if this list is absent, the
-//! modifier applies to all the file. Else, it applies to the
+//! a list of integers (optional) : if this list is absent,
+//! the modifier applies to all the file. Else, it applies to the
//! entities designated by these numbers in the produced file.
//!
-//! To record a modifier, and a possible list of entity numbers
-//! to be applied on :
+//! To record a modifier, and a possible list of entity numbers to be applied on:
//! AddModif (amodifier);
//! loop on AddNum (anumber);
//!
-//! To query it, Count gives the count of recorded modifiers,
-//! then for each one :
+//! To query it, Count gives the count of recorded modifiers, then for each one:
//! Item (numodif, amodifier, entcount);
//! IsForAll () -> can be called, if True, applies on the whole file
//!
//! nument = ItemNum (i); -> return an entity number
class IFSelect_AppliedModifiers : public Standard_Transient
{
-
public:
-
//! Creates an AppliedModifiers, ready to record up to <nbmax>
//! modifiers, on a model of <nbent> entities
//! numbers, each one is queried by ItemNum
Standard_EXPORT Standard_Boolean IsForAll() const;
-
-
-
DEFINE_STANDARD_RTTIEXT(IFSelect_AppliedModifiers,Standard_Transient)
-protected:
-
-
-
-
private:
-
IFSelect_SequenceOfGeneralModifier themodifs;
Interface_IntList thelists;
Standard_Integer thenbent;
Standard_Integer theentcnt;
-
};
-
-
-
-
-
-
#endif // _IFSelect_AppliedModifiers_HeaderFile
DEFINE_STANDARD_ALLOC
-
//! Prepares a ContextModif with these information :
//! - the graph established from original model (target passed
//! directly to Modifier)
//! Traces the modification of the current entity (see above,
//! ValueOriginal and ValueResult) for default trace level >= 2.
- //! To be called on each indivudual entity really modified
- //! <mess> is an optionnal additional message
+ //! To be called on each individual entity really modified
+ //! <mess> is an optional additional message
Standard_EXPORT void Trace (const Standard_CString mess = "");
//! Adds a Check to the CheckList. If it is empty, nothing is done
//! Returns the complete CheckList
Standard_EXPORT Interface_CheckIterator CheckList() const;
-
-
-
-protected:
-
-
-
-
-
private:
-
-
Interface_Graph thegraf;
Handle(Interface_Protocol) theprot;
Handle(Interface_CopyControl) themap;
Standard_Integer thecurr;
Standard_Integer thecurt;
-
};
-
-
-
-
-
-
#endif // _IFSelect_ContextModif_HeaderFile
//! Number of Value for the Editor
//! While references to Rank are for rank in the EditForm, which
//! may differ if it is not Complete
-//! Two methods give the correspondance between this Number and
+//! Two methods give the correspondence between this Number and
//! the Rank in the EditForm : RankFromNumber and NumberFromRank
class IFSelect_EditForm : public Standard_Transient
{
-
public:
-
//! Creates a complete EditForm from an Editor
//! A specific Label can be given
Standard_EXPORT IFSelect_EditForm(const Handle(IFSelect_Editor)& editor, const Standard_Boolean readonly, const Standard_Boolean undoable, const Standard_CString label = "");
//! Can be run only once
Standard_EXPORT Standard_Boolean Undo();
-
-
-
DEFINE_STANDARD_RTTIEXT(IFSelect_EditForm,Standard_Transient)
-protected:
-
-
-
-
private:
-
Standard_Boolean thecomplete;
Standard_Boolean theloaded;
Standard_Boolean thekeepst;
Handle(Interface_InterfaceModel) themodel;
Standard_Integer thetouched;
-
};
-
-
-
-
-
-
#endif // _IFSelect_EditForm_HeaderFile
if (argc < 2 || (argc == 2 && levmax < 0)) {
sout<<"Give n0 or id of entity";
if (levmax < 0) sout<<" and dump level"<<std::endl;
- else sout<<" + optinal, dump level in [0 - "<<levmax<<"] , default = "<<levdef<<std::endl;
+ else sout<<" + optional, dump level in [0 - "<<levmax<<"] , default = "<<levdef<<std::endl;
for (level = 0; level <= levmax; level ++) {
Standard_CString help = WL->DumpHelp (level);
if (help[0] != '\0') sout<<level<<" : "<<help<<std::endl;
class IFSelect_WorkSession;
class IFSelect_Dispatch;
-
//! Functions gives access to all the actions which can be
//! commanded with the resources provided by IFSelect : especially
//! WorkSession and various types of Selections and Dispatches
DEFINE_STANDARD_ALLOC
-
- //! Takes the name of an entity, either as argument, or (if <name>
- //! is empty) on keybord, and returns the entity
- //! name can be a label or a number (in alphanumeric), it is
- //! searched by NumberFromLabel from WorkSession.
+ //! Takes the name of an entity, either as argument,
+ //! or (if <name> is empty) on keyboard, and returns the entity
+ //! name can be a label or a number (in alphanumeric),
+ //! it is searched by NumberFromLabel from WorkSession.
//! If <name> doesn't match en entity, a Null Handle is returned
Standard_EXPORT static Handle(Standard_Transient) GiveEntity (const Handle(IFSelect_WorkSession)& WS, const Standard_CString name = "");
//! Defines and loads all basic functions (as ActFunc)
Standard_EXPORT static void Init();
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
};
-
-
-
-
-
-
#endif // _IFSelect_Functions_HeaderFile
class IFSelect_Dispatch;
class TCollection_AsciiString;
-
class IFSelect_GeneralModifier;
DEFINE_STANDARD_HANDLE(IFSelect_GeneralModifier, Standard_Transient)
//! This class gives a frame for Actions which modify the effect
//! of a Dispatch, i.e. :
//! By Selections and Dispatches, an original Model can be
-//! splitted into one or more "target" Models : these Models
+//! split into one or more "target" Models : these Models
//! contain Entities copied from the original one (that is, a
//! part of it). Basically, these dispatched Entities are copied
//! as identical to their original counterparts. Also the copied
public:
-
//! Returns True if this modifier may change the graph of
//! dependences (aknowledged at creation time)
Standard_EXPORT Standard_Boolean MayChangeGraph() const;
//! Resets the Selection : this criterium is not longer active
Standard_EXPORT void ResetSelection();
- //! Returns True if a Selection is set as an additionnal criterium
+ //! Returns True if a Selection is set as an additional criterium
Standard_EXPORT Standard_Boolean HasSelection() const;
//! Returns the Selection, or a Null Handle if not set
//! Returns a short text which defines the operation performed
Standard_EXPORT virtual TCollection_AsciiString Label() const = 0;
-
-
-
DEFINE_STANDARD_RTTIEXT(IFSelect_GeneralModifier,Standard_Transient)
protected:
-
//! Sets the Modifier criteria to default Values
//! (i.e. "always applies")
//! <maychangegraph> must be provided at creation time, to :
//! dependencies when this modifier is applied
Standard_EXPORT IFSelect_GeneralModifier(const Standard_Boolean maychangegraph);
-
-
private:
-
Handle(IFSelect_Selection) thesel;
Handle(IFSelect_Dispatch) thedisp;
Standard_Boolean thechgr;
-
};
-
-
-
-
-
-
#endif // _IFSelect_GeneralModifier_HeaderFile
#include <Standard_Transient.hxx>
#include <Standard_CString.hxx>
-
class IFSelect_IntParam;
DEFINE_STANDARD_HANDLE(IFSelect_IntParam, Standard_Transient)
//! parameters of a Selection or a Dispatch (according its type)
//! can be controlled directly from the ShareOut which contains them
//!
-//! Additionnaly, an IntParam can be bound to a Static.
+//! Additionally, an IntParam can be bound to a Static.
//! Remember that for a String, binding is immediate, because the
//! string value of a Static is a HAsciiString, it then suffices
//! to get its Handle.
public:
-
//! Creates an IntParam. Initial value is set to zer
Standard_EXPORT IFSelect_IntParam();
Standard_EXPORT void SetValue (const Standard_Integer val);
-
-
DEFINE_STANDARD_RTTIEXT(IFSelect_IntParam,Standard_Transient)
-protected:
-
-
-
-
private:
-
Standard_Integer theval;
TCollection_AsciiString thestn;
-
};
-
-
-
-
-
-
#endif // _IFSelect_IntParam_HeaderFile
class Interface_InterfaceModel;
class TCollection_HAsciiString;
-
class IFSelect_ListEditor;
DEFINE_STANDARD_HANDLE(IFSelect_ListEditor, Standard_Transient)
public:
-
//! Creates a ListEditor with absolutely no constraint
Standard_EXPORT IFSelect_ListEditor();
//! Loads a Model. It is used to check items of type Entity(Ident)
Standard_EXPORT void LoadModel (const Handle(Interface_InterfaceModel)& model);
-
- //! Loads the original values for the list
- //! Remark : If its length is mor then MaxLength, editions remain
- //! allowed, except Add
+
+ //! Loads the original values for the list.
+ //! Remark : If its length is more then MaxLength, editions remain allowed, except Add
Standard_EXPORT void LoadValues (const Handle(TColStd_HSequenceOfHAsciiString)& vals);
-
+
//! Declares this ListEditor to have been touched (whatever action)
Standard_EXPORT void SetTouched();
//! been recorded
Standard_EXPORT Standard_Boolean IsTouched() const;
-
-
-
DEFINE_STANDARD_RTTIEXT(IFSelect_ListEditor,Standard_Transient)
-protected:
-
-
-
-
private:
-
Standard_Integer themax;
Handle(Interface_TypedValue) thedef;
Standard_Integer thetouc;
Handle(TColStd_HSequenceOfInteger) thestat;
Handle(Interface_InterfaceModel) themodl;
-
};
-
-
-
-
-
-
#endif // _IFSelect_ListEditor_HeaderFile
class Interface_Graph;
class Interface_EntityIterator;
-
class IFSelect_ModelCopier;
DEFINE_STANDARD_HANDLE(IFSelect_ModelCopier, Standard_Transient)
//! description of a ShareOut (evaluated by a ShareOutResult)
//! plus, if there are, the Modifications on the results, with
//! the help of Modifiers. Each Modifier can work on one or more
-//! resulting packets, accoding its criteria : it operates on a
-//! Model once copied and filled with the content of the packet.
+//! resulting packets, according to its criteria : it operates on
+//! a Model once copied and filled with the content of the packet.
//!
//! Modifiers can be :
//! - Model Modifiers, inheriting from the specific class Modifier
public:
-
//! Creates an empty ModelCopier
Standard_EXPORT IFSelect_ModelCopier();
//! BeginSentFiles has stopped recording.
Standard_EXPORT Handle(TColStd_HSequenceOfHAsciiString) SentFiles() const;
-
-
-
DEFINE_STANDARD_RTTIEXT(IFSelect_ModelCopier,Standard_Transient)
protected:
-
//! Internal routine which does the effective Copy. It allows to
//! work, either with a standard CopyTool, or a specialised one
//! Copying itself is done by <WL> which uses a CopyTool
//! <G> is the graph which defines the starting entities, it
//! contains the original InterfaceModel
//! <WL> performs the copy by using <TC>
- //! <protocol> is the used protocol (can be usefull for Modifiers)
+ //! <protocol> is the used protocol (can be useful for Modifiers)
//! <topcopy> is the list of Entities which are the Roots of the
//! packet to be copied
//! <filename> is the name of the file which will receive it
//! itself of the file, these changes are ignored
Standard_EXPORT void CopiedModel (const Interface_Graph& G, const Handle(IFSelect_WorkLibrary)& WL, const Handle(Interface_Protocol)& protocol, const Interface_EntityIterator& topcopy, const TCollection_AsciiString& filename, const Standard_Integer dispnum, const Standard_Integer numod, Interface_CopyTool& TC, Handle(Interface_InterfaceModel)& newmod, Handle(IFSelect_AppliedModifiers)& applied, Interface_CheckIterator& checks) const;
-
-
private:
-
IFSelect_SequenceOfInterfaceModel thefilemodels;
TColStd_SequenceOfAsciiString thefilenames;
IFSelect_SequenceOfAppliedModifiers theapplieds;
Handle(TColStd_HArray1OfInteger) theremain;
Handle(TColStd_HSequenceOfHAsciiString) thesentfiles;
-
};
-
-
-
-
-
-
#endif // _IFSelect_ModelCopier_HeaderFile
class Standard_Transient;
class Interface_InterfaceModel;
-
class IFSelect_ParamEditor;
DEFINE_STANDARD_HANDLE(IFSelect_ParamEditor, IFSelect_Editor)
public:
-
//! Creates a ParamEditor, empty, with a maximum count of params
//! (default is 100)
//! And a label, by default it will be "Param Editor"
Standard_EXPORT IFSelect_ParamEditor(const Standard_Integer nbmax = 100, const Standard_CString label = "");
-
+
//! Adds a TypedValue
- //! By default, its short name equates its complete name, it can
- //! be explicited
- Standard_EXPORT void AddValue (const Handle(Interface_TypedValue)& val, const Standard_CString shortname = "");
-
+ //! By default, its short name equates its complete name, it can be made explicit
+ Standard_EXPORT void AddValue (const Handle(Interface_TypedValue)& val,
+ const Standard_CString shortname = "");
+
//! Adds a Constant Text, it will be Read Only
//! By default, its long name equates its shortname
Standard_EXPORT void AddConstantText (const Standard_CString val, const Standard_CString shortname, const Standard_CString completename = "");
//! Null Handle if <list> is null or empty
Standard_EXPORT static Handle(IFSelect_ParamEditor) StaticEditor (const Handle(TColStd_HSequenceOfHAsciiString)& list, const Standard_CString label = "");
-
-
-
DEFINE_STANDARD_RTTIEXT(IFSelect_ParamEditor,IFSelect_Editor)
-protected:
-
-
-
-
private:
-
TCollection_AsciiString thelabel;
-
};
-
-
-
-
-
-
#endif // _IFSelect_ParamEditor_HeaderFile
class Standard_Transient;
class Interface_InterfaceModel;
-
class IFSelect_SelectAnyType;
DEFINE_STANDARD_HANDLE(IFSelect_SelectAnyType, IFSelect_SelectExtract)
public:
-
//! Returns the Type which has to be matched for select
Standard_EXPORT virtual Handle(Standard_Type) TypeForMatch() const = 0;
-
+
//! Returns True for an Entity (model->Value(num)) which is kind
- //! of the choosen type, given by the method TypeForMatch.
+ //! of the chosen type, given by the method TypeForMatch.
//! Criterium is IsKind.
Standard_EXPORT Standard_Boolean Sort (const Standard_Integer rank, const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const Standard_OVERRIDE;
-
-
-
DEFINE_STANDARD_RTTIEXT(IFSelect_SelectAnyType,IFSelect_SelectExtract)
-protected:
-
-
-
-
-private:
-
-
-
-
};
-
-
-
-
-
-
#endif // _IFSelect_SelectAnyType_HeaderFile
class Interface_Graph;
class TCollection_AsciiString;
-
class IFSelect_SelectEntityNumber;
DEFINE_STANDARD_HANDLE(IFSelect_SelectEntityNumber, IFSelect_SelectBase)
//! Graph), the Entity which has a specified Number (its rank of
//! adding into the Model) : there can be zero (if none) or one.
//! The Number is not directly defined as an Integer, but as a
-//! Parameter, which can be externally controled
+//! Parameter, which can be externally controlled
class IFSelect_SelectEntityNumber : public IFSelect_SelectBase
{
public:
-
//! Creates a SelectEntityNumber, initially with no specified Number
Standard_EXPORT IFSelect_SelectEntityNumber();
//! Returns a text defining the criterium : "Entity Number ..."
Standard_EXPORT TCollection_AsciiString Label() const Standard_OVERRIDE;
-
-
-
DEFINE_STANDARD_RTTIEXT(IFSelect_SelectEntityNumber,IFSelect_SelectBase)
-protected:
-
-
-
-
private:
-
Handle(IFSelect_IntParam) thenum;
-
};
-
-
-
-
-
-
#endif // _IFSelect_SelectEntityNumber_HeaderFile
class Interface_InterfaceModel;
class TCollection_AsciiString;
-
class IFSelect_SelectRange;
DEFINE_STANDARD_HANDLE(IFSelect_SelectRange, IFSelect_SelectExtract)
//! Returns Value of Upper Limit (0 if none is defined)
Standard_EXPORT Standard_Integer UpperValue() const;
-
- //! Returns True for an Entity of which occurence number in the
+
+ //! Returns True for an Entity of which occurrence number in the
//! iteration is inside the selected Range (considers <rank>)
Standard_EXPORT Standard_Boolean Sort (const Standard_Integer rank, const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const Standard_OVERRIDE;
-
+
//! Returns a text defining the criterium : following cases,
//! " From .. Until .." or "From .." or "Until .." or "Rank no .."
Standard_EXPORT TCollection_AsciiString ExtractLabel() const Standard_OVERRIDE;
-
-
-
DEFINE_STANDARD_RTTIEXT(IFSelect_SelectRange,IFSelect_SelectExtract)
-protected:
-
-
-
-
private:
-
Handle(IFSelect_IntParam) thelower;
Handle(IFSelect_IntParam) theupper;
-
};
-
-
-
-
-
-
#endif // _IFSelect_SelectRange_HeaderFile
class Interface_InterfaceModel;
class TCollection_AsciiString;
-
class IFSelect_SelectRootComps;
DEFINE_STANDARD_HANDLE(IFSelect_SelectRootComps, IFSelect_SelectExtract)
public:
-
//! Creates a SelectRootComps
Standard_EXPORT IFSelect_SelectRootComps();
-
- //! Returns the list of local root strong components, by one
- //! Entity per component. It is redefined for a purpose of
- //! effeciency : calling a Sort routine for each Entity would
+
+ //! Returns the list of local root strong components, by one Entity per component.
+ //! It is redefined for a purpose of efficiency : calling a Sort routine for each Entity would
//! cost more resources than to work in once using a Map
//! RootResult takes in account the Direct status
Standard_EXPORT virtual Interface_EntityIterator RootResult (const Interface_Graph& G) const Standard_OVERRIDE;
-
+
//! Returns always True, because RootResult has done work
Standard_EXPORT Standard_Boolean Sort (const Standard_Integer rank, const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const Standard_OVERRIDE;
//! Returns a text defining the criterium : "Local Root Components"
Standard_EXPORT TCollection_AsciiString ExtractLabel() const Standard_OVERRIDE;
-
-
-
DEFINE_STANDARD_RTTIEXT(IFSelect_SelectRootComps,IFSelect_SelectExtract)
protected:
-
//! Returns True, RootResult assuring uniqueness
Standard_EXPORT virtual Standard_Boolean HasUniqueResult() const Standard_OVERRIDE;
-
-
-private:
-
-
-
-
};
-
-
-
-
-
-
#endif // _IFSelect_SelectRootComps_HeaderFile
class Interface_InterfaceModel;
class TCollection_AsciiString;
-
class IFSelect_SelectRoots;
DEFINE_STANDARD_HANDLE(IFSelect_SelectRoots, IFSelect_SelectExtract)
public:
-
//! Creates a SelectRoots
Standard_EXPORT IFSelect_SelectRoots();
-
- //! Returns the list of local roots. It is redefined for a purpose
- //! of effeciency : calling a Sort routine for each Entity would
- //! cost more resources than to work in once using a Map
- //! RootResult takes in account the Direct status
+
+ //! Returns the list of local roots.
+ //! It is redefined for a purpose of efficiency:
+ //! calling a Sort routine for each Entity would cost more resources
+ //! than to work in once using a Map RootResult takes in account the Direct status.
Standard_EXPORT virtual Interface_EntityIterator RootResult (const Interface_Graph& G) const Standard_OVERRIDE;
-
+
//! Returns always True, because RootResult has done work
Standard_EXPORT Standard_Boolean Sort (const Standard_Integer rank, const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const Standard_OVERRIDE;
//! Returns a text defining the criterium : "Local Root Entities"
Standard_EXPORT TCollection_AsciiString ExtractLabel() const Standard_OVERRIDE;
-
-
-
DEFINE_STANDARD_RTTIEXT(IFSelect_SelectRoots,IFSelect_SelectExtract)
protected:
-
//! Returns True, because RootResult assures uniqueness
Standard_EXPORT virtual Standard_Boolean HasUniqueResult() const Standard_OVERRIDE;
-
-
-private:
-
-
-
-
};
-
-
-
-
-
-
#endif // _IFSelect_SelectRoots_HeaderFile
class IFSelect_SelectionIterator;
class TCollection_AsciiString;
-
class IFSelect_Selection;
DEFINE_STANDARD_HANDLE(IFSelect_Selection, Standard_Transient)
//! A Selection allows to define a set of Interface Entities.
//! Entities to be put on an output file should be identified in
-//! a way as independant from such or such execution as possible.
+//! a way as independent from such or such execution as possible.
//! This permits to handle comprehensive criteria, and to replay
//! them when a new variant of an input file has to be processed.
//!
//! Its input can be, either an Interface Model (the very source),
-//! or another-other Selection(s) or any other ouput. All list
-//! computations start from an input Graph (from IFGraph)
+//! or another-other Selection(s) or any other output.
+//! All list computations start from an input Graph (from IFGraph)
class IFSelect_Selection : public Standard_Transient
{
public:
-
//! Returns the list of selected entities, computed from Input
//! given as a Graph. Specific to each class of Selection
//! Note that uniqueness of each entity is not required here
//! This method can raise an exception as necessary
Standard_EXPORT virtual Interface_EntityIterator RootResult (const Interface_Graph& G) const = 0;
-
- //! Returns the list of selected entities, each of them beeing
+
+ //! Returns the list of selected entities, each of them being
//! unique. Default definition works from RootResult. According
//! HasUniqueResult, UniqueResult returns directly RootResult,
//! or build a Unique Result from it with a Graph.
Standard_EXPORT Interface_EntityIterator UniqueResult (const Interface_Graph& G) const;
-
+
//! Returns the list of entities involved by a Selection, i.e.
//! UniqueResult plus the shared entities (directly or not)
Standard_EXPORT virtual Interface_EntityIterator CompleteResult (const Interface_Graph& G) const;
//! Specific to each class
Standard_EXPORT virtual TCollection_AsciiString Label() const = 0;
-
-
-
DEFINE_STANDARD_RTTIEXT(IFSelect_Selection,Standard_Transient)
protected:
-
//! Returns True if RootResult guarantees uniqueness for each
//! Entity. Called by UniqueResult.
//! Default answer is False. Can be redefined.
Standard_EXPORT virtual Standard_Boolean HasUniqueResult() const;
-
-
-private:
-
-
-
-
};
-
-
-
-
-
-
#endif // _IFSelect_Selection_HeaderFile
class Standard_NoSuchObject;
class IFSelect_Selection;
-
//! Defines an Iterator on a list of Selections
class IFSelect_SelectionIterator
{
DEFINE_STANDARD_ALLOC
-
//! Creates an empty iterator, ready to be filled
Standard_EXPORT IFSelect_SelectionIterator();
//! Sets iterator to the next item
Standard_EXPORT void Next();
-
- //! Returns the current Selction beeing iterated
+
+ //! Returns the current Selection being iterated
//! Error if count of Selection has been passed
Standard_EXPORT const Handle(IFSelect_Selection)& Value() const;
-
-
-
-protected:
-
-
-
-
-
private:
-
-
Standard_Integer thecurr;
Handle(IFSelect_HSeqOfSelection) thelist;
-
};
-
-
-
-
-
-
#endif // _IFSelect_SelectionIterator_HeaderFile
DeclareAndCast(IFSelect_SelectExtract,sxt,sel);
if (!sxt.IsNull()) {
if (nbs > 1)
- sout<<"Lineno."<<thenl<<" : SelectExtract, more than one source, followings ignored"<<std::endl;
+ sout<<"Lineno."<<thenl<<" : SelectExtract, more than one source, following ignored"<<std::endl;
DeclareAndCast(IFSelect_Selection,source,ItemValue(3));
sxt->SetInput(source);
}
DeclareAndCast(IFSelect_SelectDeduct,sdt,sel);
if (!sdt.IsNull()) {
if (nbs > 1)
- sout<<"Lineno."<<thenl<<" : SelectDeduct, more than one source, followings ignored"<<std::endl;
+ sout<<"Lineno."<<thenl<<" : SelectDeduct, more than one source, following ignored"<<std::endl;
sdt->SetInput(GetCasted(IFSelect_Selection,ItemValue(3)));
}
DeclareAndCast(IFSelect_SelectControl,sct,sel);
if (!sct.IsNull()) {
if (nbs != 2)
- sout<<"Lineno."<<thenl<<" : SelectControl, not two sources, followings ignored"<<std::endl;
+ sout<<"Lineno."<<thenl<<" : SelectControl, not two sources, following ignored"<<std::endl;
sct->SetMainInput (GetCasted(IFSelect_Selection,ItemValue(3)));
sct->SetSecondInput (GetCasted(IFSelect_Selection,ItemValue(4)));
}
class TCollection_AsciiString;
class Standard_Transient;
-
//! A SessionFile is intended to manage access between a
//! WorkSession and an Ascii Form, to be considered as a Dump.
//! It allows to write the File from the WorkSession, and later
//! It is possible to cumulate reading of several Files. But in
//! case of Names conflict, the newer Names are forgottens.
//!
-//! The Dump supports the description of XSTEP functionnalities
+//! The Dump supports the description of XSTEP functionalities
//! (Sharing an Interface File, with Selections, Dispatches,
//! Modifiers ...) but does not refer to the Interface File
//! which is currently loaded.
DEFINE_STANDARD_ALLOC
-
//! Creates a SessionFile, ready to read Files in order to load
//! them into a given WorkSession.
//! The following Read Operations must then be called.
//! in order to be used by the method ItemValue
//! <active> commands to make <item> active or not in the session
Standard_EXPORT void AddItem (const Handle(Standard_Transient)& item, const Standard_Boolean active = Standard_True);
-
- //! Returns True if the last Read or Write operation has been
- //! corectly performed. ELse returns False.
+
+ //! Returns True if the last Read or Write operation has been correctly performed.
+ //! Else returns False.
Standard_EXPORT Standard_Boolean IsDone() const;
-
+
//! Returns the WorkSession on which a SessionFile works.
//! Remark that it is returned as Immutable.
Standard_EXPORT Handle(IFSelect_WorkSession) WorkSession() const;
-
+
//! At beginning of writing an Item, writes its basics :
//! - either its name in the session if it has one
- //! - or its relative number of item in the file, else
- //! (preceeded by a '_')
+ //! - or its relative number of item in the file, else (preceded by a '_')
//! - then, its Dynamic Type (in the sense of cdl : pk_class)
//! This basic description can be followed by the parameters
//! which are used in the definition of the item.
Standard_EXPORT void NewItem (const Standard_Integer ident, const Handle(Standard_Transient)& par);
-
+
//! Sets Parameters to be sent as Own if <mode> is True (their
- //! Name or Number or Void Mark or Text Value is preceeded by a
+ //! Name or Number or Void Mark or Text Value is preceded by a
//! Column sign ':') else they are sent normally
//! Hence, the Own Parameter are clearly identified in the File
Standard_EXPORT void SetOwn (const Standard_Boolean mode);
//! i.e. a Parameter which is present but undefined
//! Its form will be the dollar sign : $
Standard_EXPORT void SendVoid();
-
+
//! During a Write action, commands to send the identification of
//! a Parameter : if it is Null (undefined) it is send as Void ($)
- //! if it is Named in the WorkSession, its Name is sent preceeded
- //! by ':', else a relative Ident Number is sent preceeded by '#'
+ //! if it is Named in the WorkSession, its Name is sent preceded
+ //! by ':', else a relative Ident Number is sent preceded by '#'
//! (relative to the present Write, i.e. starting at one, without
//! skip, and counted part from Named Items)
Standard_EXPORT void SendItem (const Handle(Standard_Transient)& par);
-
+
//! During a Write action, commands to send a Text without
//! interpretation. It will be sent as well
Standard_EXPORT void SendText (const Standard_CString text);
//! followed by the Fist Own Parameter of the item.
//! Used by SessionFile after reading general parameters.
Standard_EXPORT void SetLastGeneral (const Standard_Integer lastgen);
-
- //! During a Read operation, SessionFile processes sequencially
- //! the Items to read. For each one, it gives access to the list
+
+ //! During a Read operation, SessionFile processes sequentially the Items to read.
+ //! For each one, it gives access to the list
//! of its Parameters : they were defined by calls to
//! SendVoid/SendParam/SendText during Writing the File.
//! NbParams returns the count of Parameters for the line
//! currently read.
Standard_EXPORT Standard_Integer NbParams() const;
-
+
//! Returns True if a Parameter, given its rank in the Own List
//! (see NbOwnParams), is Void. Returns also True if <num> is
//! out of range (undefined parameters)
Destroy();
}
-
-
-
protected:
-
-
Handle(IFSelect_WorkSession) thesess;
Handle(TColStd_HArray1OfInteger) thenums;
NCollection_DataMap<TCollection_AsciiString, Standard_Integer> thenames;
Standard_Integer thenl;
TColStd_SequenceOfAsciiString theline;
-
private:
-
-
Standard_Boolean themode;
TColStd_SequenceOfAsciiString thelist;
TCollection_AsciiString thebuff;
Standard_Boolean theownflag;
Standard_Integer thenewnum;
-
};
-
-
-
-
-
-
#endif // _IFSelect_SessionFile_HeaderFile
class TCollection_AsciiString;
class IFSelect_SignCounter;
-
class IFSelect_SessionPilot;
DEFINE_STANDARD_HANDLE(IFSelect_SessionPilot, IFSelect_Activator)
-//! A SessionPilot is intended to make easier the use of a
-//! WorkSession. It receives commands, under alphanumeric form,
-//! then calls a library of Activators to interprete and run them.
+//! A SessionPilot is intended to make easier the use of a WorkSession.
+//! It receives commands, under alphanumeric form,
+//! then calls a library of Activators to interpret and run them.
//!
//! Then, WorkSession just records data required to work :
//! Rules for Selection, Dispatch ... ; File Data (InterfaceModel
public:
-
//! Creates an empty SessionPilot, with a prompt which will be
//! displayed on querying commands. If not precised (""), this
//! prompt is set to "Test-XSTEP>"
//! Help for specific commands (apart from general command help)
Standard_EXPORT Standard_CString Help (const Standard_Integer number) const Standard_OVERRIDE;
-
-
-
DEFINE_STANDARD_RTTIEXT(IFSelect_SessionPilot,IFSelect_Activator)
-protected:
-
-
-
-
private:
-
Handle(IFSelect_WorkSession) thesession;
TCollection_AsciiString theprompt;
TCollection_AsciiString thecommand;
Handle(Standard_Transient) theobjrec;
TColStd_SequenceOfAsciiString thecomlist;
-
};
-
-
-
-
-
-
#endif // _IFSelect_SessionPilot_HeaderFile
class IFSelect_Modifier;
class TCollection_AsciiString;
-
class IFSelect_ShareOut;
DEFINE_STANDARD_HANDLE(IFSelect_ShareOut, Standard_Transient)
public:
-
//! Creates an empty ShareOut
Standard_EXPORT IFSelect_ShareOut();
//! Returns the rank of last run item (ClearResult resets it to 0)
Standard_EXPORT Standard_Integer LastRun() const;
-
- //! Records a new alue for the rank of last run item
+
+ //! Records a new value for the rank of last run item
Standard_EXPORT void SetLastRun (const Standard_Integer last);
-
+
//! Returns the count of Dispatches
Standard_EXPORT Standard_Integer NbDispatches() const;
//! Error if no Root is defined for this <idnum>
Standard_EXPORT TCollection_AsciiString FileName (const Standard_Integer dnum, const Standard_Integer pnum, const Standard_Integer nbpack = 0);
-
-
-
DEFINE_STANDARD_RTTIEXT(IFSelect_ShareOut,Standard_Transient)
-protected:
-
-
-
private:
-
IFSelect_TSeqOfDispatch thedisps;
IFSelect_SequenceOfGeneralModifier themodelmodifiers;
IFSelect_SequenceOfGeneralModifier thefilemodifiers;
Standard_Integer thenbdefs;
Standard_Integer thelastrun;
-
};
-
-
-
-
-
-
#endif // _IFSelect_ShareOut_HeaderFile
class Interface_EntityIterator;
class TCollection_AsciiString;
-
//! This class gives results computed from a ShareOut : simulation
//! before transfer, helps to list entities ...
//! Transfer itself will later be performed, either by a
DEFINE_STANDARD_ALLOC
-
//! Creates a ShareOutResult from a ShareOut, to work on a Model
//! (without any more precision; uses Active Protocol)
Standard_EXPORT IFSelect_ShareOutResult(const Handle(IFSelect_ShareOut)& sho, const Handle(Interface_InterfaceModel)& mod);
//! Called the first time anyone question is asked, or after a
//! call to Reset. Works by calling the method Prepare.
Standard_EXPORT void Evaluate();
-
+
//! Returns the list of recorded Packets, under two modes :
//! - <complete> = False, the strict definition of Packets, i.e.
- //! for each one, the Root Entities, to be explicitely sent
+ //! for each one, the Root Entities, to be explicitly sent
//! - <complete> = True (Default), the completely evaluated list,
//! i.e. which really gives the destination of each entity :
//! this mode allows to evaluate duplications
//! Remark that to send packets, iteration remains preferable
//! (file names are managed)
Standard_EXPORT Handle(IFSelect_PacketList) Packets (const Standard_Boolean complete = Standard_True);
-
+
//! Returns the total count of produced non empty packets
//! (in out : calls Evaluate as necessary)
Standard_EXPORT Standard_Integer NbPackets();
//! the returned value is Null
Standard_EXPORT TCollection_AsciiString FileName() const;
-
-
-
protected:
-
-
Interface_Graph thegraph;
IFGraph_SubPartsIterator thedispres;
-
private:
-
-
Handle(IFSelect_ShareOut) theshareout;
Handle(IFSelect_Dispatch) thedispatch;
Standard_Boolean theeval;
Standard_Integer thenbindisp;
TColStd_SequenceOfInteger thedisplist;
-
};
-
-
-
-
-
-
#endif // _IFSelect_ShareOutResult_HeaderFile
class Interface_Graph;
class TCollection_HAsciiString;
-
class IFSelect_SignCounter;
DEFINE_STANDARD_HANDLE(IFSelect_SignCounter, IFSelect_SignatureList)
public:
-
//! Creates a SignCounter, without proper Signature
//! If <withmap> is True (default), added entities are counted
//! only if they are not yet recorded in the map
- //! Map control can be set off if the input garantees uniqueness
- //! of data
+ //! Map control can be set off if the input guarantees uniqueness of data
//! <withlist> is transmitted to SignatureList (option to list
//! entities, not only to count them).
Standard_EXPORT IFSelect_SignCounter(const Standard_Boolean withmap = Standard_True, const Standard_Boolean withlist = Standard_False);
-
+
//! Creates a SignCounter, with a predefined Signature
//! Other arguments as for Create without Signature.
Standard_EXPORT IFSelect_SignCounter(const Handle(IFSelect_Signature)& matcher, const Standard_Boolean withmap = Standard_True, const Standard_Boolean withlist = Standard_False);
//! Adds the result determined by a Selection from a Graph
//! Remark : does not impact at all data from SetSelection & Co
Standard_EXPORT void AddFromSelection (const Handle(IFSelect_Selection)& sel, const Interface_Graph& G);
-
+
//! Sets a Selection as input : this causes content to be cleared
- //! then the Selection to be ready to compute (but not immediatly)
+ //! then the Selection to be ready to compute (but not immediately)
Standard_EXPORT void SetSelection (const Handle(IFSelect_Selection)& sel);
-
+
//! Returns the selection, or a null Handle
Standard_EXPORT Handle(IFSelect_Selection) Selection() const;
//! call, the returned value is LastValue
Standard_EXPORT Standard_CString ComputedSign (const Handle(Standard_Transient)& ent, const Interface_Graph& G);
-
-
-
DEFINE_STANDARD_RTTIEXT(IFSelect_SignCounter,IFSelect_SignatureList)
-protected:
-
-
-
-
private:
-
Standard_Boolean themapstat;
TColStd_MapOfTransient themap;
Handle(IFSelect_Signature) thematcher;
Standard_Integer thenbcomp1;
Standard_Integer thenbcomp2;
-
};
-
-
-
-
-
-
#endif // _IFSelect_SignCounter_HeaderFile
class Standard_Transient;
class TCollection_AsciiString;
-
class IFSelect_TransformStandard;
DEFINE_STANDARD_HANDLE(IFSelect_TransformStandard, IFSelect_Transformer)
public:
-
//! Creates a TransformStandard, option StandardCopy, no Modifier
Standard_EXPORT IFSelect_TransformStandard();
//! This is the OnTheSpot action : each entity is bound with ...
//! itself. The produced model is the same as the starting one.
Standard_EXPORT void OnTheSpot (const Interface_Graph& G, Interface_CopyTool& TC, Handle(Interface_InterfaceModel)& newmod) const;
-
- //! Applies the modifiers sequencially.
- //! For each one, prepares required data (if a Selection is
- //! associated as a filter).
+
+ //! Applies the modifiers sequentially.
+ //! For each one, prepares required data (if a Selection is associated as a filter).
//! For the option OnTheSpot, it determines if the graph may be
//! changed and updates <newmod> if required
//! If a Modifier causes an error (check "HasFailed"),
//! ApplyModifier stops : the following Modifiers are ignored
Standard_EXPORT Standard_Boolean ApplyModifiers (const Interface_Graph& G, const Handle(Interface_Protocol)& protocol, Interface_CopyTool& TC, Interface_CheckIterator& checks, Handle(Interface_InterfaceModel)& newmod) const;
-
+
//! This methods allows to know what happened to a starting
//! entity after the last Perform. It reads result from the map
//! which was filled by Perform.
//! "<nn> Modifiers"
Standard_EXPORT TCollection_AsciiString Label() const Standard_OVERRIDE;
-
-
-
DEFINE_STANDARD_RTTIEXT(IFSelect_TransformStandard,IFSelect_Transformer)
-protected:
-
-
-
-
private:
-
Standard_Boolean thecopy;
Handle(IFSelect_Selection) thesel;
IFSelect_SequenceOfGeneralModifier themodifs;
Handle(Interface_CopyControl) themap;
-
};
-
-
-
-
-
-
#endif // _IFSelect_TransformStandard_HeaderFile
class Standard_Transient;
class TCollection_AsciiString;
-
class IFSelect_Transformer;
DEFINE_STANDARD_HANDLE(IFSelect_Transformer, Standard_Transient)
//! Perform, it can be parametred as needed.
//!
//! It receives a Model (the data set) as input. It then can :
-//! - edit this Model on the spot (i.e. alter its content : by
-//! editing entities, or adding/replacing some ...)
+//! - edit this Model on the spot
+//! (i.e. alter its content: by editing entities, or adding/replacing some ...)
//! - produce a copied Model, which detains the needed changes
-//! (typically on the same type, but some or all entities beeing
-//! rebuilt or converted; or converted from a protocol to
-//! another one)
+//! (typically on the same type, but some or all entities being
+//! rebuilt or converted; or converted from a protocol to another one)
class IFSelect_Transformer : public Standard_Transient
{
public:
-
//! Performs a Transformation (defined by each sub-class) :
//! <G> gives the input data (especially the starting model) and
//! can be used for queries (by Selections, etc...)
//! memorized if needed, and to store information useful for
//! the method Updated
//!
- //! Returns True if Done, False if an Error occured : in this case,
- //! if a new data set has been produced, the transformation
- //! is ignored, else data may be corrupted.
+ //! Returns True if Done, False if an Error occurred:
+ //! in this case, if a new data set has been produced, the transformation is ignored,
+ //! else data may be corrupted.
Standard_EXPORT virtual Standard_Boolean Perform (const Interface_Graph& G, const Handle(Interface_Protocol)& protocol, Interface_CheckIterator& checks, Handle(Interface_InterfaceModel)& newmod) = 0;
//! This methods allows to declare that the Protocol applied to
//! (to identify the transformation it performs)
Standard_EXPORT virtual TCollection_AsciiString Label() const = 0;
-
-
-
DEFINE_STANDARD_RTTIEXT(IFSelect_Transformer,Standard_Transient)
-protected:
-
-
-
-
-private:
-
-
-
};
-
-
-
-
-
-
#endif // _IFSelect_Transformer_HeaderFile
class IFSelect_PacketList;
class IFSelect_SignatureList;
-
class IFSelect_WorkSession;
DEFINE_STANDARD_HANDLE(IFSelect_WorkSession, Standard_Transient)
public:
-
//! Creates a Work Session
//! It provides default, empty ShareOut and ModelCopier, which can
//! be replaced (if required, should be done just after creation).
//! Sets a new ShareOut. Fills Items which its content
//! Warning : data from the former ShareOut are lost
Standard_EXPORT void SetShareOut (const Handle(IFSelect_ShareOut)& shareout);
-
- //! Set value of mode responsible for precence of selections after loading
+
+ //! Set value of mode responsible for presence of selections after loading
//! If mode set to true that different selections will be accessible after loading
- //! else selections will be not accessible after loading( for economy memory in applicatios)
+ //! else selections will be not accessible after loading( for economy memory in applications)
void SetModeStat (const Standard_Boolean theMode)
{ themodelstat = theMode; }
-
+
//! Return value of mode defining of filling selection during loading
Standard_Boolean GetModeStat() const
{ return themodelstat; }
Standard_EXPORT Standard_Boolean IsLoaded() const;
//! Computes the CheckList for the Model currently loaded
- //! It can then be used for displays, querries ...
+ //! It can then be used for displays, queries ...
//! Returns True if OK, False else (i.e. no Protocol set, or Model
//! absent). If <enforce> is False, works only if not already done
//! or if a new Model has been loaded from last call.
Standard_EXPORT Handle(Standard_Transient) NamedItem (const Standard_CString name) const;
//! Same as above, but <name> is given through a Handle
- //! Especially Usefull with methods SelectionNames, etc...
+ //! Especially useful with methods SelectionNames, etc...
Standard_EXPORT Handle(Standard_Transient) NamedItem (const Handle(TCollection_HAsciiString)& name) const;
//! Returns the Ident attached to a Name, 0 if name not recorded
//! Returns the Rank of a Modifier given its Ident. Model or File
//! Modifier according its type (ModelModifier or not)
- //! Remember that Modifiers are applied sequencially following
+ //! Remember that Modifiers are applied sequentially following
//! their Rank : first Model Modifiers then File Modifiers
//! Rank is given by rank of call to AddItem and can be
//! changed by ChangeModifierRank
//! Returns a status of execution :
//! Done if OK,
//! Void if no data available,
- //! Error if errors occured (work library is not defined), errors
- //! during translation
+ //! Error if errors occurred (work library is not defined), errors during translation
//! Fail if exception during translation is raised
//! Stop if no disk space or disk, file is write protected
//! Fills LastRunCheckList
//! 0 if <sel> is not kind of SelectCombine, or if <seladd> or
//! <sel> is not in the WorkSession
//! By default, adding is done at the end of the list
- //! Else, it is an insertion to rank <atnum> (usefull for Un-ReDo)
+ //! Else, it is an insertion to rank <atnum> (useful for Un-ReDo)
Standard_EXPORT Standard_Integer CombineAdd (const Handle(IFSelect_Selection)& selcomb, const Handle(IFSelect_Selection)& seladd, const Standard_Integer atnum = 0);
//! Removes an input selection from a SelectCombine (Union or
//! if <first> is the name of a Selection in <WS>, and <second>
//! not defined, the standard result of this Selection
//! else, let's consider "first second" : this whole phrase is
- //! splitted by blanks, as follows (RECURSIVE CALL) :
+ //! split by blanks, as follows (RECURSIVE CALL) :
//! - the leftest term is the final selection
//! - the other terms define the result of the selection
//! - and so on (the "leftest minus one" is a selection, of which
Standard_EXPORT Handle(TColStd_HSequenceOfTransient) GiveList (const Standard_CString first, const Standard_CString second = "") const;
//! Computes a List of entities from the model as follows
- //! <first> beeing a Selection or a combination of Selections,
- //! <ent> beeing an entity or a list
+ //! <first> being a Selection or a combination of Selections,
+ //! <ent> being an entity or a list
//! of entities (as a HSequenceOfTransient) :
//! the standard result of this selection applied to this list
//! if <ent> is Null, the standard definition of the selection is
//! used (which contains a default input selection)
//! if <selname> is erroneous, a null handle is returned
//!
- //! REMARK : selname is processed as <first second> of preceeding
+ //! REMARK : selname is processed as <first second> of preceding
//! GiveList
Standard_EXPORT Handle(TColStd_HSequenceOfTransient) GiveListFromList (const Standard_CString selname, const Handle(Standard_Transient)& ent) const;
IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_GeneralModule,IGESData_GeneralModule)
-// Each Module is attached to a Protocol : it must interprete Case Numbers
+// Each Module is attached to a Protocol : it must interpret Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESAppli_GeneralModule::IGESAppli_GeneralModule () { }
IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_ReadWriteModule,IGESData_ReadWriteModule)
-// Each Module is attached to a Protocol : it must interprete Case Numbers
+// Each Module is attached to a Protocol : it must interpret Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESAppli_ReadWriteModule::IGESAppli_ReadWriteModule () { }
IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_SpecificModule,IGESData_SpecificModule)
-// Each Module is attached to a Protocol : it must interprete Case Numbers
+// Each Module is attached to a Protocol : it must interpret Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESAppli_SpecificModule::IGESAppli_SpecificModule() { }
void IGESBasic::Init ()
{
- IGESData::Init(); // usefull for Undefined Type or Erroneous Entities
+ IGESData::Init(); // useful for Undefined Type or Erroneous Entities
if (protocol.IsNull()) {
protocol = new IGESBasic_Protocol;
Interface_GeneralLib::SetGlobal (new IGESBasic_GeneralModule, protocol);
IMPLEMENT_STANDARD_RTTIEXT(IGESBasic_GeneralModule,IGESData_GeneralModule)
-// Each Module is attached to a Protocol : it must interprete Case Numbers
+// Each Module is attached to a Protocol : it must interpret Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESBasic_GeneralModule::IGESBasic_GeneralModule () { }
IMPLEMENT_STANDARD_RTTIEXT(IGESBasic_ReadWriteModule,IGESData_ReadWriteModule)
-// Each Module is attached to a Protocol : it must interprete Case Numbers
+// Each Module is attached to a Protocol : it must interpret Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESBasic_ReadWriteModule::IGESBasic_ReadWriteModule () { }
IMPLEMENT_STANDARD_RTTIEXT(IGESBasic_SpecificModule,IGESData_SpecificModule)
-// Each Module is attached to a Protocol : it must interprete Case Numbers
+// Each Module is attached to a Protocol : it must interpret Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESBasic_SpecificModule::IGESBasic_SpecificModule() { }
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
-//06.01.99 pdn renaming ShapeFix_Wire::FixLittle to ShapeFix_Wire::FixSmall
-//:n1 abv 20.01.99: BUC60328.rle (loopback): call FixSmall with Max(1.,preci)
-//smh #1 11.03.99 PRO15640/15641, szv#2 PRO17393: call FixSameParameter after BuildCurve3d
-//#74 rln 10.03.99 S4135: handling use of BRepLib::SameParameter by new static parameter
-// pdn 18.03.99 S4135: using mintol instead of resolution from IGES file
-// pdn 18.03.99 S4135: projecting with resolution from IGES file.
-//%14 pdn 06.03.99 implementing fixFace in IGES
-// S4135 pdn improvements in using of stdsameparameter flag
-//#21 gka 12.04.99 CSR UKI60998 entities number - 13, 24 lost of boundaries during translation of tabulated cylinders
-//S4181 pdn 15.04.99 implementing of reading IGES elementary surfaces. (instead of shift, reverce and
-//scale factors the transformation matrix and scale factor used)
#include <BRep_Builder.hxx>
#include <BRep_Tool.hxx>
class IGESData_IGESEntity;
class ShapeExtend_WireData;
-
class IGESControl_IGESBoundary;
DEFINE_STANDARD_HANDLE(IGESControl_IGESBoundary, IGESToBRep_IGESBoundary)
public:
-
- //! Creates an object and calls inherited constuctor.
+ //! Creates an object and calls inherited constructor.
Standard_EXPORT IGESControl_IGESBoundary();
-
- //! Creates an object and calls inherited constuctor.
+
+ //! Creates an object and calls inherited constructor.
Standard_EXPORT IGESControl_IGESBoundary(const IGESToBRep_CurveAndSurface& CS);
-
+
//! Checks result of translation of IGES boundary entities
//! (types 141, 142 or 508).
//! Checks consistency of 2D and 3D representations and keeps
//! wire to contain only closed representation.
Standard_EXPORT virtual void Check (const Standard_Boolean result, const Standard_Boolean checkclosure, const Standard_Boolean okCurve3d, const Standard_Boolean okCurve2d) Standard_OVERRIDE;
-
-
-
DEFINE_STANDARD_RTTIEXT(IGESControl_IGESBoundary,IGESToBRep_IGESBoundary)
protected:
-
Standard_EXPORT virtual Standard_Boolean Transfer (Standard_Boolean& okCurve, Standard_Boolean& okCurve3d, Standard_Boolean& okCurve2d, const Handle(IGESData_IGESEntity)& icurve3d, const Handle(ShapeExtend_WireData)& scurve3d, const Standard_Boolean usescurve, const Standard_Boolean toreverse3d, const Handle(IGESData_HArray1OfIGESEntity)& curves2d, const Standard_Boolean toreverse2d, const Standard_Integer number, Handle(ShapeExtend_WireData)& lsewd) Standard_OVERRIDE;
-
-
-private:
-
-
-
-
};
-
-
-
-
-
-
#endif // _IGESControl_IGESBoundary_HeaderFile
Interface_Static::Init ("XSTEP","read.iges.resource.name",'t',"IGES");
Interface_Static::Init ("XSTEP","write.iges.sequence",'t',"ToIGES");
Interface_Static::Init ("XSTEP","read.iges.sequence",'t',"FromIGES");
-
- // sln 11.06.2002 OCC448 : Initialize "read.onlyvisible" parameter to control transfering
- // invisiable sub entities which logicaly depend on the grouping entities
+
+ // sln 11.06.2002 OCC448 : Initialize "read.onlyvisible" parameter to control transferring
+ // invisible sub entities which logically depend on the grouping entities
Interface_Static::Init ("XSTEP","read.iges.onlyvisible",'e',"");
Interface_Static::Init ("XSTEP","read.iges.onlyvisible",'&',"ematch 0");
Interface_Static::Init ("XSTEP","read.iges.onlyvisible",'&',"eval Off");
#include <Standard_Integer.hxx>
#include <IGESData_DefType.hxx>
-
//! description of a directory component which can be either
//! undefined (let Void), defined as a Reference to an entity,
-//! or as a Rank, integer value adressing a builtin table
+//! or as a Rank, integer value addressing a builtin table
//! The entity reference is not included here, only reference
//! status is kept (because entity type must be adapted)
class IGESData_DefSwitch
DEFINE_STANDARD_ALLOC
-
//! creates a DefSwitch as Void
Standard_EXPORT IGESData_DefSwitch();
//! returns Value as Integer (sensefull for a Rank)
Standard_EXPORT Standard_Integer Value() const;
-
-
-
-protected:
-
-
-
-
-
private:
-
-
Standard_Integer theval;
-
};
-
-
-
-
-
-
#endif // _IGESData_DefSwitch_HeaderFile
#include <Standard_CString.hxx>
class IGESData_IGESType;
-
-//! literal/numeric description of an entity's directory section,
-//! taken from file
+//! literal/numeric description of an entity's directory section, taken from file
class IGESData_DirPart
{
public:
DEFINE_STANDARD_ALLOC
-
//! creates an empty DirPart, ready to be filled by Init
Standard_EXPORT IGESData_DirPart();
-
- //! fills DirPart with consistant data read from file
+
+ //! fills DirPart with consistent data read from file
Standard_EXPORT void Init (const Standard_Integer i1, const Standard_Integer i2, const Standard_Integer i3, const Standard_Integer i4, const Standard_Integer i5, const Standard_Integer i6, const Standard_Integer i7, const Standard_Integer i8, const Standard_Integer i9, const Standard_Integer i19, const Standard_Integer i11, const Standard_Integer i12, const Standard_Integer i13, const Standard_Integer i14, const Standard_Integer i15, const Standard_Integer i16, const Standard_Integer i17, const Standard_CString res1, const Standard_CString res2, const Standard_CString label, const Standard_CString subscript);
-
+
//! returns values recorded in DirPart
//! (content of cstrings are modified)
Standard_EXPORT void Values (Standard_Integer& i1, Standard_Integer& i2, Standard_Integer& i3, Standard_Integer& i4, Standard_Integer& i5, Standard_Integer& i6, Standard_Integer& i7, Standard_Integer& i8, Standard_Integer& i9, Standard_Integer& i19, Standard_Integer& i11, Standard_Integer& i12, Standard_Integer& i13, Standard_Integer& i14, Standard_Integer& i15, Standard_Integer& i16, Standard_Integer& i17, const Standard_CString res1, const Standard_CString res2, const Standard_CString label, const Standard_CString subscript) const;
//! returns "type" and "form" info, used to recognize the entity
Standard_EXPORT IGESData_IGESType Type() const;
-
-
-
-protected:
-
-
-
-
-
private:
-
-
Standard_Integer thevals[17];
Standard_Character theres1[10];
Standard_Character theres2[10];
Standard_Character thelabl[10];
Standard_Character thesubs[10];
-
};
-
-
-
-
-
-
#endif // _IGESData_DirPart_HeaderFile
// ###############################################################
// Macros to help Dumping Parts of IGES Entities
-// (for usefull and repetitive cases but which apply to different classes
+// (for useful and repetitive cases but which apply to different classes
// but with similar signatures, such as Arrays)
// Remember that the class IGESDumper processes itself individual dump of
// IGESEntity
class IGESData_Protocol;
class Interface_Protocol;
-
class IGESData_FileProtocol;
DEFINE_STANDARD_HANDLE(IGESData_FileProtocol, IGESData_Protocol)
//! This class allows to define complex protocols, in order to
//! treat various sub-sets (or the complete set) of the IGES Norm,
-//! such as Solid + Draw (which are normally independant), etc...
-//! While it inherits Protocol from IGESData, it admits
-//! UndefinedEntity too
+//! such as Solid + Draw (which are normally independent), etc...
+//! While it inherits Protocol from IGESData, it admits UndefinedEntity too
class IGESData_FileProtocol : public IGESData_Protocol
{
public:
-
//! Returns an empty FileProtocol
Standard_EXPORT IGESData_FileProtocol();
//! Returns a Resource, given a rank (rank of call to Add)
Standard_EXPORT virtual Handle(Interface_Protocol) Resource (const Standard_Integer num) const Standard_OVERRIDE;
-
-
-
DEFINE_STANDARD_RTTIEXT(IGESData_FileProtocol,IGESData_Protocol)
-protected:
-
-
-
-
private:
-
Handle(IGESData_Protocol) theresource;
Handle(IGESData_FileProtocol) thenext;
-
};
-
-
-
-
-
-
#endif // _IGESData_FileProtocol_HeaderFile
class IGESData_SpecificLib;
class IGESData_NodeOfSpecificLib;
-
class IGESData_GlobalNodeOfSpecificLib;
DEFINE_STANDARD_HANDLE(IGESData_GlobalNodeOfSpecificLib, Standard_Transient)
-
class IGESData_GlobalNodeOfSpecificLib : public Standard_Transient
{
public:
-
//! Creates an empty GlobalNode, with no Next
Standard_EXPORT IGESData_GlobalNodeOfSpecificLib();
-
+
//! Adds a Module bound with a Protocol to the list : does
//! nothing if already in the list, THAT IS, Same Type (exact
//! match) and Same State (that is, IsEqual is not required)
- //! Once added, stores its attached Protocol in correspondance
+ //! Once added, stores its attached Protocol in correspondence
Standard_EXPORT void Add (const Handle(IGESData_SpecificModule)& amodule, const Handle(IGESData_Protocol)& aprotocol);
-
+
//! Returns the Module stored in a given GlobalNode
Standard_EXPORT const Handle(IGESData_SpecificModule)& Module() const;
//! value is a Null Handle
Standard_EXPORT const Handle(IGESData_GlobalNodeOfSpecificLib)& Next() const;
-
-
-
DEFINE_STANDARD_RTTI_INLINE(IGESData_GlobalNodeOfSpecificLib,Standard_Transient)
-protected:
-
-
-
-
private:
-
Handle(IGESData_SpecificModule) themod;
Handle(IGESData_Protocol) theprot;
Handle(IGESData_GlobalNodeOfSpecificLib) thenext;
-
};
-
-
-
-
-
-
#endif // _IGESData_GlobalNodeOfSpecificLib_HeaderFile
class IGESData_WriterLib;
class IGESData_NodeOfWriterLib;
-
class IGESData_GlobalNodeOfWriterLib;
DEFINE_STANDARD_HANDLE(IGESData_GlobalNodeOfWriterLib, Standard_Transient)
-
class IGESData_GlobalNodeOfWriterLib : public Standard_Transient
{
public:
-
//! Creates an empty GlobalNode, with no Next
Standard_EXPORT IGESData_GlobalNodeOfWriterLib();
-
- //! Adds a Module bound with a Protocol to the list : does
- //! nothing if already in the list, THAT IS, Same Type (exact
- //! match) and Same State (that is, IsEqual is not required)
- //! Once added, stores its attached Protocol in correspondance
+
+ //! Adds a Module bound with a Protocol to the list:
+ //! does nothing if already in the list,
+ //! THAT IS, Same Type (exact match) and Same State (that is, IsEqual is not required).
+ //! Once added, stores its attached Protocol in correspondence
Standard_EXPORT void Add (const Handle(IGESData_ReadWriteModule)& amodule, const Handle(IGESData_Protocol)& aprotocol);
-
+
//! Returns the Module stored in a given GlobalNode
Standard_EXPORT const Handle(IGESData_ReadWriteModule)& Module() const;
//! value is a Null Handle
Standard_EXPORT const Handle(IGESData_GlobalNodeOfWriterLib)& Next() const;
-
-
-
DEFINE_STANDARD_RTTI_INLINE(IGESData_GlobalNodeOfWriterLib,Standard_Transient)
-protected:
-
-
-
-
private:
-
Handle(IGESData_ReadWriteModule) themod;
Handle(IGESData_Protocol) theprot;
Handle(IGESData_GlobalNodeOfWriterLib) thenext;
-
};
-
-
-
-
-
-
#endif // _IGESData_GlobalNodeOfWriterLib_HeaderFile
class Interface_Check;
class gp_XYZ;
-
//! Description of a global section (corresponds to file header)
//! used as well in IGESModel, IGESReader and IGESWriter
//! Warning : From IGES-5.1, a parameter is added : LastChangeDate (concerns
//! undefined parameters do not change default values when defined
//! Fills Check about Corrections or Fails
Standard_EXPORT void Init (const Handle(Interface_ParamSet)& params, Handle(Interface_Check)& ach);
-
+
//! Copies data referenced by Handle (that is, Strings)
- //! usefull to "isolate" a GlobalSection after copy by "="
+ //! useful to "isolate" a GlobalSection after copy by "="
//! (from a Model to another Model for instance)
Standard_EXPORT void CopyRefs();
-
+
//! Returns all contained data in the form of a ParamSet
//! Remark : Strings are given under Hollerith form
Standard_EXPORT Handle(Interface_ParamSet) Params() const;
//! (distinct from normalized output). It works with tools
//! attached to Entities, as for normalized Reade and Write
//!
-//! For each Entity, displaying data is splitted in own data
+//! For each Entity, displaying data is split in own data
//! (specific to each type) and other attached data, which are
//! defined for all IGES Types (either from "Directory Entry" or
//! from Lists of Associativities and Properties)
DEFINE_STANDARD_ALLOC
- //! Returns an IGESDumper ready to work. The IGESModel provides
- //! the numbering of Entities : as for any InterfaceModel, it
- //! gives each Entity a number; but for IGESEntities, the "Number
- //! of Directory Entry" according to the definition of IGES Files,
- //! is also usefull
+ //! Returns an IGESDumper ready to work.
+ //! The IGESModel provides the numbering of Entities:
+ //! as for any InterfaceModel, it gives each Entity a number;
+ //! but for IGESEntities, the "Number of Directory Entry"
+ //! according to the definition of IGES Files, is also useful.
Standard_EXPORT IGESData_IGESDumper(const Handle(IGESData_IGESModel)& model, const Handle(IGESData_Protocol)& protocol);
//! Prints onto an output, the "Number of Directory Entry" which
//! <own> is the parameter <own> from Dump
Standard_EXPORT void OwnDump (const Handle(IGESData_IGESEntity)& ent, Standard_OStream& S, const Standard_Integer own) const;
-
-
-
-protected:
-
-
-
-
-
private:
-
-
Handle(IGESData_IGESModel) themodel;
IGESData_SpecificLib thelib;
-
};
-
-
-
-
-
-
#endif // _IGESData_IGESDumper_HeaderFile
DEFINE_STANDARD_HANDLE(IGESData_IGESEntity, Standard_Transient)
//! defines root of IGES Entity definition, including Directory
-//! Part, lists of (optionnal) Properties and Associativities
+//! Part, lists of (optional) Properties and Associativities
class IGESData_IGESEntity : public Standard_Transient
{
protected:
- //! prepares lists of optionnal data, set values to defaults
+ //! prepares lists of optional data, set values to defaults
Standard_EXPORT IGESData_IGESEntity();
//! Initializes Type and Form Numbers to new values. Reserved for
//! contains header as GlobalSection, and for each Entity, its
//! directory part as DirPart, list of Parameters as ParamSet
//! Each Item has a DirPart, plus classically a ParamSet and the
-//! correspondant recognized Entity (inherited from FileReaderData)
+//! correspondent recognized Entity (inherited from FileReaderData)
//! Parameters are accessed through specific objects, ParamReaders
class IGESData_IGESReaderData : public Interface_FileReaderData
{
return IsEqual(another);
}
- //! resets fields (usefull when an IGESType is stored as mask)
+ //! resets fields (useful when an IGESType is stored as mask)
Standard_EXPORT void Nullify();
//! 0 (D) : Normal IGES, 10 : FNES
Standard_EXPORT Standard_Integer& WriteMode();
- //! Sends an additionnal Starting Line : this is the way used to
+ //! Sends an additional Starting Line : this is the way used to
//! send comments in an IGES File (at beginning of the file).
//! If the line is more than 72 char.s long, it is splited into
//! as many lines as required to send it completely
//! Writes result on an output defined as an OStream
//! resolves stored infos at this time; in particular, numbers of
- //! lines used to adress P-section from D-section and final totals
+ //! lines used to address P-section from D-section and final totals
//! Takes WriteMode into account
Standard_EXPORT Standard_Boolean Print (Standard_OStream& S) const;
//! (that is, skip "item size" - "term size")
//!
//! In addition, Offset from beginning of Item is managed :
- //! After being created, and for the frist call to SetTerm, the
+ //! After being created, and for the first call to SetTerm, the
//! part of Item to be read begins exactly as the Item begins
//! But after a SetTerm, the next read will add an offset which is
//! the size of former term.
//! parameter : it can be ended by two lists (Associativities and
//! Properties), which can be empty, or even absent. Hence, it is
//! necessary to know, at the end of specific reading, how many
- //! parameters have been read : the optionnal lists follow
+ //! parameters have been read : the optional lists follow
Standard_EXPORT Standard_Integer CurrentNumber() const;
//! sets current parameter number to a new value
//! If "ord" is given True (default), entities will be added to
//! the list in their original order
//! Remark : Negative or Null Pointers are ignored
- //! Else ("ord" False), order is not garanteed (faster mode)
+ //! Else ("ord" False), order is not guaranteed (faster mode)
//! If all params cannot be read as Entities, same as above
//! Warning Give "ord" to False ONLY if order is not significant
Standard_EXPORT Standard_Boolean ReadEntList (const Handle(IGESData_IGESReaderData)& IR, const IGESData_ParamCursor& PC, const Standard_CString mess, Interface_EntityList& val, const Standard_Boolean ord = Standard_True);
DEFINE_STANDARD_HANDLE(IGESData_Protocol, Interface_Protocol)
//! Description of basic Protocol for IGES
-//! This comprises treatement of IGESModel and Recognition of
+//! This comprises treatment of IGESModel and Recognition of
//! Undefined-FreeFormat-Entity
class IGESData_Protocol : public Interface_Protocol
{
//! Calls ConvertLocation (see below)
Standard_EXPORT Standard_Boolean AnalyseLocation (const gp_GTrsf& loc, gp_Trsf& result) const;
- //! Convertion of a Location, from GTrsf form to Trsf form
+ //! Conversion of a Location, from GTrsf form to Trsf form
//! Works with a precision given as argument.
//! Returns True if the Conversion is possible, (hence, <result>
//! contains the converted location), False else
//! defines IGES Attribute Table, Type <422> Form <0, 1>
//! in package IGESDefs
-//! This class is used to represent an occurence of
+//! This class is used to represent an occurrence of
//! Attribute Table. This Class may be independent
//! or dependent or pointed at by other Entities.
class IGESDefs_AttributeTable : public IGESData_IGESEntity
IMPLEMENT_STANDARD_RTTIEXT(IGESDefs_GeneralModule,IGESData_GeneralModule)
-// Each Module is attached to a Protocol : it must interprete Case Numbers
+// Each Module is attached to a Protocol : it must interpret Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESDefs_GeneralModule::IGESDefs_GeneralModule () { }
IMPLEMENT_STANDARD_RTTIEXT(IGESDefs_ReadWriteModule,IGESData_ReadWriteModule)
-// Each Module is attached to a Protocol : it must interprete Case Numbers
+// Each Module is attached to a Protocol : it must interpret Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESDefs_ReadWriteModule::IGESDefs_ReadWriteModule () { }
IMPLEMENT_STANDARD_RTTIEXT(IGESDefs_SpecificModule,IGESData_SpecificModule)
-// Each Module is attached to a Protocol : it must interprete Case Numbers
+// Each Module is attached to a Protocol : it must interpret Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESDefs_SpecificModule::IGESDefs_SpecificModule() { }
somedeps->SetValue(i, treal);
}
if (nbDeps > 0) valuesDep->SetValue(1,somedeps);
- else PR.AddWarning("Some Real remain while no dependent vakue is defined");
+ else PR.AddWarning("Some Real remain while no dependent value is defined");
nbProps = PR.CurrentNumber() - 2;
/* for (;;) {
if (PR.ParamType(curnum) != Interface_ParamReal) break;
PR.SetCurrentNumber (curnum+1);
} */
- PR.AddWarning("Don't know exactly how to read dependant values ...");
+ PR.AddWarning("Don't know exactly how to read dependent values ...");
// ?? a eclaircir
DirChecker(ent).CheckTypeAndForm(PR.CCheck(),ent);
ent->Init (nbProps, propType, typesInd, nbValuesInd, valuesInd, valuesDep);
//! returns the Second Witness Line Entity or Null Handle.
Standard_EXPORT Handle(IGESDimen_WitnessLine) SecondWitnessLine() const;
- //! returns the co-ordinates of the Vertex point as Pnt2d from gp.
+ //! returns the coordinates of the Vertex point as Pnt2d from gp.
Standard_EXPORT gp_Pnt2d Vertex() const;
- //! returns the co-ordinates of the Vertex point as Pnt2d from gp
+ //! returns the coordinates of the Vertex point as Pnt2d from gp
//! after Transformation. (Z = 0.0 for Transformation)
Standard_EXPORT gp_Pnt2d TransformedVertex() const;
//! returns the Second Leader Entity
Standard_EXPORT Handle(IGESDimen_LeaderArrow) SecondLeader() const;
- //! returns the Arc Center co-ordinates as Pnt2d from package gp
+ //! returns the Arc Center coordinates as Pnt2d from package gp
Standard_EXPORT gp_Pnt2d Center() const;
- //! returns the Arc Center co-ordinates as Pnt2d from package gp
+ //! returns the Arc Center coordinates as Pnt2d from package gp
//! after Transformation. (Z = 0.0 for Transformation)
Standard_EXPORT gp_Pnt2d TransformedCenter() const;
IMPLEMENT_STANDARD_RTTIEXT(IGESDimen_GeneralModule,IGESData_GeneralModule)
-// Each Module is attached to a Protocol : it must interprete Case Numbers
+// Each Module is attached to a Protocol : it must interpret Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESDimen_GeneralModule::IGESDimen_GeneralModule () { }
//! returns Z depth
Standard_EXPORT Standard_Real ZDepth() const;
- //! returns ArrowHead co-ordinates
+ //! returns ArrowHead coordinates
Standard_EXPORT gp_Pnt2d ArrowHead() const;
- //! returns ArrowHead co-ordinates after Transformation
+ //! returns ArrowHead coordinates after Transformation
Standard_EXPORT gp_Pnt TransformedArrowHead() const;
- //! returns segment tail co-ordinates.
+ //! returns segment tail coordinates.
//! raises exception if Index <= 0 or Index > NbSegments
Standard_EXPORT gp_Pnt2d SegmentTail (const Standard_Integer Index) const;
- //! returns segment tail co-ordinates after Transformation.
+ //! returns segment tail coordinates after Transformation.
//! raises exception if Index <= 0 or Index > NbSegments
Standard_EXPORT gp_Pnt TransformedSegmentTail (const Standard_Integer Index) const;
IMPLEMENT_STANDARD_RTTIEXT(IGESDimen_ReadWriteModule,IGESData_ReadWriteModule)
-// Each Module is attached to a Protocol : it must interprete Case Numbers
+// Each Module is attached to a Protocol : it must interpret Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESDimen_ReadWriteModule::IGESDimen_ReadWriteModule () { }
IMPLEMENT_STANDARD_RTTIEXT(IGESDimen_SpecificModule,IGESData_SpecificModule)
-// Each Module is attached to a Protocol : it must interprete Case Numbers
+// Each Module is attached to a Protocol : it must interpret Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESDimen_SpecificModule::IGESDimen_SpecificModule() { }
IMPLEMENT_STANDARD_RTTIEXT(IGESDraw_GeneralModule,IGESData_GeneralModule)
-// Each Module is attached to a Protocol : it must interprete Case Numbers
+// Each Module is attached to a Protocol : it must interpret Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESDraw_GeneralModule::IGESDraw_GeneralModule () { }
IMPLEMENT_STANDARD_RTTIEXT(IGESDraw_ReadWriteModule,IGESData_ReadWriteModule)
-// Each Module is attached to a Protocol : it must interprete Case Numbers
+// Each Module is attached to a Protocol : it must interpret Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESDraw_ReadWriteModule::IGESDraw_ReadWriteModule () { }
IMPLEMENT_STANDARD_RTTIEXT(IGESDraw_SpecificModule,IGESData_SpecificModule)
-// Each Module is attached to a Protocol : it must interprete Case Numbers
+// Each Module is attached to a Protocol : it must interpret Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESDraw_SpecificModule::IGESDraw_SpecificModule() { }
}
else
{
- /* PTV: 21.03.2002 it is neccessary for files that have only `\r` but no `\n`
+ /* PTV: 21.03.2002 it is necessary for files that have only `\r` but no `\n`
examle file is 919-001-T02-04-CP-VL.iges */
while ( fgets ( ligne, 2, lefic ) && ( ligne[0] == '\r' || ligne[0] == '\n' ) )
{
/* the column 72 is empty, try to check the neighbour*/
if(strlen(ligne)==80
&& (ligne[79]=='\n' || ligne[79]=='\r') && (ligne[0]<='9' && ligne[0]>='0')) {
- /*check if the case of losted .*/
+ /*check in case of loss.*/
int index;
for(index = 1; ligne[index]<='9' && ligne[index]>='0'; index++);
if (ligne[index]=='D' || ligne[index]=='d') {
IMPLEMENT_STANDARD_RTTIEXT(IGESGeom_GeneralModule,IGESData_GeneralModule)
-// Each Module is attached to a Protocol : it must interprete Case Numbers
+// Each Module is attached to a Protocol : it must interpret Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESGeom_GeneralModule::IGESGeom_GeneralModule () { }
//! display symbol if there exists one, or zero
Standard_EXPORT void Init (const gp_XYZ& aPoint, const Handle(IGESBasic_SubfigureDef)& aSymbol);
- //! returns co-ordinates of the point
+ //! returns coordinates of the point
Standard_EXPORT gp_Pnt Value() const;
- //! returns co-ordinates of the point after applying Transf. Matrix
+ //! returns coordinates of the point after applying Transf. Matrix
Standard_EXPORT gp_Pnt TransformedValue() const;
//! returns True if symbol exists
IMPLEMENT_STANDARD_RTTIEXT(IGESGeom_ReadWriteModule,IGESData_ReadWriteModule)
-// Each Module is attached to a Protocol : it must interprete Case Numbers
+// Each Module is attached to a Protocol : it must interpret Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESGeom_ReadWriteModule::IGESGeom_ReadWriteModule () { }
IMPLEMENT_STANDARD_RTTIEXT(IGESGeom_SpecificModule,IGESData_SpecificModule)
-// Each Module is attached to a Protocol : it must interprete Case Numbers
+// Each Module is attached to a Protocol : it must interpret Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESGeom_SpecificModule::IGESGeom_SpecificModule() { }
Standard_EXPORT Handle(TColStd_HArray1OfReal) ZPolynomial (const Standard_Integer anIndex1, const Standard_Integer anIndex2) const;
//! returns in one all the polynomial values "in bulk"
- //! usefull for massive treatements
+ //! useful for massive treatments
Standard_EXPORT void Polynomials (Handle(IGESBasic_HArray2OfHArray1OfReal)& XCoef, Handle(IGESBasic_HArray2OfHArray1OfReal)& YCoef, Handle(IGESBasic_HArray2OfHArray1OfReal)& ZCoef) const;
Message_Msg Msg71("XSTEP_71");
ach->SendFail(Msg71);
}
-// Theses messages are transferred in the translation procedure
+// These messages are transferred in the translation procedure
/*
if (form > 1) return; // ce qui suit : matrice orthogonale
if (form == 0 && ent->Value().IsNegative())
Standard_EXPORT void SetFormNumber (const Standard_Integer form);
//! returns individual Data
- //! Errro if I not in [1-3] or J not in [1-4]
+ //! Error if I not in [1-3] or J not in [1-4]
Standard_EXPORT Standard_Real Data (const Standard_Integer I, const Standard_Integer J) const;
//! returns the transformation matrix
IMPLEMENT_STANDARD_RTTIEXT(IGESGraph_GeneralModule,IGESData_GeneralModule)
-// Each Module is attached to a Protocol : it must interprete Case Numbers
+// Each Module is attached to a Protocol : it must interpret Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESGraph_GeneralModule::IGESGraph_GeneralModule () { }
IMPLEMENT_STANDARD_RTTIEXT(IGESGraph_ReadWriteModule,IGESData_ReadWriteModule)
-// Each Module is attached to a Protocol : it must interprete Case Numbers
+// Each Module is attached to a Protocol : it must interpret Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESGraph_ReadWriteModule::IGESGraph_ReadWriteModule () { }
IMPLEMENT_STANDARD_RTTIEXT(IGESGraph_SpecificModule,IGESData_SpecificModule)
-// Each Module is attached to a Protocol : it must interprete Case Numbers
+// Each Module is attached to a Protocol : it must interpret Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESGraph_SpecificModule::IGESGraph_SpecificModule() { }
IW.Send( ent->NominalSizeName() );
if (ent->HasStandardName() )
- IW.Send( ent->StandardName() ); // optionnal
+ IW.Send( ent->StandardName() ); // optional
}
void IGESGraph_ToolNominalSize::OwnShared
//! Gives a quick analysis of an IGES Entity in the context of a
//! model (i.e. a File) described by a Graph.
//! Returned values are :
- //! <sup> : the most meaningfull super entity, if any (else Null)
- //! <index> : meaningfull index relating to super entity, if any
+ //! <sup> : the most meaningful super entity, if any (else Null)
+ //! <index> : meaningful index relating to super entity, if any
//! <returned> : a status which helps exploitation of <sup>, by
//! giving a case
//! (normally, types of <ent> and <sup> should suffice to
public:
- //! Creates a new emoty AddFileComment. Use AddLine to complete it
+ //! Creates a new empty AddFileComment. Use AddLine to complete it
Standard_EXPORT IGESSelect_AddFileComment();
//! Clears the list of file comment lines already stored
//! i.e. LevelList gives "LEVEL LIST", others (no level or
//! positive level) displays level number on 7 digits (C : %7d)
//! Remark : an entity attached to a Level List is added for
- //! " LEVEL LIST", and for each of its constituant levels
+ //! " LEVEL LIST", and for each of its constituent levels
Standard_EXPORT virtual void AddSign (const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) Standard_OVERRIDE;
//! The internal action to record a new level number, positive,
//! If a set of entities, all put into a same IGESModel, were
//! part of a same Group in the starting Model, this Modifier
//! rebuilds the original group, but only with the transferred
-//! entities. The distinctions (Ordered or not, "WhithoutBackP"
+//! entities. The distinctions (Ordered or not, "WithoutBackP"
//! or not) are renewed, also the name of the group.
//!
//! If the Input Selection is present, tries to rebuild groups
public:
- //! Creates a SelectBasicGeom, which allways works recursively
+ //! Creates a SelectBasicGeom, which always works recursively
//! mode = -1 : Returns Surfaces (without trimming)
//! mode = +1 : Returns Curves 3D (free or bound of surface)
//! mode = +2 : Returns Basic Curves 3D : as 1 but CompositeCurves
IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_GeneralModule,IGESData_GeneralModule)
-// Each Module is attached to a Protocol : it must interprete Case Numbers
+// Each Module is attached to a Protocol : it must interpret Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESSolid_GeneralModule::IGESSolid_GeneralModule () { }
IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_ReadWriteModule,IGESData_ReadWriteModule)
-// Each Module is attached to a Protocol : it must interprete Case Numbers
+// Each Module is attached to a Protocol : it must interpret Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESSolid_ReadWriteModule::IGESSolid_ReadWriteModule () { }
IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_SpecificModule,IGESData_SpecificModule)
-// Each Module is attached to a Protocol : it must interprete Case Numbers
+// Each Module is attached to a Protocol : it must interpret Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESSolid_SpecificModule::IGESSolid_SpecificModule() { }
// the heading for boolean tree is in BooleanTree OwnDump
S << "Boolean Tree Entity :\n";
dumper.Dump(ent->Component(),S, (level <= 4) ? 0 : 1);
- S << "Seleted Point : ";
+ S << "Selected Point : ";
IGESData_DumpXYZL(S,level, ent->SelectPoint(), ent->Location());
S << std::endl;
}
//! Defines an Edge(UV), to be added in the current Loop by EndEdge
//! <edgetype> gives the type of the edge
//! <edge3d> identifies the Edge(3D) used as support
- //! The EdgeList is allways the current one
+ //! The EdgeList is always the current one
//! <orientation gives the orientation flag
//! It is then necessary to :
//! - give the parametric curves
//=======================================================================
//
// A,B,C,D,E,F are the coefficients recorded in IGES. a,b,c,d,e,f are used to
-// simplify the equations of convertion. They are already used in Euclid.
+// simplify the equations of conversion. They are already used in Euclid.
Handle(Geom_Curve) IGESToBRep_BasicCurve::TransferConicArc
(const Handle(IGESGeom_ConicArc)& st)
if (!(FormNb==11 || FormNb==12 || FormNb==63)) {
Message_Msg msg1240("IGES_1240");
SendWarning( start, msg1240);
- // "Copious Data : Form number is different from 11, 12 or 63 so the vector treatement is skipped");
+ // "Copious Data : Form number is different from 11, 12 or 63 so the vector treatment is skipped");
}
Standard_Integer NbPoints = start->NbPoints();
if (!(FormNb==11 || FormNb==12 || FormNb==63)) {
Message_Msg msg1240("IGES_1240");
SendWarning( start, msg1240);
- // "Copious Data : Form number is different from 11, 12 or 63 so the vector treatement is skipped");
+ // "Copious Data : Form number is different from 11, 12 or 63 so the vector treatment is skipped");
}
Standard_Integer NbPoints = start->NbPoints();
// case 3 :
// AddWarning ( start, "Degree is not compatible with code boundary type , C0 is not guaranteed)");
//case 2 :
- // AddWarning ( start, "Degree is not compatible with code boundary type , C0 is guaranted)");
+ // AddWarning ( start, "Degree is not compatible with code boundary type , C0 is guaranteed)");
default :
break;
}
class IGESGeom_SplineSurface;
class IGESGeom_BSplineSurface;
-
//! Provides methods to transfer basic geometric surface entities
//! from IGES to CASCADE.
//! These can be :
DEFINE_STANDARD_ALLOC
-
//! Creates a tool BasicSurface ready to run, with
//! epsilons set to 1.E-04, TheModeTopo to True, the
//! optimization of the continuity to False.
//! Creates a tool BasicSurface ready to run.
Standard_EXPORT IGESToBRep_BasicSurface(const Standard_Real eps, const Standard_Real epsGeom, const Standard_Real epsCoeff, const Standard_Boolean mode, const Standard_Boolean modeapprox, const Standard_Boolean optimized);
-
- //! Returns Surface from Geom if the last transfer has
- //! succeded.
- Standard_EXPORT Handle(Geom_Surface) TransferBasicSurface (const Handle(IGESData_IGESEntity)& start);
-
- //! Returns Plane from Geom if the transfer has
- //! succeded.
- Standard_EXPORT Handle(Geom_Plane) TransferPlaneSurface (const Handle(IGESSolid_PlaneSurface)& start);
-
- //! Returns CylindricalSurface from Geom if the transfer has
- //! succeded.
- Standard_EXPORT Handle(Geom_CylindricalSurface) TransferRigthCylindricalSurface (const Handle(IGESSolid_CylindricalSurface)& start);
-
- //! Returns ConicalSurface from Geom if the transfer has
- //! succeded.
- Standard_EXPORT Handle(Geom_ConicalSurface) TransferRigthConicalSurface (const Handle(IGESSolid_ConicalSurface)& start);
-
- //! Returns SphericalSurface from Geom if the transfer has
- //! succeded.
- Standard_EXPORT Handle(Geom_SphericalSurface) TransferSphericalSurface (const Handle(IGESSolid_SphericalSurface)& start);
-
- //! Returns SphericalSurface from Geom if the transfer has
- //! succeded.
- Standard_EXPORT Handle(Geom_ToroidalSurface) TransferToroidalSurface (const Handle(IGESSolid_ToroidalSurface)& start);
-
- //! Returns BSplineSurface from Geom if the transfer has
- //! succeded.
- Standard_EXPORT Handle(Geom_BSplineSurface) TransferSplineSurface (const Handle(IGESGeom_SplineSurface)& start);
-
- //! Returns BSplineSurface from Geom if the transfer has
- //! succeded.
- Standard_EXPORT Handle(Geom_BSplineSurface) TransferBSplineSurface (const Handle(IGESGeom_BSplineSurface)& start);
-
-
-
-
-protected:
-
+ //! Returns Surface from Geom if the last transfer has succeeded.
+ Standard_EXPORT Handle(Geom_Surface) TransferBasicSurface (const Handle(IGESData_IGESEntity)& start);
+ //! Returns Plane from Geom if the transfer has succeeded.
+ Standard_EXPORT Handle(Geom_Plane) TransferPlaneSurface (const Handle(IGESSolid_PlaneSurface)& start);
+ //! Returns CylindricalSurface from Geom if the transfer has succeeded.
+ Standard_EXPORT Handle(Geom_CylindricalSurface) TransferRigthCylindricalSurface (const Handle(IGESSolid_CylindricalSurface)& start);
-private:
+ //! Returns ConicalSurface from Geom if the transfer has succeeded.
+ Standard_EXPORT Handle(Geom_ConicalSurface) TransferRigthConicalSurface (const Handle(IGESSolid_ConicalSurface)& start);
+ //! Returns SphericalSurface from Geom if the transfer has succeeded.
+ Standard_EXPORT Handle(Geom_SphericalSurface) TransferSphericalSurface (const Handle(IGESSolid_SphericalSurface)& start);
+ //! Returns SphericalSurface from Geom if the transfer has succeeded.
+ Standard_EXPORT Handle(Geom_ToroidalSurface) TransferToroidalSurface (const Handle(IGESSolid_ToroidalSurface)& start);
+ //! Returns BSplineSurface from Geom if the transfer has succeeded.
+ Standard_EXPORT Handle(Geom_BSplineSurface) TransferSplineSurface (const Handle(IGESGeom_SplineSurface)& start);
+ //! Returns BSplineSurface from Geom if the transfer has succeeded.
+ Standard_EXPORT Handle(Geom_BSplineSurface) TransferBSplineSurface (const Handle(IGESGeom_BSplineSurface)& start);
};
-
-
-
-
-
-
#endif // _IGESToBRep_BasicSurface_HeaderFile
// 22.12.98 dce S3767
// 21.12.98 rln, gka S4054
//#74 rln,pdn 11.03.99 S4135: Setting minimum and maximum tolerances according to static parameters
-// sln 13.06.2002 OCC448 : Correction in method TransferGeometry to avoid transfering invisiable sub entities
+// sln 13.06.2002 OCC448 : Correction in method TransferGeometry to avoid transferring invisible sub entities
#include <BRep_Builder.hxx>
#include <BRepLib.hxx>
// Declaration of messages//
// DCE 22/12/98
//Message_Msg msg1005("IGES_1005"); // Software error : start IsNull.
- //Message_Msg msg1015("IGES_1015"); // invalid type or execption raising (software error).
+ //Message_Msg msg1015("IGES_1015"); // invalid type or exception raising (software error).
//Message_Msg msg1010("IGES_1010"); // Not sameparameter.
// Message_Msg msg1015("IGES_1015");
//Message_Msg msg210 ("XSTEP_210");
Handle(TCollection_HAsciiString) label = GetModel()->StringLabel(start);
//Standard_Integer typeNumber = start->TypeNumber();
- // sln 13.06.2002 OCC448: Avoid transfering invisiable sub entities which
- // logicaly depend on the one
+ // sln 13.06.2002 OCC448: Avoid transferring invisible sub entities which
+ // logically depend on the one
Standard_Integer onlyvisible = Interface_Static::IVal("read.iges.onlyvisible");
if (IGESToBRep::IsCurveAndSurface(start)) {
//pdn 11.01.99 including <stdio.h> for compilation on NT
//#70 rln 03.03.99 syntax correction
-// sln 11.06.2002 OCC448 : Initialize "read.onlyvisiable" parameter to control transfering invisiable sub entities which logicaly depend on the grouping entities
+// sln 11.06.2002 OCC448 : Initialize "read.onlyvisiable" parameter to control transferring invisible sub entities which logically depend on the grouping entities
#include <BRep_Builder.hxx>
#include <BRepLib.hxx>
// Nb warning in global section.
Standard_Integer nbWarn = 0,nbFail = 0;
- // Add the number of warning on enities :
+ // Add the number of warning on entities :
Interface_CheckTool cht (model,protocol);
Interface_CheckIterator anIter = cht.CompleteCheckList();
for(anIter.Start(); anIter.More(); anIter.Next()) {
// shape in its internal list
//=======================================================================
-// coment as unused PTV 18.09.2000
+// comment as unused PTV 18.09.2000
// static void UpdateMap (const Handle(Transfer_TransientProcess)& map,
// const BRepTools_Modifier& modifier)
// {
//! Returns number of pcurves assigned to current edge.
Standard_EXPORT virtual Standard_Integer PCurvesNb () const = 0;
- //! Adds discrete pcurve for the specifed discrete face.
+ //! Adds discrete pcurve for the specified discrete face.
Standard_EXPORT virtual const IMeshData::IPCurveHandle& AddPCurve (
const IMeshData::IFacePtr& theDFace,
const TopAbs_Orientation theOrientation) = 0;
{
}
- //! Builds model using assined model builder.
+ //! Builds model using assigned model builder.
//! @return True on success, False elsewhere.
virtual Standard_Boolean BuildModel ()
{
return myContext;
}
- //! Performs meshing ot the shape using current context.
+ //! Performs meshing to the shape using current context.
Standard_EXPORT virtual void Perform (const Message_ProgressRange& theRange);
DEFINE_STANDARD_RTTIEXT(IMeshTools_MeshBuilder, Message_Algorithm)
//! Interface class represents API for tool building discrete model.
//!
//! The following statuses should be used by default:
-//! Message_Done1 - model has been sucessfully built.
+//! Message_Done1 - model has been successfully built.
//! Message_Fail1 - empty shape.
//! Message_Fail2 - model has not been build due to unexpected reason.
class IMeshTools_ModelBuilder : public Message_Algorithm
// Handle implementation
-//! Excutes the mesh generation algorithms. To be defined in implementation class.
+//! Executes the mesh generation algorithms. To be defined in implementation class.
void IVtk_IShapeMesher::initialize (const IVtk_IShape::Handle& theShape,
const IVtk_IShapeData::Handle& theData)
{
double& theDy,
double& theDz) const = 0;
- //! @return Three doubles contaning scale components of the view transformation
+ //! @return Three doubles containing scale components of the view transformation
virtual void GetScale (double& theX, double& theY, double& theZ) const = 0;
//! @return The current view's zoom factor (for parallel projection)
IVtk_IdType aShapeID = aSrc->GetShape()->GetId();
GetPicker()->RemoveSelectableObject (aSrc->GetShape());
GetPipeline (aSrc->GetShape()->GetId())->RemoveFromRenderer (aRenderer);
- GetPipelines()->UnBind (aShapeID); // Remove a pipepline
+ GetPipelines()->UnBind (aShapeID); // Remove a pipeline
}
else
{
// Don't call Render when the window is resized to be larger:
//
// - if the window is resized to be larger, an Expose event will
- // be trigged by the X server which will trigger a call to
- // Render().
+ // be triggered by the X server which will trigger a call to Render().
// - if the window is resized to be smaller, no Expose event will
- // be trigged by the X server, as no new area become visible.
- // only in this case, we need to explicitly call Render()
- // in ConfigureNotify.
+ // be triggered by the X server, as no new area become visible.
+ // only in this case, we need to explicitly call Render() in ConfigureNotify.
this->Render();
}
}
//============================================================================
// Method: Constructor
-// Purpose: Constructs a selectable object initalized by the given shape
+// Purpose: Constructs a selectable object initialized by the given shape
//============================================================================
IVtkOCC_SelectableObject::IVtkOCC_SelectableObject (const IVtkOCC_Shape::Handle& theShape)
: SelectMgr_SelectableObject (PrsMgr_TOP_AllView),
{
clearPicked();
- // Calling OCCT algortihm
+ // Calling OCCT algorithm
myViewerSelector->Pick ((Standard_Integer)theX,
(Standard_Integer)theY,
myView);
{
clearPicked();
- // Calling OCCT algortihm
+ // Calling OCCT algorithm
myViewerSelector->Pick ((Standard_Integer)theXMin,
(Standard_Integer)theYMin,
(Standard_Integer)theXMax,
{
clearPicked();
- // Calling OCCT algortihm
+ // Calling OCCT algorithm
myViewerSelector->Pick (thePoly, theNbPoints, myView);
// Fill the results
vtkSmartPointer<vtkRenderer> myRenderer; //!< VTK renderer
bool myIsRectSelection;//!< Rectangle selection mode flag
bool myIsPolySelection;//!< Polyline selection mode flag
- float myTolerance; //!< Selectoin tolerance
+ float myTolerance; //!< Selection tolerance
};
#ifdef _MSC_VER
//! Initialize image plane with required dimensions.
//! thePixelFormat - if specified pixel format doesn't supported by image library
//! than nearest supported will be used instead!
- //! theSizeRowBytes - may be ignored by this class and required alignemnt will be used instead!
+ //! theSizeRowBytes - may be ignored by this class and required alignment will be used instead!
Standard_EXPORT virtual bool InitTrash (Image_Format thePixelFormat,
const Standard_Size theSizeX,
const Standard_Size theSizeY,
//! It uses the following methods to ignore the difference between images:
//! - Black/White comparison. It makes the images 2-colored before the comparison.
//! - Equality with tolerance. Colors of two pixels are considered the same if the
-//! differnce of their color is less than a tolerance.
+//! difference of their color is less than a tolerance.
//! - Border filter. The algorithm ignores alone independent pixels,
//! which are different on both images, ignores the "border effect" -
//! the difference caused by triangles located at angle about 0 or 90 degrees to the user.
//! An empty constructor. Init() should be called for initialization.
Standard_EXPORT Image_Diff();
- //! Desctructor.
+ //! Destructor.
Standard_EXPORT virtual ~Image_Diff();
//! Initialize algorithm by two images.
//! It returns -1 if algorithm not initialized before.
Standard_EXPORT Standard_Integer Compare();
- //! Saves a difference between two images as white pixels on black backgroud.
+ //! Saves a difference between two images as white pixels on black background.
Standard_EXPORT Standard_Boolean SaveDiffImage (Image_PixMap& theDiffImage) const;
- //! Saves a difference between two images as white pixels on black backgroud.
+ //! Saves a difference between two images as white pixels on black background.
Standard_EXPORT Standard_Boolean SaveDiffImage (const TCollection_AsciiString& theDiffPath) const;
protected:
// f(z,to)=B(to)*z + C(to)=0, B(to)!=0.
//
// z=-C(to)/B(to) is one and only
- // solution inspite of the fact that D(t)>0 for any value of t.
+ // solution in spite of the fact that D(t)>0 for any value of t.
//
if(to<NewMax && to>NewMin) {
//-----------------------------------------------------------------
//! Returns the point of range N.
Standard_EXPORT const gp_Pnt& Point (const Standard_Integer N) const;
-
- //! Returns the paramaters on the "explicit quadric"
- //! (i.e the cylinder or the cone, the
- //! first argument given to the constructor) of the
- //! point of range N.
+
+ //! Returns the parameters on the "explicit quadric"
+ //! (i.e the cylinder or the cone, the first argument given to the constructor) of the point of range N.
Standard_EXPORT void Parameters (const Standard_Integer N, Standard_Real& U1, Standard_Real& U2) const;
-
+
//! Returns True if the Curve I shares its last bound
//! with another curve.
Standard_EXPORT Standard_Boolean HasNextCurve (const Standard_Integer I) const;
//! same point.
Standard_EXPORT Standard_Integer PreviousCurve (const Standard_Integer I, Standard_Boolean& theOpposite) const;
-
-
-
protected:
-
//! Set the next and previous fields. Private method.
Standard_EXPORT void InternalSetNextAndPrevious();
+protected:
Standard_Boolean done;
Standard_Boolean identical;
Standard_Real myEpsilon;
Standard_Real myEpsilonCoeffPolyNull;
-
-private:
-
-
-
-
-
};
-
#include <IntAna_IntQuadQuad.lxx>
-
-
-
-
#endif // _IntAna_IntQuadQuad_HeaderFile
// 3
else if (aDA1A2<aTol2) {
//
- // When apices are coinsided there can be 3 possible cases
+ // When apices are coincided there can be 3 possible cases
// 3.1 - empty solution (iRet=0)
// 3.2 - one line when cone1 touches cone2 (iRet=1)
// 3.3 - two lines when cone1 intersects cone2 (iRet=2)
//! Intersects a two spheres.
Standard_EXPORT void Perform (const gp_Sphere& Sph1, const gp_Sphere& Sph2, const Standard_Real Tol);
- //! Creates the intersection beween a Sphere and a Cone.
+ //! Creates the intersection between a Sphere and a Cone.
Standard_EXPORT IntAna_QuadQuadGeo(const gp_Sphere& Sph, const gp_Cone& Con, const Standard_Real Tol);
//! Intersects a sphere and a cone.
Standard_EXPORT void Perform (const gp_Sphere& Sph, const gp_Cone& Con, const Standard_Real Tol);
- //! Creates the intersection beween two cones.
+ //! Creates the intersection between two cones.
Standard_EXPORT IntAna_QuadQuadGeo(const gp_Cone& Con1, const gp_Cone& Con2, const Standard_Real Tol);
//! Intersects two cones.
Standard_EXPORT void Perform (const gp_Cone& Con1, const gp_Cone& Con2, const Standard_Real Tol);
- //! Creates the intersection beween plane and torus.
+ //! Creates the intersection between plane and torus.
Standard_EXPORT IntAna_QuadQuadGeo(const gp_Pln& Pln, const gp_Torus& Tor, const Standard_Real Tol);
//! Intersects plane and torus.
Standard_EXPORT void Perform (const gp_Pln& Pln, const gp_Torus& Tor, const Standard_Real Tol);
- //! Creates the intersection beween cylinder and torus.
+ //! Creates the intersection between cylinder and torus.
Standard_EXPORT IntAna_QuadQuadGeo(const gp_Cylinder& Cyl, const gp_Torus& Tor, const Standard_Real Tol);
//! Intersects cylinder and torus.
Standard_EXPORT void Perform (const gp_Cylinder& Cyl, const gp_Torus& Tor, const Standard_Real Tol);
- //! Creates the intersection beween cone and torus.
+ //! Creates the intersection between cone and torus.
Standard_EXPORT IntAna_QuadQuadGeo(const gp_Cone& Con, const gp_Torus& Tor, const Standard_Real Tol);
//! Intersects cone and torus.
Standard_EXPORT void Perform (const gp_Cone& Con, const gp_Torus& Tor, const Standard_Real Tol);
- //! Creates the intersection beween sphere and torus.
+ //! Creates the intersection between sphere and torus.
Standard_EXPORT IntAna_QuadQuadGeo(const gp_Sphere& Sph, const gp_Torus& Tor, const Standard_Real Tol);
//! Intersects sphere and torus.
Standard_EXPORT void Perform (const gp_Sphere& Sph, const gp_Torus& Tor, const Standard_Real Tol);
- //! Creates the intersection beween two toruses.
+ //! Creates the intersection between two toruses.
Standard_EXPORT IntAna_QuadQuadGeo(const gp_Torus& Tor1, const gp_Torus& Tor2, const Standard_Real Tol);
//! Intersects two toruses.
//! Returns the type of intersection.
IntAna_ResultType TypeInter() const;
- //! Returns the number of interesections.
+ //! Returns the number of intersections.
//! The possible intersections are :
//! - 1 point
//! - 1 or 2 line(s)
//! Intersection between an hyperbola and another conic.
Standard_EXPORT void Perform (const gp_Hypr2d& H, const IntAna2d_Conic& C);
- //! Returns TRUE if the computation was succesfull.
+ //! Returns TRUE if the computation was successful.
Standard_Boolean IsDone() const;
//! Returns TRUE when there is no intersection, i-e
//! point P.
Standard_EXPORT gp_Vec2d GradDistance (const gp_Pnt2d& P) const;
- //! Returns the parameter U of the point on the
- //! implicit curve corresponding to the point P. The
- //! correspondance between P and the point P(U) on the
- //! implicit curve must be coherent with the way of
- //! determination of the signed distance.
+ //! Returns the parameter U of the point on the implicit curve corresponding to the point P.
+ //! The correspondence between P and the point P(U) on the
+ //! implicit curve must be coherent with the way of determination of the signed distance.
Standard_EXPORT Standard_Real FindParameter (const gp_Pnt2d& P) const;
-
-
-
-protected:
-
-
-
-
-
private:
-
-
Standard_Real prm1;
Standard_Real prm2;
Standard_Real prm3;
GeomAbs_CurveType type;
gp_Trsf2d Abs_To_Object;
-
};
-
-
-
-
-
-
#endif // _IntCurve_IConicTool_HeaderFile
// Line - Parabola
// Line - Hyperbola
// Circle - Parabola
-// Circle - Elipse
+// Circle - Ellipse
// Circle - Hyperbola
// Parabola - Parabola
-// Elipse - Parabola
+// Ellipse - Parabola
// Parabola - Hyperbola
-// Elipse - Elipse
-// Elipse - Hyperbola
+// Ellipse - Ellipse
+// Ellipse - Hyperbola
// Hyperbola - Hyperbola
//=======================================================================
static const Standard_Real PARAM_MAX_ON_PARABOLA = 100000000.0;
//=======================================================================
//function : Perform
-//purpose : Circle - Elipse
+//purpose : Circle - Ellipse
//=======================================================================
void IntCurve_IntConicConic::Perform(const gp_Circ2d& C,
const IntRes2d_Domain& DC,
//=======================================================================
//function : Perform
-//purpose : Elipse - Parabola
+//purpose : Ellipse - Parabola
//=======================================================================
void IntCurve_IntConicConic::Perform(const gp_Elips2d& E,
const IntRes2d_Domain& DE,
//=======================================================================
//function : Perform
-//purpose : Elipse - Elipse
+//purpose : Ellipse - Ellipse
//=======================================================================
void IntCurve_IntConicConic::Perform(const gp_Elips2d& E1,
//=======================================================================
//function : Perform
-//purpose : Elipse - Hyperbola
+//purpose : Ellipse - Hyperbola
//=======================================================================
void IntCurve_IntConicConic::Perform(const gp_Elips2d& E,
const IntRes2d_Domain& DE,
//=======================================================================
//function : Perform
-//purpose : Line - Elipse
+//purpose : Line - Ellipse
//=======================================================================
void IntCurve_IntConicConic::Perform(const gp_Lin2d& L, const
IntRes2d_Domain& DL, const gp_Elips2d& E,
case GeomAbs_Circle: {
//---------------------------------------------------------------
//-- if the curve is a trimmed curve, first and last parameters
- //-- will be the parameters used to buid the domain
+ //-- will be the parameters used to build the domain
//--
Standard_Real firstparameter = TheCurveTool::FirstParameter(C1);
Standard_Real lastparameter = TheCurveTool::LastParameter(C1);
//-- All neighbor segments are removed
for(Standard_Integer k=sp+1;k<=Nbsp;k++) {
Standard_Integer kk=TriIndex[k];
- // --- avoid negative indicies as well as in outer done
+ // --- avoid negative indices as well as in outer done
if( kk > 0 ) {
if( Abs(SegIndex1-PtrSegIndex1[kk])< Nelarg
&& Abs(SegIndex2-PtrSegIndex2[kk])< Nelarg) {
if(NbIter>NBITER_MAX_POLYGON) return;
- // Number of samples tunning.
+ // Number of samples running.
nbsamplesOnC1 = TheCurveTool::NbSamples(C1,D1.FirstParameter(),D1.LastParameter());
nbsamplesOnC2 = TheCurveTool::NbSamples(C2,D2.FirstParameter(),D2.LastParameter());
//! Returns the parameter V of the point on the
//! parametric curve corresponding to the Point Pnt. The
- //! Correspondance between Pnt and the point P(V) on the
+ //! Correspondence between Pnt and the point P(V) on the
//! parametric curve must be coherent with the way of
//! determination of the signed distance between a point and
//! the implicit curve. Tol is the tolerance on the distance
//! between a point and the parametrised curve. In that case,
- //! no bounds are given. The research of the rigth parameter
+ //! no bounds are given. The research of the right parameter
//! has to be made on the natural parametric domain of the
//! curve.
Standard_EXPORT static Standard_Real FindParameter (const IntCurve_PConic& C, const gp_Pnt2d& Pnt, const Standard_Real Tol);
//! Returns the parameter V of the point on the
//! parametric curve corresponding to the Point Pnt. The
- //! Correspondance between Pnt and the point P(V) on the
+ //! Correspondence between Pnt and the point P(V) on the
//! parametric curve must be coherent with the way of
//! determination of the signed distance between a point and
//! the implicit curve. Tol is the tolerance on the distance
//! Give the number of triangles in this double array of
Standard_EXPORT Standard_Integer NbTriangles() const;
- //! Give the 3 points of the triangle of addresse Index in
+ //! Give the 3 points of the triangle of address Index in
//! the double array of triangles.
Standard_EXPORT void Triangle (const Standard_Integer Index, Standard_Integer& P1, Standard_Integer& P2, Standard_Integer& P3) const;
- //! Give the addresse Tricon of the triangle connexe to the
+ //! Give the address Tricon of the triangle connexe to the
//! triangle of address Triang by the edge Pivot Pedge and
//! the third point of this connexe triangle. When we are
//! on a free edge TriCon==0 but the function return the
Standard_EXPORT Standard_Boolean HasVMaxSingularity() const;
- //! Give the plane equation of the triangle of addresse Triang.
+ //! Give the plane equation of the triangle of address Triang.
Standard_EXPORT void PlaneEquation (const Standard_Integer Triang, gp_XYZ& NormalVector, Standard_Real& PolarDistance) const;
- //! Give the plane equation of the triangle of addresse Triang.
+ //! Give the plane equation of the triangle of address Triang.
Standard_EXPORT Standard_Boolean Contain (const Standard_Integer Triang, const gp_Pnt& ThePnt) const;
Standard_EXPORT void Parameters (const Standard_Integer Index, Standard_Real& U, Standard_Real& V) const;
//! Give the tolerance of the polygon.
static Standard_Real DeflectionOverEstimation (const IntCurveSurface_ThePolyhedronOfHInter& thePolyh);
- //! Give the number of triangles in this polyedral surface.
+ //! Give the number of triangles in this polyhedral surface.
static Standard_Integer NbTriangles (const IntCurveSurface_ThePolyhedronOfHInter& thePolyh);
//! Give the indices of the 3 points of the triangle of
//! address Index in the PolyhedronTool.
static void Triangle (const IntCurveSurface_ThePolyhedronOfHInter& thePolyh, const Standard_Integer Index, Standard_Integer& P1, Standard_Integer& P2, Standard_Integer& P3);
- //! Give the point of index i in the polyedral surface.
+ //! Give the point of index i in the polyhedral surface.
static const gp_Pnt& Point (const IntCurveSurface_ThePolyhedronOfHInter& thePolyh, const Standard_Integer Index);
- //! Give the addresse Tricon of the triangle connexe to
+ //! Give the address Tricon of the triangle connexe to
//! the triangle of address Triang by the edge Pivot Pedge
//! and the third point of this connexe triangle. When we
//! are on a free edge TriCon==0 but the function return
//! otherwise surface is not restricted.
//! If UseBToler = false then the 2d-point of intersection is classified with null-tolerance
//! (relative to face);
- //! otherwise it's using maximium between input tolerance(aTol) and tolerances of face bounds (edges).
+ //! otherwise it's using maximum between input tolerance(aTol) and tolerances of face bounds (edges).
Standard_EXPORT IntCurvesFace_Intersector(const TopoDS_Face& F, const Standard_Real aTol,
const Standard_Boolean aRestr = Standard_True,
const Standard_Boolean UseBToler = Standard_True);
//! segment L and the loaded face.
//!
//! PInf is the smallest parameter on the line
- //! PSup is the highest parmaeter on the line
+ //! PSup is the highest parameter on the line
//!
//! For an infinite line PInf and PSup can be
//! +/- RealLast.
//! The values can be either TopAbs_IN
//! ( the point is in the face)
//! or TopAbs_ON
- //! ( the point is on a boudary of the face).
+ //! ( the point is on a boundary of the face).
TopAbs_State State (const Standard_Integer I) const;
//! Returns true if curve is parallel or belongs face surface
//! The values can be either TopAbs_IN
//! ( the point is in the face)
//! or TopAbs_ON
- //! ( the point is on a boudary of the face).
+ //! ( the point is on a boundary of the face).
TopAbs_State State (const Standard_Integer I) const;
//! Returns the significant face used to determine
//! Returns the parameter U of the point on the
//! implicit curve corresponding to the point P.
- //! The correspondance between P and the point P(U) on
+ //! The correspondence between P and the point P(U) on
//! the implicit curve must be coherent with the way
//! of determination of the signed distance.
Standard_EXPORT Standard_Real FindParameter (const gp_Pnt2d& P) const;
//! Returns the first parameter on the intersection line.
//! If IsIncluded returns True, Value and D1 methods can
- //! be call with a parameter equal to FirstParamater.
+ //! be call with a parameter equal to FirstParameter.
//! Otherwise, the parameter must be greater than
//! FirstParameter.
Standard_Real FirstParameter (Standard_Boolean& IsIncluded) const;
//! Returns the last parameter on the intersection line.
//! If IsIncluded returns True, Value and D1 methods can
- //! be call with a parameter equal to LastParamater.
+ //! be call with a parameter equal to LastParameter.
//! Otherwise, the parameter must be less than LastParameter.
Standard_Real LastParameter (Standard_Boolean& IsIncluded) const;
Standard_EXPORT void MakeWLine (const Handle(IntPatch_ALine)& aline,
IntPatch_SequenceOfLine& theLines) const;
- //! Converts aline (limitted by paraminf and paramsup) to the set of
+ //! Converts aline (limited by paraminf and paramsup) to the set of
//! Walking-lines and adds them in theLines.
Standard_EXPORT void MakeWLine (const Handle(IntPatch_ALine)& aline,
const Standard_Real paraminf,
//! when ArcType returns IntPatch_Line.
gp_Lin Line() const;
- //! Returns the Circ from gp corrsponding to the intersection
+ //! Returns the Circ from gp corresponding to the intersection
//! when ArcType returns IntPatch_Circle.
gp_Circ Circle() const;
- //! Returns the Elips from gp corrsponding to the intersection
+ //! Returns the Elips from gp corresponding to the intersection
//! when ArcType returns IntPatch_Ellipse.
gp_Elips Ellipse() const;
- //! Returns the Parab from gp corrsponding to the intersection
+ //! Returns the Parab from gp corresponding to the intersection
//! when ArcType returns IntPatch_Parabola.
gp_Parab Parabola() const;
- //! Returns the Hypr from gp corrsponding to the intersection
+ //! Returns the Hypr from gp corresponding to the intersection
//! when ArcType returns IntPatch_Hyperbola.
gp_Hypr Hyperbola() const;
//Then
// aPar - cos(aFI2) == -5.10703e-015 ==> cos(aFI2) == aPar.
- //Theoreticaly, in this case
+ //Theoretically, in this case
// aFI2 == +/- acos(aPar).
//However,
// acos(aPar) - aFI2 == 2.16362e-009.
situC1=IntSurf_Inside;
situC2=IntSurf_Outside;
if (aR1>aR2) { // Intersection line parametrizes from Apex1 to Apex2,
- situC1=IntSurf_Outside; // So the distance betwee ptbid and aLAx1 is greater than the
+ situC1=IntSurf_Outside; // So the distance between ptbid and aLAx1 is greater than the
situC2=IntSurf_Inside; // distance between ptbid and aLAx2 and in that case Cone2
// is inside Cone 1
}
}
}
- //When two cones have common generatrix passing trough apexes
+ //When two cones have common generatrix passing through apexes
//it is necessary to add it is solution
if(inter.HasCommonGen()) {
Standard_Real para;
//purpose : Check, if theLine is coincided with theArc (in 2d-space).
//
// Attention!!!
-// Cases when theArc is not 2d-line adaptor are suppored by
+// Cases when theArc is not 2d-line adaptor are supported by
// TopOpeBRep classes only (i.e. are archaic).
//=======================================================================
Standard_Boolean IsCoincide(IntPatch_TheSurfFunction& theFunc,
Standard_EXPORT void Perform (const Handle(Adaptor3d_Surface)& Surf1, const Handle(Adaptor3d_TopolTool)& D1, const Handle(Adaptor3d_Surface)& Surf2, const Handle(Adaptor3d_TopolTool)& D2, const Standard_Real TolArc, const Standard_Real TolTang, const Standard_Real Fleche, const Standard_Real Pas);
- //! Returns true if the calculus was succesfull.
+ //! Returns true if the calculus was successful.
Standard_Boolean IsDone() const;
//! Returns true if the is no intersection.
//! compatibility with TopOpeBRep package. It shall be deleted
//! after deleting TopOpeBRep.
//! If theIsReqToPostWLProc == FALSE, then we will work with Walking-line
- //! obtained after intersection algorithm directly (wothout any post-processing).
+ //! obtained after intersection algorithm directly (without any post-processing).
Standard_EXPORT void Perform (const Handle(Adaptor3d_Surface)& S1, const Handle(Adaptor3d_TopolTool)& D1, const Handle(Adaptor3d_Surface)& S2, const Handle(Adaptor3d_TopolTool)& D2, const Standard_Real TolArc, const Standard_Real TolTang, const Standard_Boolean isGeomInt = Standard_True, const Standard_Boolean theIsReqToKeepRLine = Standard_False, const Standard_Boolean theIsReqToPostWLProc = Standard_True);
//! If isGeomInt == Standard_False, then method
// --purpose: If on a face (lastp-firstp) == 1,
// sometimes it could mean a bad parametrisation of WLine.
// In this case we try to classify the "virtual" WLine point:
- // the geometrical point between two vertexes. This emulates
+ // the geometrical point between two vertices. This emulates
// situation when (lastp-firstp) != 1.
if(Abs(int_lastp-int_firstp) == 1)
{
//the method, which will be changed possibly never.
//However, if we do something in this method we can check its
//functionality easily. For that:
- // 1. Initialyze aTestID variable by the correct value;
+ // 1. Initialize aTestID variable by the correct value;
// 2. Compile this test code fragment.
int aTestID = 0;
#endif
const gp_Vec aN1(aDU1.Crossed(aDV1)), aN2(aDU2.Crossed(aDV2));
- //Tangent vactor to the intersection curve
+ //Tangent vector to the intersection curve
const gp_Vec aCTan(aN1.Crossed(aN2));
const Standard_Real aSqMagnFDer = aCTan.SquareMagnitude();
//! triangles (nbdu*nbdv*2).
Standard_EXPORT Standard_Integer NbTriangles() const;
- //! Give the 3 points of the triangle of addresse Index in
+ //! Give the 3 points of the triangle of address Index in
//! the double array of triangles.
Standard_EXPORT void Triangle (const Standard_Integer Index, Standard_Integer& P1, Standard_Integer& P2, Standard_Integer& P3) const;
- //! Give the addresse Tricon of the triangle connexe to the
+ //! Give the address Tricon of the triangle connexe to the
//! triangle of address Triang by the edge Pivot Pedge and
//! the third point of this connexe triangle. When we are
//! on a free edge TriCon==0 but the function return the
Standard_EXPORT Standard_Boolean HasVMaxSingularity() const;
- //! Give the plane equation of the triangle of addresse Triang.
+ //! Give the plane equation of the triangle of address Triang.
Standard_EXPORT void PlaneEquation (const Standard_Integer Triang, gp_XYZ& NormalVector, Standard_Real& PolarDistance) const;
- //! Give the plane equation of the triangle of addresse Triang.
+ //! Give the plane equation of the triangle of address Triang.
Standard_EXPORT Standard_Boolean Contain (const Standard_Integer Triang, const gp_Pnt& ThePnt) const;
Standard_EXPORT void Parameters (const Standard_Integer Index, Standard_Real& U, Standard_Real& V) const;
class gp_Pnt;
-//! Describe the signature of a polyedral surface with
+//! Describe the signature of a polyhedral surface with
//! only triangular facets and the necessary information
//! to compute the interferences.
class IntPatch_PolyhedronTool
//! Give the tolerance of the polygon.
static Standard_Real DeflectionOverEstimation (const IntPatch_Polyhedron& thePolyh);
- //! Give the number of triangles in this polyedral surface.
+ //! Give the number of triangles in this polyhedral surface.
static Standard_Integer NbTriangles (const IntPatch_Polyhedron& thePolyh);
//! Give the indices of the 3 points of the triangle of
//! address Index in the Polyhedron.
static void Triangle (const IntPatch_Polyhedron& thePolyh, const Standard_Integer Index, Standard_Integer& P1, Standard_Integer& P2, Standard_Integer& P3);
- //! Give the point of index i in the polyedral surface.
+ //! Give the point of index i in the polyhedral surface.
static const gp_Pnt& Point (const IntPatch_Polyhedron& thePolyh, const Standard_Integer Index);
- //! Gives the addresse Tricon of the triangle connexe to
+ //! Gives the address Tricon of the triangle connexe to
//! the triangle of address Triang by the edge Pivot Pedge
//! and the third point of this connexe triangle. When we
//! are on a free edge TriCon==0 but the function return
class IntPatch_PrmPrmIntersection_T3Bits;
class IntSurf_LineOn2S;
-//! Implementation of the Intersection between two
-//! bi-parametrised surfaces.
+//! Implementation of the Intersection between two bi-parametrised surfaces.
//!
-//! To avoid multiple constructions of the approximated
-//! polyhedron of the surfaces, the algorithm can be
-//! called whith the two surfaces and their associated
-//! polyhedron.
+//! To avoid multiple constructions of the approximated
+//! polyhedron of the surfaces, the algorithm can be
+//! called with the two surfaces and their associated polyhedron.
class IntPatch_PrmPrmIntersection
{
public:
//! computed.
Standard_EXPORT void Perform (const Handle(Adaptor3d_Surface)& Caro1, const IntPatch_Polyhedron& Polyhedron1, const Handle(Adaptor3d_TopolTool)& Domain1, const Handle(Adaptor3d_Surface)& Caro2, const Handle(Adaptor3d_TopolTool)& Domain2, const Standard_Real TolTangency, const Standard_Real Epsilon, const Standard_Real Deflection, const Standard_Real Increment);
- //! Returns true if the calculus was succesfull.
+ //! Returns true if the calculus was successful.
Standard_Boolean IsDone() const;
//! Returns true if the is no intersection.
Standard_Integer inf[3],sup[3];
// first search inside close bounding around ParamApproche;
// then search to the nearest end of line;
- // and then search to the farest end of line.
+ // and then search to the farthest end of line.
inf[0] = ParamSearchInf; sup[0] = ParamSearchSup;
if (ParamSearchInf-1 < nbpt-ParamSearchSup) {
inf[1] = 1; sup[1] = ParamSearchInf;
#include <math_Matrix.hxx>
// The function for searching intersection point, which
-// lies in the seam-edge of the quadric definetely.
+// lies in the seam-edge of the quadric definitely.
class FuncPreciseSeam: public math_FunctionSetWithDerivatives
{
public:
{\mathrm{d} V_{s}}+\frac{\partial S_{x}}
{\partial V_{s}}).
-Analogicaly for @\sin (U_{q})@ (@S_{x}@ is substituted to @S_{y}@).
+Analogically for @\sin (U_{q})@ (@S_{x}@ is substituted to @S_{y}@).
Let mean, that
\cos (U_{q}) \left | _{V_{q} \to (-\pi /2+0)} = \cos (U_{q}) \left | _{V_{q} \to (\pi /2-0)}
//Example of this case is an intersection of a plane with a sphere
//when the plane tangents the sphere in some pole (i.e. only one
//intersection point, not line). In this case, U-coordinate of the
- //sphere is undefined (can be realy anything).
+ //sphere is undefined (can be really anything).
//Another reason is that we have tangent zone around the pole
//(see bug #26576).
//Computation of correct value of theUquad is impossible.
return theWLine;
}
- // Build new line and modify geometry of necessary vertexes.
+ // Build new line and modify geometry of necessary vertices.
Handle(IntPatch_WLine) aLocalWLine = MakeNewWLine(theWLine, aDelOuterPointsHash, Standard_True);
if (aChangedFirst)
//=======================================================================
//function : NextStartingPointsResearch
//purpose : from two triangles and an intersection point I
-// seach the other point (if it exist).
+// search the other point (if it exist).
// This function is used by StartPointChain
//=======================================================================
Standard_Integer IntPolyh_MaillageAffinage::NextStartingPointsResearch
Standard_EXPORT Standard_Integer StartingPointsResearch (const Standard_Integer T1, const Standard_Integer T2, IntPolyh_StartPoint& SP1, IntPolyh_StartPoint& SP2) const;
//! from two triangles and an intersection point I
- //! seach the other point (if it exist).
+ //! search the other point (if it exist).
//! This function is used by StartPointChain
Standard_EXPORT Standard_Integer NextStartingPointsResearch (const Standard_Integer T1, const Standard_Integer T2, const IntPolyh_StartPoint& SPInit, IntPolyh_StartPoint& SPNext) const;
//! This class provides a tool on the "interior point"
//! that can be used to instantiates the Walking
-//! algorithmes (see package IntWalk).
+//! algorithms (see package IntWalk).
class IntSurf_InteriorPointTool
{
public:
//! This class provides a tool on a quadric that can be
-//! used to instantiates the Walking algorithmes (see
+//! used to instantiates the Walking algorithms (see
//! package IntWalk) with a Quadric from IntSurf
//! as implicit surface.
class IntSurf_QuadricTool
BoundaryCondition = Standard_False;
}
- Standard_Integer loopcounter = 0; // neccesary as infinite loop restricter
+ Standard_Integer loopcounter = 0; // necessary as infinite loop restricter
Standard_Real U = theUParameter;
Standard_Real V = theVParameter;
Standard_Boolean anotherSolutionFound = Standard_False;
Standard_EXPORT void Init (const BRepAdaptor_Curve& theCurve, const BRepAdaptor_Surface& theSurface, const Standard_Real theFirstParOnCurve, const Standard_Real theLastParOnCurve, const Standard_Real theUMinParameter, const Standard_Real theUMaxParameter, const Standard_Real theVMinParameter, const Standard_Real theVMaxParameter, const Standard_Real theBeanTolerance, const Standard_Real theFaceTolerance);
- //! Sets the intersecton context
+ //! Sets the intersection context
Standard_EXPORT void SetContext (const Handle(IntTools_Context)& theContext);
- //! Gets the intersecton context
+ //! Gets the intersection context
Standard_EXPORT const Handle(IntTools_Context)& Context() const;
}
- //! Applys the == operator on each array item
+ //! Applyies the == operator on each array item
Standard_EXPORT Standard_Boolean IsEqual (const IntTools_CArray1OfInteger& Other) const;
Standard_Boolean operator == (const IntTools_CArray1OfInteger& Other) const
{
}
- //! Applys the == operator on each array item
+ //! Applies the == operator on each array item
Standard_EXPORT Standard_Boolean IsEqual (const IntTools_CArray1OfReal& Other) const;
Standard_Boolean operator == (const IntTools_CArray1OfReal& Other) const
{
IntTools_SequenceOfRanges aRanges1, aRanges2;
//
- //3.2. Find ranges containig solutions
+ //3.2. Find ranges containing solutions
Standard_Boolean bSplit2;
FindSolutions(aRanges1, aRanges2, bSplit2);
//
- //! Empty contructor
+ //! Empty constructor
IntTools_EdgeEdge();
//! Destructor
~IntTools_EdgeEdge();
- //! Contructor
+ //! Constructor
IntTools_EdgeEdge(const TopoDS_Edge& theEdge1, const TopoDS_Edge& theEdge2);
- //! Contructor
+ //! Constructor
IntTools_EdgeEdge(const TopoDS_Edge& theEdge1, const Standard_Real aT11,
const Standard_Real aT12, const TopoDS_Edge& theEdge2,
const Standard_Real aT21, const Standard_Real aT22);
//be classified. Therefore, points with indexes in
//[aTreshIdxF, aTreshIdxL] range are made available
//for classification.
- //isClassified == TRUE if MIDDLE point has been choosen and
+ //isClassified == TRUE if MIDDLE point has been chosen and
//classified correctly.
if(((0 < i) && (i < aTreshIdxF)) || ((aTreshIdxL < i ) && (i < aNbSeg)))
MakeType (aCP);
}
{
- // Line\Cylinder's Common Parts treatement
+ // Line\Cylinder's Common Parts treatment
GeomAbs_CurveType aCType;
GeomAbs_SurfaceType aSType;
TopAbs_ShapeEnum aType;
}
}
- // Circle\Plane's Common Parts treatement
+ // Circle\Plane's Common Parts treatment
if (aCType==GeomAbs_Circle && aSType==GeomAbs_Plane) {
Standard_Boolean bIsCoplanar, bIsRadius;
Standard_EXPORT void SetList (IntSurf_ListOfPntOn2S& ListOfPnts);
- //! Sets the intersecton context
+ //! Sets the intersection context
Standard_EXPORT void SetContext (const Handle(IntTools_Context)& aContext);
//! Sets the Fuzzy value
//! Returns Fuzzy value
Standard_EXPORT Standard_Real FuzzyValue() const;
- //! Gets the intersecton context
+ //! Gets the intersection context
Standard_EXPORT const Handle(IntTools_Context)& Context() const;
protected:
Standard_EXPORT static void RejectLines (const IntTools_SequenceOfCurves& aSIn, IntTools_SequenceOfCurves& aSOut);
- //! Returns True if D1 and D2 coinside
+ //! Returns True if D1 and D2 coincide
Standard_EXPORT static Standard_Boolean IsDirsCoinside (const gp_Dir& D1, const gp_Dir& D2);
- //! Returns True if D1 and D2 coinside with given tolerance
+ //! Returns True if D1 and D2 coincide with given tolerance
Standard_EXPORT static Standard_Boolean IsDirsCoinside (const gp_Dir& D1, const gp_Dir& D2, const Standard_Real aTol);
//! by adaptive algorithm for BSpline surfaces. For other surfaces algorithm
//! is the same as in method ComputeSamplePoints(), but only fill arrays of U
//! and V sample parameters;
- //! theDefl is a requred deflection
+ //! theDefl is a required deflection
//! theNUmin, theNVmin are minimal nb points for U and V.
Standard_EXPORT virtual void SamplePnts (const Standard_Real theDefl, const Standard_Integer theNUmin, const Standard_Integer theNVmin) Standard_OVERRIDE;
if(!bIsFirstInside && !bIsLastInside) {
if((ifprm < iFirst) && (ilprm > iLast)) {
- // append whole line, and boundaries if neccesary
+ // append whole line, and boundaries if necessary
if(bhasfirstpoint) {
pit = aListOfFLIndex.First();
const IntSurf_PntOn2S& aP = aSeqOfPntOn2S->Value(pit);
// calculation of step)
// 2) calculation of the point
// 3) if the point is not found the step is divided
-// 4) stpo tests
+// 4) stop tests
// 5) calculation of the step depending on the arrow and the max step,
// (TestDeflection)
// stop possible.
else { // there is a solution
Rsnld.Root(Uvap);
- // Avoid unitialized memory access.
+ // Avoid uninitialized memory access.
if (CurrentLine->NbPoints() > 2)
{
for(Standard_Integer aCoordIdx = 1; aCoordIdx <= 2; aCoordIdx++)
//If aMinTolU==0.0 then (Abs(Du) < aMinTolU) is equivalent of (Abs(Du) < 0.0).
//It is impossible. Therefore, this case should be processed separately.
- //Analogicaly for aMinTolV.
+ //Analogically for aMinTolV.
if ((Abs(Du) < aTolU) && (Abs(Dv) < aTolV))
{
if(aSQMCurS1 < gp::Resolution())
{
- //We came back to the one of previos point.
+ //We came back to the one of previous point.
//Therefore, we must break;
anAngleS1 = M_PI;
if(aSQMCurS2 < gp::Resolution())
{
- //We came back to the one of previos point.
+ //We came back to the one of previous point.
//Therefore, we must break;
anAngleS2 = M_PI;
{
//Check singularity.
//I.e. check if we are walking along direction, which does not
- //result in comming to any point (i.e. derivative
+ //result in coming to any point (i.e. derivative
//3D-intersection curve along this direction is equal to 0).
//A sphere with direction {dU=1, dV=0} from point
//(U=0, V=M_PI/2) can be considered as example for
//!
//! Basically, the system provides the following categories :
//! Shape (Geometry, BRep, CSG, Features, etc...)
-//! Drawing (Drawing, Views, Annotations, Pictures, Scketches ...)
+//! Drawing (Drawing, Views, Annotations, Pictures, Sketches ...)
//! Structure (Component & Part, Groups & Patterns ...)
//! Description (Meta-Data : Relations, Properties, Product ...)
//! Auxiliary (those which do not enter in the above list)
//! Checks if any Error has been detected (CheckList not empty)
//! Returns normally if none, raises exception if some exists.
//! It reuses the last computations from other checking methods,
- //! unless the argument <resest> is given True
+ //! unless the argument <reset> is given True
Standard_EXPORT void CheckSuccess (const Standard_Boolean reset = Standard_False);
//! Returns list of all "remarkable" information, which include :
//! AnalyseCheckList + VerifyCheckList
Standard_EXPORT Interface_CheckIterator CheckList();
- //! Returns list of errors dectected at Analyse time (syntactic)
+ //! Returns list of errors detected at Analyse time (syntactic)
//! (note that GlobalCheck is not in this list)
Standard_EXPORT Interface_CheckIterator AnalyseCheckList();
DEFINE_STANDARD_ALLOC
- //! Creates a List as beeing empty
+ //! Creates a List as being empty
Standard_EXPORT Interface_EntityList();
//! Clears the List
Standard_EXPORT const Handle(Standard_Transient)& ParamEntity (const Standard_Integer num, const Standard_Integer nump) const;
//! Returns the absolute rank of the beginning of a record
- //! (its lsit is from ParamFirstRank+1 to ParamFirstRank+NbParams)
+ //! (its list is from ParamFirstRank+1 to ParamFirstRank+NbParams)
Standard_EXPORT Standard_Integer ParamFirstRank (const Standard_Integer num) const;
//! Returns the entity bound to a record, set by SetEntities
//! <nbr> must be the maximum number of records to get (no way to
//! extend it at run-time) : count entities and sub-entities ...
//! <npar> is the total count of parameters (if it is not exact,
- //! it will be extented as necessary)
+ //! it will be extended as necessary)
//!
//! Hence, to each record can be bound an Entity and a list of
//! Parameters. Each kind of FileReaderData can add other data, by
//! default is doing nothing; redefinable as necessary
Standard_EXPORT virtual void EndRead (const Handle(Interface_InterfaceModel)& amodel);
- //! Clear filelds
+ //! Clear fields
Standard_EXPORT void Clear();
#include <Standard_CString.hxx>
-//! This class converts a floting number (Real) to a string
+//! This class converts a floating number (Real) to a string
//! It can be used if the standard C-C++ output functions
//! (sprintf or std::cout<<) are not convenient. That is to say :
//! - to suppress trailing '0' and 'E+00' (if desired)
-//! - to control exponant output and floating point output
+//! - to control exponent output and floating point output
//!
//! Formats are given in the form used by printf-sprintf
class Interface_FloatWriter
Standard_EXPORT void SetFormatForRange (const Standard_CString form, const Standard_Real R1, const Standard_Real R2);
//! Sets Sending Real Parameters to suppress trailing Zeros and
- //! Null Exponant ("E+00"), if <mode> is given True, Resets this
+ //! Null Exponent ("E+00"), if <mode> is given True, Resets this
//! mode if <mode> is False (in addition to Real Forms)
//! A call to SetRealFrom resets this mode to False ig <reset> is
//! given True (Default from Creation is True)
Standard_EXPORT Standard_Integer Write (const Standard_Real val, const Standard_CString text) const;
//! This class method converts a Real Value to a string, given
- //! options given as arguments. It can be called independantly.
+ //! options given as arguments. It can be called independently.
//! Warning : even if declared in, content of <text> will be modified
Standard_EXPORT static Standard_Integer Convert (const Standard_Real val, const Standard_CString text, const Standard_Boolean zerosup, const Standard_Real Range1, const Standard_Real Range2, const Standard_CString mainform, const Standard_CString rangeform);
//! coherence with Dispatch
//! Dispatch can either copy or not.
//! If it copies the entity, this one should be deleted
- //! If it doesnt (i.e. duplicates the handle) nothing to do
+ //! If it doesn't (i.e. duplicates the handle) nothing to do
//!
//! If <dispatch> is False, normal deletion is to be performed
Standard_EXPORT virtual void WhenDeleteCase (const Standard_Integer CN, const Handle(Standard_Transient)& ent, const Standard_Boolean dispatched) const;
//! Adds a Module bound with a Protocol to the list : does
//! nothing if already in the list, THAT IS, Same Type (exact
//! match) and Same State (that is, IsEqual is not required)
- //! Once added, stores its attached Protocol in correspondance
+ //! Once added, stores its attached Protocol in correspondence
Standard_EXPORT void Add (const Handle(Interface_GeneralModule)& amodule, const Handle(Interface_Protocol)& aprotocol);
//! Returns the Module stored in a given GlobalNode
//! Adds a Module bound with a Protocol to the list : does
//! nothing if already in the list, THAT IS, Same Type (exact
//! match) and Same State (that is, IsEqual is not required)
- //! Once added, stores its attached Protocol in correspondance
+ //! Once added, stores its attached Protocol in correspondence
Standard_EXPORT void Add (const Handle(Interface_ReaderModule)& amodule, const Handle(Interface_Protocol)& aprotocol);
//! Returns the Module stored in a given GlobalNode
//! another Graph from <me>
Standard_EXPORT const Handle(TColStd_HArray1OfListOfInteger)& SharingTable() const;
- //! Returns mode resposible for computation of statuses;
+ //! Returns mode responsible for computation of statuses;
Standard_EXPORT Standard_Boolean ModeStat() const;
//! Returns Result under the exact form of an EntityIterator :
//! Can be used when EntityIterator itself is required (as a
- //! returned value for instance), whitout way for a sub-class
+ //! returned value for instance), without way for a sub-class
Standard_EXPORT Interface_EntityIterator Result();
//! Does the Evaluation before starting the iteration itself
DEFINE_STANDARD_HANDLE(Interface_HGraph, Standard_Transient)
//! This class allows to store a redefinable Graph, via a Handle
-//! (usefull for an Object which can work on several successive
+//! (useful for an Object which can work on several successive
//! Models, with the same general conditions)
class Interface_HGraph : public Standard_Transient
{
//! Returns the Graph contained in <me>, for Read Only Operations
//! Remark that it is returns as "const &"
//! Getting it in a new variable instead of a reference would be
- //! a pitty, because all the graph's content would be duplicated
+ //! a pity, because all the graph's content would be duplicated
Standard_EXPORT const Interface_Graph& Graph() const;
//! Same as above, but for Read-Write Operations
#include <TColStd_HArray1OfInteger.hxx>
#include <Standard_Boolean.hxx>
-
//! This class detains the data which describe a Graph. A Graph
//! has two lists, one for shared refs, one for sharing refs
//! (the reverses). Each list comprises, for each Entity of the
//! Returns the count of refs attached to current entity number
Standard_EXPORT Standard_Integer Length() const;
-
- //! Returns True if the list for a number (default is taken as
- //! current) is "redefined" (usefull for empty list)
+
+ //! Returns True if the list for a number
+ //! (default is taken as current) is "redefined" (useful for empty list)
Standard_EXPORT Standard_Boolean IsRedefined (const Standard_Integer num = 0) const;
-
+
//! Returns a reference number in the list for current number,
//! according to its rank
Standard_EXPORT Standard_Integer Value (const Standard_Integer num) const;
//! margin can be added.
Standard_EXPORT void AdjustSize (const Standard_Integer margin = 0);
-
-
-
-protected:
-
-
-
-
-
private:
-
-
Standard_Integer thenbe;
Standard_Integer thenbr;
Standard_Integer thenum;
Handle(TColStd_HArray1OfInteger) theents;
Handle(TColStd_HArray1OfInteger) therefs;
-
};
-
-
-
-
-
-
#endif // _Interface_IntList_HeaderFile
//! Removes the ReportEntity attached to Entity <num>. Returns
//! True if done, False if no ReportEntity was attached to <num>.
- //! Warning : the caller must assume that this clearing is meaningfull
+ //! Warning : the caller must assume that this clearing is meaningful
Standard_EXPORT Standard_Boolean ClearReportEntity (const Standard_Integer num);
//! Sets or Replaces a ReportEntity for the Entity <num>. Returns
//! True if Report is replaced, False if it has been replaced
- //! Warning : the caller must assume that this setting is meaningfull
+ //! Warning : the caller must assume that this setting is meaningful
Standard_EXPORT Standard_Boolean SetReportEntity (const Standard_Integer num, const Handle(Interface_ReportEntity)& rep);
//! Adds a ReportEntity as such. Returns False if the concerned
//! (each item has to be casted to Report Entity then it can be
//! queried for Concerned Entity, Content, Check ...)
//! By default, returns the main reports, is <semantic> is True it
- //! returns the list for sematic checks
+ //! returns the list for semantic checks
Standard_EXPORT Interface_EntityIterator Reports (const Standard_Boolean semantic = Standard_False) const;
//! Returns the list of ReportEntities which redefine data
//! Codes a date as a text, from its numeric value (-> seconds) :
//! YYYY-MM-DD:HH-MN-SS fixed format, completed by leading zeros
//! Another format can be provided, as follows :
- //! C:%d ... C like format, preceeded by C:
+ //! C:%d ... C like format, preceded by C:
//! S:... format to call system (not yet implemented)
Standard_EXPORT static void TDate (const Standard_CString text, const Standard_Integer yy, const Standard_Integer mm, const Standard_Integer dd, const Standard_Integer hh, const Standard_Integer mn, const Standard_Integer ss, const Standard_CString format = "");
Standard_EXPORT static Standard_CString Blanks (const Standard_Integer count);
//! Prints a String on an Output Stream, as follows :
- //! Accompagned with blanks, to give up to <max> charis at all,
+ //! Accompanied with blanks, to give up to <max> charis at all,
//! justified according just :
//! -1 (D) : left 0 : center 1 : right
//! Maximum 76 characters
public:
- //! Creates an vector with size of memmory blok equal to theIncrement
+ //! Creates an vector with size of memory block equal to theIncrement
Standard_EXPORT Interface_ParamList(const Standard_Integer theIncrement = 256);
//! Returns the number of elements of <me>.
Standard_EXPORT Interface_ParamSet(const Standard_Integer nres, const Standard_Integer nst = 1);
//! Adds a parameter defined as its Value (CString and length) and
- //! Type. Optionnal EntityNumber (for FileReaderData) can be given
+ //! Type. Optional EntityNumber (for FileReaderData) can be given
//! Allows a better memory management than Appending a
//! complete FileParameter
//! If <lnval> < 0, <val> is assumed to be managed elsewhere : its
- //! adress is stored as such. Else, <val> is copied in a locally
+ //! address is stored as such. Else, <val> is copied in a locally
//! (quickly) managed Page of Characters
//! Returns new count of recorded Parameters
Standard_EXPORT Standard_Integer Append (const Standard_CString val, const Standard_Integer lnval, const Interface_ParamType typ, const Standard_Integer nument);
//! Changes a parameter identified by its number
Standard_EXPORT void SetParam (const Standard_Integer num, const Interface_FileParameter& FP);
- //! Builds and returns the sub-list correspinding to parameters,
+ //! Builds and returns the sub-list corresponding to parameters,
//! from "num" included, with count "nb"
//! If <num> and <nb> are zero, returns the whole list
Standard_EXPORT Handle(Interface_ParamList) Params (const Standard_Integer num, const Standard_Integer nb) const;
//! the ReportEntity is an "Error Entity", the Concerned Entity is
//! an "Erroneous Entity". Else it is a "Correction Entity", the
//! Concerned Entity is a "Corrected Entity". With no Check
-//! message and if Concerened and Content are equal, it reports
+//! message and if Concerned and Content are equal, it reports
//! for an "Unknown Entity".
//!
//! Each norm must produce its own type of Unknown Entity, but can
//! Hence, NextItem is available to directly count
Standard_EXPORT static void StartCount (const Standard_Integer items, const Standard_CString title = "");
- //! Commands to resume the preceeding phase and start a new one
+ //! Commands to resume the preceding phase and start a new one
//! <items> and <cycles> as for Start, but for this new phase
//! Ignored if count of phases is already passed
//! If <cycles> is more than one, the first Cycle must then be
//! Can be used by an operator which has to reajust counts on run
Standard_EXPORT static void SetPhase (const Standard_Integer items, const Standard_Integer cycles = 1);
- //! Commands to resume the preceeding cycle and start a new one,
+ //! Commands to resume the preceding cycle and start a new one,
//! with a count of items
//! Ignored if count of cycles is already passed
//! Then, first step is started (or default one)
//! to the next one
Standard_EXPORT static void NextCycle (const Standard_Integer items);
- //! Commands to resume the preceeding step of the cycle
+ //! Commands to resume the preceding step of the cycle
//! Ignored if count of steps is already passed
//! NextItem can be called for this step, NextStep passes to next
Standard_EXPORT static void NextStep();
class Interface_Graph;
class Interface_EntityIterator;
-//! Builds the Graph of Dependancies, from the General Service
+//! Builds the Graph of Dependencies, from the General Service
//! "Shared" -> builds for each Entity of a Model, the Shared and
//! Sharing Lists, and gives access to them.
//! Allows to complete with Implied References (which are not
//! regarded as Shared Entities, but are nevertheless Referenced),
-//! this can be usefull for Reference Checking
+//! this can be useful for Reference Checking
class Interface_ShareTool
{
public:
class Interface_Static;
DEFINE_STANDARD_HANDLE(Interface_Static, Interface_TypedValue)
-//! This class gives a way to manage meaningfull static variables,
+//! This class gives a way to manage meaningful static variables,
//! used as "global" parameters in various procedures.
//!
//! A Static brings a specification (its type, constraints if any)
// Only the pointer is declared static, and initialized to NULL : then,
// there is no routine to call for static construction
-// Remember that the objet designated by a static Handle should not be created
+// Remember that the object designated by a static Handle should not be created
// in the static declaration, but must anyway be created, during main run,
// once before its first use : this is the initialization step.
// ***************************************************
// Old statement (in a routine, not static) :
// if (object.IsNull()) object = new pk_class (..args if any..);
-// can be maintained, but preceeded by an initialization :
+// can be maintained, but preceded by an initialization :
// InitHandle(pk_class,object); // -> Null Handle
// ***************************************************
Standard_EXPORT Interface_TypedValue(const Standard_CString name, const Interface_ParamType type = Interface_ParamText, const Standard_CString init = "");
//! Returns the type
- //! I.E. calls ValueType then makes correspondance between
+ //! I.E. calls ValueType then makes correspondence between
//! ParamType from Interface (which remains for compatibility
//! reasons) and ValueType from MoniTool
Standard_EXPORT Interface_ParamType Type() const;
- //! Correspondance ParamType from Interface to
- //! ValueType from MoniTool
+ //! Correspondence ParamType from Interface to ValueType from MoniTool
Standard_EXPORT static MoniTool_ValueType ParamTypeToValueType (const Interface_ParamType typ);
- //! Correspondance ParamType from Interface to
- //! ValueType from MoniTool
+ //! Correspondence ParamType from Interface to ValueType from MoniTool
Standard_EXPORT static Interface_ParamType ValueTypeToParamType (const MoniTool_ValueType typ);
DEFINE_STANDARD_ALLOC
-
//! Returns the location of the SectionPoint.
Standard_EXPORT const gp_Pnt& Pnt() const;
Intf_PIType TypeOnSecond() const;
Standard_EXPORT void InfoFirst (Intf_PIType& Dim, Standard_Integer& Add1, Standard_Integer& Add2, Standard_Real& Param) const;
-
- //! Gives the datas about the first argument of the
- //! Interference.
+
+ //! Gives the data about the first argument of the Interference.
Standard_EXPORT void InfoFirst (Intf_PIType& Dim, Standard_Integer& Addr, Standard_Real& Param) const;
-
+
Standard_EXPORT void InfoSecond (Intf_PIType& Dim, Standard_Integer& Add1, Standard_Integer& Add2, Standard_Real& Param) const;
-
- //! Gives the datas about the second argument of the
- //! Interference.
+
+ //! Gives the data about the second argument of the Interference.
Standard_EXPORT void InfoSecond (Intf_PIType& Dim, Standard_Integer& Addr, Standard_Real& Param) const;
-
+
//! Gives the incidence at this section point. The incidence
//! between the two triangles is given by the cosine. The best
//! incidence is 0. (PI/2). The worst is 1. (null angle).
Standard_EXPORT void Dump (const Standard_Integer Indent) const;
-
-
-
-protected:
-
-
-
-
-
private:
-
-
gp_Pnt myPnt;
Intf_PIType DimenObje;
Standard_Integer IndexO1;
Standard_Real ParamTool;
Standard_Real Incide;
-
};
-
#include <Intf_SectionPoint.lxx>
-
-
-
-
#endif // _Intf_SectionPoint_HeaderFile