Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef LIGHTAPP_DISPLAYER_HEADER
00024 #define LIGHTAPP_DISPLAYER_HEADER
00025
00026 #include "LightApp.h"
00027
00028 #include <SALOME_Prs.h>
00029
00030 #include <Qtx.h>
00031
00032 class QString;
00033
00039 class LIGHTAPP_EXPORT LightApp_Displayer : public SALOME_Displayer
00040 {
00041 public:
00042 LightApp_Displayer();
00043 virtual ~LightApp_Displayer();
00044
00045 void Display( const QString&, const bool = true, SALOME_View* = 0 );
00046 void Display( const QStringList&, const bool = true,
00047 SALOME_View* = 0 );
00048
00049 void Redisplay( const QString&, const bool = true );
00050
00051 void Erase( const QStringList&, const bool forced = false,
00052 const bool updateViewer = true, SALOME_View* = 0);
00053 void Erase( const QString&, const bool forced = false, const bool updateViewer = true, SALOME_View* = 0 );
00054 void EraseAll( const bool forced = false, const bool updateViewer = true, SALOME_View* = 0 ) const;
00055
00056 virtual bool IsDisplayed( const QString&, SALOME_View* = 0 ) const;
00057 void UpdateViewer() const;
00058
00059 static SALOME_View* GetActiveView();
00060 static LightApp_Displayer* FindDisplayer( const QString&, const bool );
00061
00062 virtual bool canBeDisplayed( const QString& , const QString& ) const;
00063 bool canBeDisplayed( const QString& ) const;
00064
00065 void setVisibilityState (const QString& entry, Qtx::VisibilityState) const;
00066
00067 protected:
00068 virtual SALOME_Prs* buildPresentation( const QString&, SALOME_View* = 0 );
00069 protected:
00070 QString myLastEntry;
00071 };
00072
00073 #endif