Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-19 09:28:10

0001 // Created on: 1995-04-05
0002 // Created by: Christophe MARION
0003 // Copyright (c) 1995-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 _HLRTest_Projector_HeaderFile
0018 #define _HLRTest_Projector_HeaderFile
0019 
0020 #include <HLRAlgo_Projector.hxx>
0021 #include <Draw_Drawable3D.hxx>
0022 #include <Draw_Interpretor.hxx>
0023 
0024 //! Draw Variable Projector to test.
0025 class HLRTest_Projector : public Draw_Drawable3D
0026 {
0027   DEFINE_STANDARD_RTTIEXT(HLRTest_Projector, Draw_Drawable3D)
0028   Draw_Drawable3D_FACTORY
0029 public:
0030   Standard_EXPORT HLRTest_Projector(const HLRAlgo_Projector& P);
0031 
0032   const HLRAlgo_Projector& Projector() const { return myProjector; }
0033 
0034   //! Does nothing,
0035   Standard_EXPORT void DrawOn(Draw_Display& dis) const override;
0036 
0037   //! For variable copy.
0038   Standard_EXPORT occ::handle<Draw_Drawable3D> Copy() const override;
0039 
0040   //! For variable dump.
0041   Standard_EXPORT void Dump(Standard_OStream& S) const override;
0042 
0043   //! Save drawable into stream.
0044   Standard_EXPORT void Save(Standard_OStream& theStream) const override;
0045 
0046   //! For variable whatis command. Set as a result the
0047   //! type of the variable.
0048   Standard_EXPORT void Whatis(Draw_Interpretor& I) const override;
0049 
0050 private:
0051   HLRAlgo_Projector myProjector;
0052 };
0053 
0054 #endif // _HLRTest_Projector_HeaderFile