Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
GEOMGUI_AnnotationMgr Class Reference

A help class to process visualizatin of annotation presentations. It contains a map of presentations shown in each viewer. and correct 2D position persistent properties of annotations of active viewer. When the viewer is closed, information about the viewer is removed from the manager.

#include <GEOMGUI_AnnotationMgr.h>

Inheritance diagram for GEOMGUI_AnnotationMgr:
Inheritance graph

Public Member Functions

 GEOMGUI_AnnotationMgr (SalomeApp_Application *theApplication)
 
 ~GEOMGUI_AnnotationMgr ()
 
SALOME_Prs * CreatePresentation (const GEOMGUI_AnnotationAttrs::Properties &theProperty, GEOM::GEOM_Object_ptr theObject, SOCC_Viewer *theView=0, const QString &theEntry=QString())
 
bool IsDisplayed (const QString &theEntry, const int theIndex, SOCC_Viewer *theView=0) const
 
void Display (const QString &theEntry, const int theIndex, SOCC_Viewer *theView=0, const bool isStoreViewState=true, const bool isUpdateViewer=true)
 
void Erase (const QString &theEntry, const int theIndex, SOCC_Viewer *theView=0, const bool isUpdateViewer=true)
 
void EraseRemovedAnnotation (const QString &theEntry, const int theIndex)
 
void Redisplay (const QString &theEntry, const int theIndex, const GEOMGUI_AnnotationAttrs::Properties &theProperties)
 
void Redisplay (const QString &theEntry, const int theIndex, const GEOMGUI_AnnotationAttrs::Properties &theProperties, SOCC_Viewer *theView)
 
void DisplayVisibleAnnotations (const QString &theEntry, SOCC_Viewer *theView=0, const bool isUpdateViewer=true)
 
void EraseVisibleAnnotations (const QString &theEntry, SOCC_Viewer *theView=0, const bool isUpdateViewer=true)
 
void UpdateVisibleAnnotations (const QString &theEntry, SOCC_Viewer *theView=0)
 
void DisplayAllAnnotations (SOCC_Viewer *theView=0)
 
void EraseAllAnnotations (SOCC_Viewer *theView=0)
 
void SetPreviewStyle (const QString &theEntry, const int theIndex, const bool theIsPreview)
 
void RemoveView (SOCC_Viewer *theView)
 
int FindAnnotationIndex (Handle(SALOME_InteractiveObject) theIO, SOCC_Viewer *theView=0)
 
 Handle (SALOME_InteractiveObject) FindInteractiveObject(const QString &theEntry
 
QString getDisplayedIndicesInfo (const QString &theEntry, SOCC_Viewer *theView) const
 
void setDisplayedIndicesInfo (const QString &theEntry, SOCC_Viewer *theView, const QString theIndicesInfo)
 
QString makeAnnotationEntry (const QString &theEntry, const int theIndex)
 
void storeFixedPosition (const QString &theEntry, SOCC_Viewer *theView)
 
bool getIndexFromEntry (const QString &theEntry, QString &theObjEntry, int &theIndex)
 
bool isAnnotationEntry (const QString &theEntry)
 

Static Public Member Functions

static QString GetEntrySeparator ()
 

Public Attributes

const int theIndex
 
const int SOCC_Viewer * theView = 0 ) const
 

Protected Member Functions

SalomeApp_Application * getApplication () const
 
GEOM_DisplayergetDisplayer () const
 
SOCC_Viewer * viewOrActiveView (SOCC_Viewer *theView) const
 
void getObject (const QString &theEntry, const int theIndex, GEOM::GEOM_Object_ptr &anObject, GEOMGUI_AnnotationAttrs::Properties &aProperty)
 
void storeVisibleState (const QString &theEntry, SOCC_Viewer *theView)
 
std::string getEntry (const GEOM::GEOM_Object_ptr theObject)
 
std::string getName (const GEOM::GEOM_Object_ptr theObject)
 
