0030268: Inspectors - improvements in VInspector plugin
[occt.git] / tools / ShapeView / ShapeView_ItemBase.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 ShapeView_ItemBase_H
17 #define ShapeView_ItemBase_H
18
19 #include <Standard.hxx>
20 #include <TopoDS_Shape.hxx>
21 #include <inspector/TreeModel_ItemBase.hxx>
22
23 class ShapeView_ItemBase;
24 typedef QExplicitlySharedDataPointer<ShapeView_ItemBase> ShapeView_ItemBasePtr;
25
26 //! \class ShapeView_ItemBase
27 // \brief Declaration of the tree model base item.
28 class ShapeView_ItemBase : public TreeModel_ItemBase
29 {
30 public:
31
32   //! Resets cached values
33   virtual void Reset() Standard_OVERRIDE { TreeModel_ItemBase::Reset(); }
34
35 protected:
36
37   //! Initialize the current item. It creates a backup of the specific item information
38   virtual void initItem() const {};
39
40   //! Constructor
41   //! param theParent a parent item
42   //! \param theRow the item row positition in the parent item
43   //! \param theColumn the item column positition in the parent item
44   ShapeView_ItemBase(TreeModel_ItemBasePtr theParent, const int theRow, const int theColumn)
45   : TreeModel_ItemBase (theParent, theRow, theColumn) {}
46 };
47
48 #endif