00001 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE 00002 // 00003 // This library is free software; you can redistribute it and/or 00004 // modify it under the terms of the GNU Lesser General Public 00005 // License as published by the Free Software Foundation; either 00006 // version 2.1 of the License. 00007 // 00008 // This library is distributed in the hope that it will be useful, 00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 // Lesser General Public License for more details. 00012 // 00013 // You should have received a copy of the GNU Lesser General Public 00014 // License along with this library; if not, write to the Free Software 00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00016 // 00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com 00018 // 00019 00020 #ifndef OCCVIEWER_TRIHEDRON_H 00021 #define OCCVIEWER_TRIHEDRON_H 00022 00023 #include "OCCViewer.h" 00024 00025 #include <AIS_InteractiveObject.hxx> 00026 #include <Graphic3d_CBounds.hxx> 00027 #include <Standard_DefineHandle.hxx> 00028 00033 class OCCViewer_Trihedron : public AIS_InteractiveObject 00034 { 00035 public: 00036 OCCViewer_Trihedron( const PrsMgr_TypeOfPresentation3d = PrsMgr_TOP_AllView ); 00037 virtual ~OCCViewer_Trihedron(); 00038 00039 virtual void Compute( const Handle(PrsMgr_PresentationManager3d)&, 00040 const Handle(Prs3d_Presentation)&, 00041 const Standard_Integer ); 00042 00043 virtual void ComputeSelection( const Handle( SelectMgr_Selection )&, 00044 const Standard_Integer ); 00045 00046 virtual void bounds( Graphic3d_CBounds& ) const; 00047 00048 virtual void display(); 00049 00050 DEFINE_STANDARD_RTTI( OCCViewer_Trihedron ) 00051 00052 private: 00053 unsigned int myTextList; 00054 }; 00055 00056 DEFINE_STANDARD_HANDLE( OCCViewer_Trihedron, AIS_InteractiveObject ) 00057 00058 #endif