void setDisplayProperties (const Handle(GEOM_Annotation)&thePrs, SOCC_Viewer *theView=0, const QString &theEntry=QString())
 
 Handle (GEOM_Annotation) getAISPresentation(const QString &theEntry
 

Private Types

typedef QMap< int, SALOME_Prs * > AnnotationToPrs
 
typedef QMap< QString,
AnnotationToPrs
EntryToAnnotations
 

Private Attributes

SalomeApp_Application * myApplication
 
QMap< SOCC_Viewer
*, EntryToAnnotations
myVisualized
 

Member Typedef Documentation

typedef QMap<int, SALOME_Prs*> GEOMGUI_AnnotationMgr::AnnotationToPrs
private

Constructor & Destructor Documentation

GEOMGUI_AnnotationMgr::GEOMGUI_AnnotationMgr ( SalomeApp_Application *  theApplication)
GEOMGUI_AnnotationMgr::~GEOMGUI_AnnotationMgr ( )
inline

Member Function Documentation

void GEOMGUI_AnnotationMgr::Display ( const QString &  theEntry,
const int  theIndex,
SOCC_Viewer *  theView = 0,
const bool  isStoreViewState = true,
const bool  isUpdateViewer = true 
)
void GEOMGUI_AnnotationMgr::DisplayVisibleAnnotations ( const QString &  theEntry,
SOCC_Viewer *  theView = 0,
const bool  isUpdateViewer = true 
)

References Display(), getApplication(), and Handle().

void GEOMGUI_AnnotationMgr::Erase ( const QString &  theEntry,
const int  theIndex,
SOCC_Viewer *  theView = 0,
const bool  isUpdateViewer = true 
)
void GEOMGUI_AnnotationMgr::EraseRemovedAnnotation ( const QString &  theEntry,
const int  theIndex 
)
void GEOMGUI_AnnotationMgr::EraseVisibleAnnotations ( const QString &  theEntry,
SOCC_Viewer *  theView = 0,
const bool  isUpdateViewer = true 
)
int GEOMGUI_AnnotationMgr::FindAnnotationIndex ( Handle(SALOME_InteractiveObject theIO,
SOCC_Viewer *  theView = 0 
)
SalomeApp_Application* GEOMGUI_AnnotationMgr::getApplication ( ) const
inlineprotected
QString GEOMGUI_AnnotationMgr::getDisplayedIndicesInfo ( const QString &  theEntry,
SOCC_Viewer *  theView 
) const
GEOM_Displayer * GEOMGUI_AnnotationMgr::getDisplayer ( ) const
protected

References getApplication().

std::string GEOMGUI_AnnotationMgr::getEntry ( const GEOM::GEOM_Object_ptr  theObject)
protected
QString GEOMGUI_AnnotationMgr::GetEntrySeparator ( )
static
bool GEOMGUI_AnnotationMgr::getIndexFromEntry ( const QString &  theEntry,
QString &  theObjEntry,
int &  theIndex 
)

References GetEntrySeparator().

std::string GEOMGUI_AnnotationMgr::getName ( const GEOM::GEOM_Object_ptr  theObject)
protected
void GEOMGUI_AnnotationMgr::getObject ( const QString &  theEntry,
const int  theIndex,
GEOM::GEOM_Object_ptr &  anObject,
GEOMGUI_AnnotationAttrs::Properties aProperty 
)
protected
GEOMGUI_AnnotationMgr::Handle ( SALOME_InteractiveObject  ) const
GEOMGUI_AnnotationMgr::Handle ( GEOM_Annotation  ) const
protected
bool GEOMGUI_AnnotationMgr::isAnnotationEntry ( const QString &  theEntry)
inline
bool GEOMGUI_AnnotationMgr::IsDisplayed ( const QString &  theEntry,
const int  theIndex,
SOCC_Viewer *  theView = 0 
) const
QString GEOMGUI_AnnotationMgr::makeAnnotationEntry ( const QString &  theEntry,
const int  theIndex 
)

References GetEntrySeparator().

void GEOMGUI_AnnotationMgr::Redisplay ( const QString &  theEntry,
const int  theIndex,
const GEOMGUI_AnnotationAttrs::Properties theProperties 
)

References aView, and it().

void GEOMGUI_AnnotationMgr::Redisplay ( const QString &  theEntry,
const int  theIndex,
const GEOMGUI_AnnotationAttrs::Properties theProperties,
SOCC_Viewer *  theView 
)
void GEOMGUI_AnnotationMgr::RemoveView ( SOCC_Viewer *  theView)

References myVisualized.

void GEOMGUI_AnnotationMgr::setDisplayedIndicesInfo ( const QString &  theEntry,
SOCC_Viewer *  theView,
const QString  theIndicesInfo 
)

References anIndices, and Display().

void GEOMGUI_AnnotationMgr::SetPreviewStyle ( const QString &  theEntry,
const int  theIndex,
const bool  theIsPreview 
)
void GEOMGUI_AnnotationMgr::storeFixedPosition ( const QString &  theEntry,
SOCC_Viewer *  theView 
)
void GEOMGUI_AnnotationMgr::storeVisibleState ( const QString &  theEntry,
SOCC_Viewer *  theView 
)
protected
SOCC_Viewer * GEOMGUI_AnnotationMgr::viewOrActiveView ( SOCC_Viewer *  theView) const
protected

References aView, getApplication(), and theView.

Member Data Documentation

SalomeApp_Application* GEOMGUI_AnnotationMgr::myApplication
private
QMap<SOCC_Viewer*, EntryToAnnotations> GEOMGUI_AnnotationMgr::myVisualized
private
const int GEOMGUI_AnnotationMgr::theIndex
const int SOCC_Viewer * GEOMGUI_AnnotationMgr::theView = 0 ) const

The documentation for this class was generated from the following files: