Back to home page

EIC code displayed by LXR

 
 

    


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

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 DEFINE_STANDARD_HANDLE(HLRTest_Projector, Draw_Drawable3D)
0025 
0026 //! Draw Variable Projector to test.
0027 class HLRTest_Projector : public Draw_Drawable3D
0028 {
0029   DEFINE_STANDARD_RTTIEXT(HLRTest_Projector, Draw_Drawable3D)
0030   Draw_Drawable3D_FACTORY
0031 public:
0032 
0033   Standard_EXPORT HLRTest_Projector(const HLRAlgo_Projector& P);
0034 
0035   const HLRAlgo_Projector& Projector() const { return myProjector; }
0036 
0037   //! Does nothing,
0038   Standard_EXPORT virtual void DrawOn (Draw_Display& dis) const Standard_OVERRIDE;
0039 
0040   //! For variable copy.
0041   Standard_EXPORT virtual Handle(Draw_Drawable3D) Copy() const Standard_OVERRIDE;
0042 
0043   //! For variable dump.
0044   Standard_EXPORT virtual void Dump (Standard_OStream& S) const Standard_OVERRIDE;
0045 
0046   //! Save drawable into stream.
0047   Standard_EXPORT virtual void Save (Standard_OStream& theStream) const Standard_OVERRIDE;
0048 
0049   //! For variable whatis command. Set  as a result  the
0050   //! type of the variable.
0051   Standard_EXPORT virtual void Whatis (Draw_Interpretor& I) const Standard_OVERRIDE;
0052 
0053 private:
0054 
0055   HLRAlgo_Projector myProjector;
0056 
0057 };
0058 
0059 #endif // _HLRTest_Projector_HeaderFile