Version: 9.12.0
GEOMGUI_AnnotationMgr Class Reference

A help class to process visualization 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, AnnotationToPrsEntryToAnnotations
 

Private Attributes

SalomeApp_Application * myApplication
 
QMap< SOCC_Viewer *, EntryToAnnotationsmyVisualized
 

Member Typedef Documentation

◆ AnnotationToPrs

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

◆ EntryToAnnotations

Constructor & Destructor Documentation

◆ GEOMGUI_AnnotationMgr()

GEOMGUI_AnnotationMgr::GEOMGUI_AnnotationMgr ( SalomeApp_Application *  theApplication)

◆ ~GEOMGUI_AnnotationMgr()

GEOMGUI_AnnotationMgr::~GEOMGUI_AnnotationMgr ( )
inline

Member Function Documentation

◆ CreatePresentation()

◆ Display()

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

◆ DisplayAllAnnotations()

◆ DisplayVisibleAnnotations()

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

◆ Erase()

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

◆ EraseAllAnnotations()

◆ EraseRemovedAnnotation()

void GEOMGUI_AnnotationMgr::EraseRemovedAnnotation ( const QString &  theEntry,
const int  theIndex 
)

◆ EraseVisibleAnnotations()

void GEOMGUI_AnnotationMgr::EraseVisibleAnnotations ( const QString &  theEntry,
SOCC_Viewer *  theView = 0,
const bool  isUpdateViewer = true 
)

◆ FindAnnotationIndex()

int GEOMGUI_AnnotationMgr::FindAnnotationIndex ( Handle(SALOME_InteractiveObject theIO,
SOCC_Viewer *  theView = 0 
)

◆ getApplication()

SalomeApp_Application* GEOMGUI_AnnotationMgr::getApplication ( ) const
inlineprotected

◆ getDisplayedIndicesInfo()

QString GEOMGUI_AnnotationMgr::getDisplayedIndicesInfo ( const QString &  theEntry,
SOCC_Viewer *  theView 
) const

◆ getDisplayer()

GEOM_Displayer * GEOMGUI_AnnotationMgr::getDisplayer ( ) const
protected

References getApplication().

◆ getEntry()

std::string GEOMGUI_AnnotationMgr::getEntry ( const GEOM::GEOM_Object_ptr  theObject)
protected

◆ GetEntrySeparator()

QString GEOMGUI_AnnotationMgr::GetEntrySeparator ( )
static

◆ getIndexFromEntry()

bool GEOMGUI_AnnotationMgr::getIndexFromEntry ( const QString &  theEntry,
QString &  theObjEntry,
int &  theIndex 
)

References GetEntrySeparator(), and theIndex.

◆ getName()

std::string GEOMGUI_AnnotationMgr::getName ( const GEOM::GEOM_Object_ptr  theObject)
protected

◆ getObject()

void GEOMGUI_AnnotationMgr::getObject ( const QString &  theEntry,
const int  theIndex,
GEOM::GEOM_Object_ptr &  anObject,
GEOMGUI_AnnotationAttrs::Properties aProperty 
)
protected

◆ Handle() [1/2]

GEOMGUI_AnnotationMgr::Handle ( GEOM_Annotation  ) const &
protected

◆ Handle() [2/2]

GEOMGUI_AnnotationMgr::Handle ( SALOME_InteractiveObject  ) const &

◆ isAnnotationEntry()

bool GEOMGUI_AnnotationMgr::isAnnotationEntry ( const QString &  theEntry)
inline

◆ IsDisplayed()

bool GEOMGUI_AnnotationMgr::IsDisplayed ( const QString &  theEntry,
const int  theIndex,
SOCC_Viewer *  theView = 0 
) const

◆ makeAnnotationEntry()

QString GEOMGUI_AnnotationMgr::makeAnnotationEntry ( const QString &  theEntry,
const int  theIndex 
)

References GetEntrySeparator(), and theIndex.

◆ Redisplay() [1/2]

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

References theIndex.

◆ Redisplay() [2/2]

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

◆ RemoveView()

void GEOMGUI_AnnotationMgr::RemoveView ( SOCC_Viewer *  theView)

References myVisualized, and theView.

◆ setDisplayedIndicesInfo()

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

References Display(), and theView.

◆ setDisplayProperties()

◆ SetPreviewStyle()

void GEOMGUI_AnnotationMgr::SetPreviewStyle ( const QString &  theEntry,
const int  theIndex,
const bool  theIsPreview 
)

◆ storeFixedPosition()

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

◆ storeVisibleState()

void GEOMGUI_AnnotationMgr::storeVisibleState ( const QString &  theEntry,
SOCC_Viewer *  theView 
)
protected

◆ UpdateVisibleAnnotations()

◆ viewOrActiveView()

SOCC_Viewer * GEOMGUI_AnnotationMgr::viewOrActiveView ( SOCC_Viewer *  theView) const
protected

References getApplication(), and theView.

Member Data Documentation

◆ myApplication

SalomeApp_Application* GEOMGUI_AnnotationMgr::myApplication
private

◆ myVisualized

QMap<SOCC_Viewer*, EntryToAnnotations> GEOMGUI_AnnotationMgr::myVisualized
private

◆ theIndex

const int GEOMGUI_AnnotationMgr::theIndex

◆ theView

const int SOCC_Viewer * GEOMGUI_AnnotationMgr::theView = 0 ) const

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