14bbbdcb |
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 DFBrowserPaneXDE_XCAFDocShapeMapTool_H |
17 | #define DFBrowserPaneXDE_XCAFDocShapeMapTool_H |
18 | |
0cb512c0 |
19 | #include <inspector/DFBrowserPane_AttributePane.hxx> |
20 | #include <inspector/DFBrowserPane_HelperExport.hxx> |
14bbbdcb |
21 | #include <Standard.hxx> |
22 | #include <TDF_Attribute.hxx> |
23 | |
24 | class DFBrowserPane_TableView; |
25 | class QWidget; |
26 | |
27 | //! \class DFBrowserPaneXDE_ |
28 | //! \brief The class to manipulate of XCAFDoc_ShapeMapTool attribute |
29 | class DFBrowserPaneXDE_XCAFDocShapeMapTool : public DFBrowserPane_AttributePane |
30 | { |
31 | public: |
32 | //! Constructor |
33 | Standard_EXPORT DFBrowserPaneXDE_XCAFDocShapeMapTool(); |
34 | |
35 | //! Destructor |
36 | virtual ~DFBrowserPaneXDE_XCAFDocShapeMapTool() {} |
37 | |
38 | //! Creates table view and call create widget of array table helper |
39 | //! \param theParent a parent widget |
40 | //! \return a new widget |
41 | Standard_EXPORT virtual QWidget* CreateWidget (QWidget* theParent) Standard_OVERRIDE; |
42 | |
43 | //! Initializes the content of the pane by the parameter attribute |
44 | //! \param theAttribute an OCAF attribute |
45 | Standard_EXPORT virtual void Init (const Handle(TDF_Attribute)& theAttribute) Standard_OVERRIDE; |
46 | |
47 | //! Returns brief attribute information. In general case, it returns GetValues() result. |
48 | //! \param theAttribute a current attribute |
49 | //! \param theValues a result list of values |
50 | Standard_EXPORT virtual void GetShortAttributeInfo (const Handle(TDF_Attribute)& theAttribute, |
51 | QList<QVariant>& theValues) Standard_OVERRIDE; |
52 | |
53 | //! Returns values to fill the table view model |
54 | //! \param theAttribute a current attribute |
55 | //! \param theValues a container of values |
56 | Standard_EXPORT virtual void GetValues (const Handle(TDF_Attribute)& theAttribute, |
57 | QList<QVariant>& theValues) Standard_OVERRIDE; |
58 | |
59 | //! Returns presentation of the attribute to be visualized in the view |
60 | //! \param theAttribute a current attribute |
61 | //! \return handle of presentation if the attribute has, to be visualized |
62 | Standard_EXPORT virtual Handle(Standard_Transient) GetPresentation |
63 | (const Handle(TDF_Attribute)& theAttribute) Standard_OVERRIDE; |
64 | |
65 | private: |
66 | |
67 | DFBrowserPane_HelperExport myHelperExport; //!< processing of Export button click |
68 | }; |
69 | |
70 | #endif |