Salome HOME
updated copyright message
[modules/gui.git] / src / OCCViewer / OCCViewer_Trihedron.h
1 // Copyright (C) 2007-2023  CEA, EDF, OPEN CASCADE
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #ifndef OCCVIEWER_TRIHEDRON_H
21 #define OCCVIEWER_TRIHEDRON_H
22
23 #include "OCCViewer.h"
24
25 #include <AIS_InteractiveObject.hxx>
26 #include <Graphic3d_BndBox4f.hxx>
27 #include <Standard_DefineHandle.hxx>
28
29 /*!
30  * \class OCCViewer_Trihedron
31  * The class for the presentation of the UserDraw object. 
32 */
33 class OCCViewer_Trihedron : public AIS_InteractiveObject
34 {
35 public:
36   OCCViewer_Trihedron( const PrsMgr_TypeOfPresentation3d = PrsMgr_TOP_AllView );
37   virtual ~OCCViewer_Trihedron();
38
39   virtual void           Compute( const Handle(PrsMgr_PresentationManager3d)&,
40                                   const Handle(Prs3d_Presentation)&,
41                                   const Standard_Integer );
42
43   virtual void           ComputeSelection( const Handle( SelectMgr_Selection )&,
44                                            const Standard_Integer );
45
46   virtual void           bounds( Graphic3d_BndBox4f& ) const;
47
48   virtual void           display();
49
50   DEFINE_STANDARD_RTTIEXT(OCCViewer_Trihedron, AIS_InteractiveObject)
51
52 private:
53   unsigned int           myTextList;
54 };
55
56 DEFINE_STANDARD_HANDLE(OCCViewer_Trihedron, AIS_InteractiveObject)
57
58 #endif // OCCVIEWER_TRIHEDRON_H