Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

exotkGUI_GUI.hxx

Go to the documentation of this file.
00001 
00002 //   exotkGUI_GUI.hxx
00004 //    Copyright (C) 2001  Stephane Routelous
00005 //
00006 //    This file is part of exoTK.
00007 //
00008 //    exoTK is free software; you can redistribute it and/or modify
00009 //    it under the terms of the GNU General Public License as published by
00010 //    the Free Software Foundation; either version 2 of the License, or
00011 //    (at your option) any later version.
00012 //
00013 //    exoTK is distributed in the hope that it will be useful,
00014 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 //    GNU General Public License for more details.
00017 //
00018 //    You should have received a copy of the GNU General Public License
00019 //    along with exoTK; if not, write to the Free Software
00020 //    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00022 
00028 #ifndef _exotkGUI_GUI_HeaderFile
00029 #define _exotkGUI_GUI_HeaderFile
00030 
00031 #if _MSC_VER > 1000
00032 #pragma once
00033 #endif // _MSC_VER > 1000
00034 
00035 #ifndef  _Standard_TypeDef_HeaderFile
00036 #include <Standard_TypeDef.hxx>
00037 #endif
00038 #ifndef  _MMgt_TShared_HeaderFile
00039 #include <MMgt_TShared.hxx>
00040 #endif
00041 #ifndef  _Handle_exotkGUI_GUI_HeaderFile
00042 #include <Handle_exotkGUI_GUI.hxx>
00043 #endif
00044 #ifndef  _TCollection_AsciiString_HeaderFile
00045 #include <TCollection_AsciiString.hxx>
00046 #endif
00047 
00048 class Handle_exotkTree_Menu;
00049 class Quantity_Color;
00050 class Graphic3d_MaterialAspect;
00056 class exotkGUI_GUI  : public MMgt_TShared   
00057 {
00058 public:
00059 
00067     inline void* operator new(size_t,void* anAddress) 
00068       {
00069         return anAddress;
00070       }
00071 
00078     inline void* operator new(size_t size) 
00079       { 
00080         return Standard::Allocate(size); 
00081       }
00082 
00089     inline void  operator delete(void *anAddress) 
00090       { 
00091         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
00092       }
00093 
00098         Standard_EXPORT virtual ~exotkGUI_GUI();
00099 
00100 
00106         Standard_EXPORT void SetPtr(void* anHandle);
00107 
00113         Standard_EXPORT void* Ptr();
00114 
00119         Standard_EXPORT void UnSetPtr();
00120 
00121 
00129         Standard_EXPORT virtual Standard_Boolean SelectColor(const Quantity_Color& aDefaultColor,Quantity_Color& aSelectedColor) = 0;
00130 
00131 
00139         Standard_EXPORT virtual Standard_Boolean SelectMaterial(const Graphic3d_MaterialAspect& aDefaultMaterial,Graphic3d_MaterialAspect& aSelectedMaterial) = 0;
00140 
00141 
00149         Standard_EXPORT virtual Standard_Boolean SelectTransparency(const Standard_Real aDefaultTransparency,Standard_Real& aTransparency) = 0;
00150 
00158         Standard_EXPORT virtual void ManagePopup(const Handle_exotkTree_Menu& aMenu,const Standard_Integer& aX,const Standard_Integer& aY) = 0;
00159 
00160 
00167         Standard_EXPORT virtual Standard_Boolean OpenDXFileDialog(TCollection_AsciiString& aFilename) =0;
00168 
00175         Standard_EXPORT virtual Standard_Boolean SaveDXFileDialog(TCollection_AsciiString& aFilename) =0;
00176 
00177 
00184         Standard_EXPORT virtual void SetProgressBoxRange(const Standard_Integer aBegin,const Standard_Integer anEnd);
00185 
00192         Standard_EXPORT virtual void ProgressBoxRange(Standard_Integer& aBegin,Standard_Integer& aEnd);
00193 
00199         Standard_EXPORT virtual void SetProgressBoxTitle(const TCollection_AsciiString& aTitle)=0;
00200 
00206         Standard_EXPORT virtual void SetProgressBoxText(const TCollection_AsciiString& aText)=0;
00207 
00213         Standard_EXPORT virtual TCollection_AsciiString ProgressBoxText();
00214 
00220         Standard_EXPORT virtual Standard_Integer ProgressBoxPosition() =0;
00221 
00228         Standard_EXPORT virtual Standard_Integer SetProgressBoxPosition(const Standard_Integer aPosition) =0;
00229 
00234         Standard_EXPORT virtual void HideProgressBox() =0;
00235 
00240         Standard_EXPORT virtual void ShowProgressBox() =0; 
00241 
00246         Standard_EXPORT virtual void HideWaitCursor() = 0;
00247 
00252         Standard_EXPORT virtual void ShowWaitCursor() = 0; 
00253 
00259         Standard_EXPORT friend Handle_Standard_Type& exotkGUI_GUI_Type_();
00260 
00266         Standard_EXPORT const Handle_Standard_Type& DynamicType() const;
00267 
00274         Standard_EXPORT Standard_Boolean  IsKind(const Handle_Standard_Type&) const;
00275 protected:
00276 
00281         Standard_EXPORT exotkGUI_GUI();
00282 
00284         void* myHandle;
00285 
00287         TCollection_AsciiString myProgressBoxTitle;
00289         TCollection_AsciiString myProgressBoxText;
00291         Standard_Integer myProgressBoxPosition;
00293         Standard_Integer myBeginRange;
00295         Standard_Integer myEndRange;
00296 
00297 };
00298 
00299 #endif 

Generated on Wed Jan 23 12:16:42 2002 for exotk by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001