Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:08

0001 // Created on: 1993-12-02
0002 // Created by: Jacques GOUSSARD
0003 // Copyright (c) 1993-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _BRepBlend_Line_HeaderFile
0018 #define _BRepBlend_Line_HeaderFile
0019 
0020 #include <Blend_SequenceOfPoint.hxx>
0021 #include <BRepBlend_Extremity.hxx>
0022 #include <Standard_Transient.hxx>
0023 #include <Standard_Integer.hxx>
0024 
0025 class Blend_Point;
0026 
0027 
0028 class BRepBlend_Line;
0029 DEFINE_STANDARD_HANDLE(BRepBlend_Line, Standard_Transient)
0030 
0031 
0032 class BRepBlend_Line : public Standard_Transient
0033 {
0034 
0035 public:
0036 
0037   
0038   Standard_EXPORT BRepBlend_Line();
0039   
0040   //! Clears the content of the line.
0041   Standard_EXPORT void Clear();
0042   
0043   //! Adds a point in the line.
0044     void Append (const Blend_Point& P);
0045   
0046   //! Adds a point in the line at the first place.
0047     void Prepend (const Blend_Point& P);
0048   
0049   //! Adds a point in the line at the first place.
0050     void InsertBefore (const Standard_Integer Index, const Blend_Point& P);
0051   
0052   //! Removes  from  <me>    all  the  items  of
0053   //! positions between <FromIndex> and <ToIndex>.
0054   //! Raises an exception if the indices are out of bounds.
0055     void Remove (const Standard_Integer FromIndex, const Standard_Integer ToIndex);
0056   
0057   //! Sets the value of the transition of the line on S1 and
0058   //! the line on S2.
0059   Standard_EXPORT void Set (const IntSurf_TypeTrans TranS1, const IntSurf_TypeTrans TranS2);
0060   
0061   //! Sets the value of the transition of the line on a surface
0062   Standard_EXPORT void Set (const IntSurf_TypeTrans Trans);
0063   
0064   //! Sets the values of the start points for the line.
0065     void SetStartPoints (const BRepBlend_Extremity& StartPt1, const BRepBlend_Extremity& StartPt2);
0066   
0067   //! Sets tne values of the end points for the line.
0068     void SetEndPoints (const BRepBlend_Extremity& EndPt1, const BRepBlend_Extremity& EndPt2);
0069   
0070   //! Returns the number of points in the line.
0071     Standard_Integer NbPoints() const;
0072   
0073   //! Returns the point of range Index.
0074     const Blend_Point& Point (const Standard_Integer Index) const;
0075   
0076   //! Returns the type of the transition of the line defined
0077   //! on the first surface. The transition is "constant"
0078   //! along the line.
0079   //! The transition is IN if the line is oriented in such
0080   //! a way that the system of vectors (N,DRac,T) is
0081   //! right-handed, where
0082   //! N is the normal to the first surface at a point P,
0083   //! DRac is a vector tangent to the blending patch,
0084   //! oriented towards the valid part of this patch,
0085   //! T  is the tangent to the line on S1 at P.
0086   //! The transitioon is OUT when the system of vectors is
0087   //! left-handed.
0088     IntSurf_TypeTrans TransitionOnS1() const;
0089   
0090   //! Returns the type of the transition of the line defined
0091   //! on the second surface. The transition is "constant"
0092   //! along the line.
0093     IntSurf_TypeTrans TransitionOnS2() const;
0094   
0095   //! Returns the start point on S1.
0096     const BRepBlend_Extremity& StartPointOnFirst() const;
0097   
0098   //! Returns the start point on S2
0099     const BRepBlend_Extremity& StartPointOnSecond() const;
0100   
0101   //! Returns the end point on S1.
0102     const BRepBlend_Extremity& EndPointOnFirst() const;
0103   
0104   //! Returns the point on S2.
0105     const BRepBlend_Extremity& EndPointOnSecond() const;
0106   
0107   //! Returns the type of the transition of the line defined
0108   //! on the surface.
0109     IntSurf_TypeTrans TransitionOnS() const;
0110 
0111 
0112 
0113 
0114   DEFINE_STANDARD_RTTIEXT(BRepBlend_Line,Standard_Transient)
0115 
0116 protected:
0117 
0118 
0119 
0120 
0121 private:
0122 
0123 
0124   Blend_SequenceOfPoint seqpt;
0125   IntSurf_TypeTrans tras1;
0126   IntSurf_TypeTrans tras2;
0127   BRepBlend_Extremity stp1;
0128   BRepBlend_Extremity stp2;
0129   BRepBlend_Extremity endp1;
0130   BRepBlend_Extremity endp2;
0131   Standard_Boolean hass1;
0132   Standard_Boolean hass2;
0133 
0134 
0135 };
0136 
0137 
0138 #include <BRepBlend_Line.lxx>
0139 
0140 
0141 
0142 
0143 
0144 #endif // _BRepBlend_Line_HeaderFile