Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-10 09:16:45

0001 // Created on: 2017-06-16
0002 // Created by: Natalia ERMOLAEVA
0003 // Copyright (c) 2017 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _GeometryTest_DrawableQualifiedCirc_HeaderFile
0017 #define _GeometryTest_DrawableQualifiedCirc_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <DrawTrSurf_Curve2d.hxx>
0021 #include <GccEnt_Position.hxx>
0022 
0023 class Geom2d_Curve;
0024 
0025 class GeometryTest_DrawableQualifiedCurve2d;
0026 DEFINE_STANDARD_HANDLE(GeometryTest_DrawableQualifiedCurve2d, DrawTrSurf_Curve)
0027 
0028 //! Create geom curve drawable presentation with the position of a solution of a construction
0029 //! algorithm.
0030 class GeometryTest_DrawableQualifiedCurve2d : public DrawTrSurf_Curve2d
0031 {
0032 
0033 public:
0034   //! Creates a drawable curve from a curve of package Geom.
0035   Standard_EXPORT GeometryTest_DrawableQualifiedCurve2d(
0036     const Handle(Geom2d_Curve)& theCurve,
0037     const GccEnt_Position       thePosition,
0038     const Standard_Boolean      theDispOrigin = Standard_True);
0039 
0040   //! Creates a drawable curve from a curve of package Geom.
0041   Standard_EXPORT GeometryTest_DrawableQualifiedCurve2d(
0042     const Handle(Geom2d_Curve)& theCurve,
0043     const Draw_Color&           theColor,
0044     const Standard_Integer      theDiscret,
0045     const GccEnt_Position       thePosition,
0046     const Standard_Boolean      theDispOrigin     = Standard_True,
0047     const Standard_Boolean      theDispCurvRadius = Standard_False,
0048     const Standard_Real         theRadiusMax      = 1.0e3,
0049     const Standard_Real         theRatioOfRadius  = 0.1);
0050 
0051   //! \returns position of a solution
0052   GccEnt_Position GetPosition() const { return myPosition; }
0053 
0054   //! Sets position of a solution
0055   //! \param thePosition the value
0056   void SetPosition(const GccEnt_Position thePosition) { myPosition = thePosition; }
0057 
0058   //! Paints the drawable presentation in given display
0059   //! \param theDisplay
0060   Standard_EXPORT void DrawOn(Draw_Display& theDisplay) const Standard_OVERRIDE;
0061 
0062   //! For variable dump.
0063   Standard_EXPORT virtual void Dump(Standard_OStream& S) const Standard_OVERRIDE;
0064 
0065   //! For variable whatis command. Set  as a result  the
0066   //! type of the variable.
0067   Standard_EXPORT virtual void Whatis(Draw_Interpretor& I) const Standard_OVERRIDE;
0068 
0069   DEFINE_STANDARD_RTTIEXT(GeometryTest_DrawableQualifiedCurve2d, DrawTrSurf_Curve2d)
0070 
0071 protected:
0072 private:
0073   GccEnt_Position myPosition;
0074 };
0075 
0076 #endif // _GeometryTest_DrawableQualifiedCirc_HeaderFile