Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
OCCViewer_Trihedron.h
Go to the documentation of this file.
1 // Copyright (C) 2007-2016 CEA/DEN, EDF R&D, 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 <Basics_OCCTVersion.hxx>
27 #if OCC_VERSION_LARGE > 0x06070100 // for OCC-6.7.2 and higher version
28  #include <Graphic3d_BndBox4f.hxx>
29 #else
30  #include <Graphic3d_CBounds.hxx>
31 #endif
32 #include <Standard_DefineHandle.hxx>
33 
39 {
40 public:
41  OCCViewer_Trihedron( const PrsMgr_TypeOfPresentation3d = PrsMgr_TOP_AllView );
42  virtual ~OCCViewer_Trihedron();
43 
44  virtual void Compute( const Handle(PrsMgr_PresentationManager3d)&,
45  const Handle(Prs3d_Presentation)&,
46  const Standard_Integer );
47 
48  virtual void ComputeSelection( const Handle( SelectMgr_Selection )&,
49  const Standard_Integer );
50 
51 #if OCC_VERSION_LARGE > 0x06070100
52  virtual void bounds( Graphic3d_BndBox4f& ) const;
53 #else
54  virtual void bounds( Graphic3d_CBounds& ) const;
55 #endif
56 
57  virtual void display();
58 
60 
61 private:
62  unsigned int myTextList;
63 };
64 
66 
67 #endif