0031990: Coding, Draw Harness - Replace C-like pointers to function in Draw_SaveAndRe...
[occt.git] / src / HLRTest / HLRTest_Projector.hxx
CommitLineData
42cf5bc1 1// Created on: 1995-04-05
2// Created by: Christophe MARION
3// Copyright (c) 1995-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _HLRTest_Projector_HeaderFile
18#define _HLRTest_Projector_HeaderFile
19
42cf5bc1 20#include <HLRAlgo_Projector.hxx>
21#include <Draw_Drawable3D.hxx>
42cf5bc1 22#include <Draw_Interpretor.hxx>
42cf5bc1 23
42cf5bc1 24DEFINE_STANDARD_HANDLE(HLRTest_Projector, Draw_Drawable3D)
25
26//! Draw Variable Projector to test.
27class HLRTest_Projector : public Draw_Drawable3D
28{
a13df0fe 29 DEFINE_STANDARD_RTTIEXT(HLRTest_Projector, Draw_Drawable3D)
30 Draw_Drawable3D_FACTORY
42cf5bc1 31public:
32
42cf5bc1 33 Standard_EXPORT HLRTest_Projector(const HLRAlgo_Projector& P);
a13df0fe 34
35 const HLRAlgo_Projector& Projector() const { return myProjector; }
36
37 //! Does nothing,
38 Standard_EXPORT virtual void DrawOn (Draw_Display& dis) const Standard_OVERRIDE;
39
42cf5bc1 40 //! For variable copy.
41 Standard_EXPORT virtual Handle(Draw_Drawable3D) Copy() const Standard_OVERRIDE;
a13df0fe 42
42cf5bc1 43 //! For variable dump.
44 Standard_EXPORT virtual void Dump (Standard_OStream& S) const Standard_OVERRIDE;
a13df0fe 45
46 //! Save drawable into stream.
47 Standard_EXPORT virtual void Save (Standard_OStream& theStream) const Standard_OVERRIDE;
48
42cf5bc1 49 //! For variable whatis command. Set as a result the
50 //! type of the variable.
51 Standard_EXPORT virtual void Whatis (Draw_Interpretor& I) const Standard_OVERRIDE;
52
42cf5bc1 53private:
54
42cf5bc1 55 HLRAlgo_Projector myProjector;
56
42cf5bc1 57};
58
42cf5bc1 59#endif // _HLRTest_Projector_HeaderFile