0029695: Shape Healing - infinite loop in ShapeFix_IntersectionTool
[occt.git] / tools / VInspector / VInspector_ItemHistoryTypeInfo.hxx
1 // Created on: 2017-06-16
2 // Created by: Natalia ERMOLAEVA
3 // Copyright (c) 2017 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 VInspector_ItemHistoryTypeInfo_H
17 #define VInspector_ItemHistoryTypeInfo_H
18
19 #include <inspector/VInspector_CallBackMode.hxx>
20
21 //! \class VInspector_ItemHistoryTypeInfo
22 //! History info for a type item. It contains container of information for the element
23 struct VInspector_ItemHistoryTypeInfo
24 {
25
26   //! Constructor
27   VInspector_ItemHistoryTypeInfo() : myMode(VInspector_CallBackMode_None) {}
28
29   //! Destructor
30   VInspector_ItemHistoryTypeInfo (const VInspector_CallBackMode& theMode, const QList<QVariant>& theInfo)
31     : myMode(theMode) { AddElement(theInfo); }
32
33   //! Append new element
34   //! \param theInfo an information element
35   void AddElement (const QList<QVariant>& theInfo) { myElements.append (theInfo); }
36
37   VInspector_CallBackMode myMode; //!< history element mode
38   QList<QList<QVariant>> myElements; //!< container of elements information
39 };
40
41 #endif