1 // Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef OCCVIEWER_TRIHEDRON_H
21 #define OCCVIEWER_TRIHEDRON_H
23 #include "OCCViewer.h"
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>
30 #include <Graphic3d_CBounds.hxx>
32 #include <Standard_DefineHandle.hxx>
35 * \class OCCViewer_Trihedron
36 * The class for the presentation of the UserDraw object.
38 class OCCViewer_Trihedron : public AIS_InteractiveObject
41 OCCViewer_Trihedron( const PrsMgr_TypeOfPresentation3d = PrsMgr_TOP_AllView );
42 virtual ~OCCViewer_Trihedron();
44 virtual void Compute( const Handle(PrsMgr_PresentationManager3d)&,
45 const Handle(Prs3d_Presentation)&,
46 const Standard_Integer );
48 virtual void ComputeSelection( const Handle( SelectMgr_Selection )&,
49 const Standard_Integer );
51 #if OCC_VERSION_LARGE > 0x06070100
52 virtual void bounds( Graphic3d_BndBox4f& ) const;
54 virtual void bounds( Graphic3d_CBounds& ) const;
57 virtual void display();
59 OCCT_DEFINE_STANDARD_RTTIEXT(OCCViewer_Trihedron,AIS_InteractiveObject)
62 unsigned int myTextList;
65 DEFINE_STANDARD_HANDLE( OCCViewer_Trihedron, AIS_InteractiveObject )