Back to home page

EIC code displayed by LXR

 
 

    


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

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 algorithm.
0029 class GeometryTest_DrawableQualifiedCurve2d : public DrawTrSurf_Curve2d
0030 {
0031 
0032 public:
0033 
0034 
0035   //! Creates a drawable curve from a curve of package Geom.
0036   Standard_EXPORT GeometryTest_DrawableQualifiedCurve2d (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 (const Handle(Geom2d_Curve)& theCurve,
0042                                                          const Draw_Color& theColor,
0043                                                          const Standard_Integer theDiscret,
0044                                                          const GccEnt_Position thePosition,
0045                                                          const Standard_Boolean theDispOrigin = Standard_True,
0046                                                          const Standard_Boolean theDispCurvRadius = Standard_False,
0047                                                          const Standard_Real theRadiusMax = 1.0e3,
0048                                                          const Standard_Real theRatioOfRadius = 0.1);
0049 
0050   //! \returns position of a solution
0051   GccEnt_Position GetPosition() const { return myPosition; }
0052   
0053   //! Sets position of a solution
0054   //! \param thePosition the value
0055   void SetPosition (const GccEnt_Position thePosition) { myPosition = thePosition; }
0056 
0057   //! Paints the drawable presentation in given display
0058   //! \param theDisplay
0059   Standard_EXPORT void DrawOn (Draw_Display& theDisplay) const Standard_OVERRIDE;
0060 
0061   //! For variable dump.
0062   Standard_EXPORT virtual void Dump (Standard_OStream& S) const Standard_OVERRIDE;
0063 
0064   //! For variable whatis command. Set  as a result  the
0065   //! type of the variable.
0066   Standard_EXPORT virtual void Whatis (Draw_Interpretor& I) const Standard_OVERRIDE;
0067 
0068   DEFINE_STANDARD_RTTIEXT(GeometryTest_DrawableQualifiedCurve2d, DrawTrSurf_Curve2d)
0069 
0070 protected:
0071 
0072 
0073 
0074 
0075 private:
0076 
0077 
0078   GccEnt_Position myPosition;
0079 
0080 };
0081 
0082 
0083 
0084 
0085 
0086 
0087 
0088 #endif // _GeometryTest_DrawableQualifiedCirc_HeaderFile