0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / src / BRepTest / BRepTest_DrawableHistory.hxx
CommitLineData
4f7d41ea 1// Created on: 2018/03/21
2// Created by: Eugeny MALTCHIKOV
3// Copyright (c) 2018 OPEN CASCADE SAS
4//
5// This file is part of Open CASCADE Technology software library.
6//
7// This library is free software; you can redistribute it and/or modify it under
8// the terms of the GNU Lesser General Public License version 2.1 as published
9// by the Free Software Foundation, with special exception defined in the file
10// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11// distribution for complete text of the license and disclaimer of any warranty.
12//
13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
15
16#ifndef _BRepTest_DrawableHistory_HeaderFile
17#define _BRepTest_DrawableHistory_HeaderFile
18
19#include <Standard.hxx>
4f7d41ea 20
21#include <BRepTools_History.hxx>
22
23#include <Draw_Drawable3D.hxx>
24#include <Draw_Interpretor.hxx>
25
26#include <Standard_OStream.hxx>
27
28//! Drawable History object.
29//! Allows keeping histories of the algorithms in Draw.
30class BRepTest_DrawableHistory : public Draw_Drawable3D
31{
32 DEFINE_STANDARD_RTTIEXT(BRepTest_DrawableHistory, Draw_Drawable3D)
33
34public:
35
36 //! Creation of the Drawable history.
37 BRepTest_DrawableHistory(const Handle(BRepTools_History)& theHistory)
38 {
39 myHistory = theHistory;
40 }
41
42 //! Returns the history.
43 const Handle(BRepTools_History)& History() const
44 {
45 return myHistory;
46 }
47
48 //! Drawing is not available.
49 Standard_EXPORT virtual void DrawOn(Draw_Display&)const Standard_OVERRIDE;
50
51 //! Dumps the history.
52 Standard_EXPORT virtual void Dump(Standard_OStream& theS) const Standard_OVERRIDE;
53
54 //! Prints the type of the history object.
55 Standard_EXPORT virtual void Whatis(Draw_Interpretor& theDI) const Standard_OVERRIDE;
56
57private:
58
59 Handle(BRepTools_History) myHistory; //!< Tool for tracking History of shape's modification
60};
61
62DEFINE_STANDARD_HANDLE(BRepTest_DrawableHistory, Draw_Drawable3D)
63
64#endif