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

Tree view contains Dimension and Annotation text items: More...

#include <GEOMGUI_TextTreeWdg.h>

Inheritance diagram for GEOMGUI_TextTreeWdg:
Inheritance graph

Classes

class  VisualProperty
 Common interface for working with shape dimension and annotation properties of object in a unified way irrespectively of the implementation. More...
 

Public Types

enum  BranchType { DimensionShape, AnnotationShape }
 

Public Slots

void updateTree ()
 
void updateBranches (const QString &theEntry)
 
void updateDimensionBranch (const QString &theEntry)
 
void updateAnnotationBranch (const QString &theEntry)
 
void updateObjectName (const QString &theEntry)
 

Public Member Functions

 GEOMGUI_TextTreeWdg (SalomeApp_Application *app)
 
 ~GEOMGUI_TextTreeWdg ()
 
int getWinID ()
 
void removeBranch (const BranchType &theBranchType, const QString &theEntry, bool force=true)
 
int idFromItem (QTreeWidgetItem *theItem)
 
QString entryFromItem (QTreeWidgetItem *theShapeItem) const
 
QTreeWidgetItemitemFromEntry (const BranchType &theBranchType, QString theEntry)
 
void setAllShapeItemsVisibility (const BranchType &theBranchType, const QString &theEntry, const bool theVisibility)
 
void setShapeItemVisibility (const BranchType &theBranchType, const QString &theEntry, QTreeWidgetItem *theWidgetItem, const bool theVisibility)
 
void updateVisibility ()
 
void getSelected (QMap< QString, QList< int > > &theAnnotations)
 
void setSelected (const QMap< QString, QList< int > > &theAnnotations)
 
QList< QString > getAllEntries (const BranchType &theBranchType)
 
QString getSingleSelectedObject ()
 

Protected Member Functions

void createActions ()
 
void redisplay (QString theEntry)
 

Private Slots

void onUpdateVisibilityColumn (QString theEntry, Qtx::VisibilityState theState)
 
void onItemClicked (QTreeWidgetItem *, int)
 
void setVisibility (QTreeWidgetItem *theItem, bool visibility)
 
void showContextMenu (const QPoint &pos)
 

Private Member Functions

bool setShapeItemVisibility (QSharedPointer< VisualProperty > &theProps, QTreeWidgetItem *theWidgetItem, const bool theVisibility)
 
QSharedPointer< VisualPropertygetVisualProperty (const BranchType &theBranchType, SalomeApp_Study *theStudy, const std::string &theEntry)
 
void fillBranch (const BranchType &theBranchType, const QString &theEntry)
 
void updateVisibilityColumn (const BranchType &theBranchType, QString theEntry, Qtx::VisibilityState theState)
 
QTreeWidgetItemgetPropertyRootItem (const BranchType &theBranchType)
 
QHash< QString,
QTreeWidgetItem * > & 
getObjects (const BranchType &theBranchType)
 
BranchType branchTypeFromItem (QTreeWidgetItem *theItem)
 

Private Attributes

int myWindowID
 
QIcon myVisibleIcon
 
QIcon myInvisibleIcon
 
QHash< QString, QTreeWidgetItem * > myDimensionObjects
 
QHash< QString, QTreeWidgetItem * > myAnnotationObjects
 
SalomeApp_Study * myStudy
 
QTreeWidgetItemmyDimensionsItem
 
QTreeWidgetItemmyAnnotationsItem
 
GEOM_Displayer myDisplayer
 
QMap< int, QAction * > myActions
 menu actions list More...
 

Detailed Description

  • text visibility in OCC viewer
  • text object name

Member Enumeration Documentation

Enumerator
DimensionShape 
AnnotationShape 

Constructor & Destructor Documentation

GEOMGUI_TextTreeWdg::GEOMGUI_TextTreeWdg ( SalomeApp_Application *  app)
GEOMGUI_TextTreeWdg::~GEOMGUI_TextTreeWdg ( )

Member Function Documentation

GEOMGUI_TextTreeWdg::BranchType GEOMGUI_TextTreeWdg::branchTypeFromItem ( QTreeWidgetItem theItem)
private

References DimensionShape, and myDimensionsItem.

void GEOMGUI_TextTreeWdg::createActions ( )
protected

References GEOMOp::OpHide, and GEOMOp::OpShow.

QString GEOMGUI_TextTreeWdg::entryFromItem ( QTreeWidgetItem theShapeItem) const
void GEOMGUI_TextTreeWdg::fillBranch ( const BranchType theBranchType,
const QString &  theEntry 
)
private
QList< QString > GEOMGUI_TextTreeWdg::getAllEntries ( const BranchType theBranchType)

References getObjects().

QHash< QString, QTreeWidgetItem * > & GEOMGUI_TextTreeWdg::getObjects ( const BranchType theBranchType)
private

References myAnnotationObjects.

QTreeWidgetItem * GEOMGUI_TextTreeWdg::getPropertyRootItem ( const BranchType theBranchType)
private

References myAnnotationsItem.

void GEOMGUI_TextTreeWdg::getSelected ( QMap< QString, QList< int > > &  theAnnotations)
QString GEOMGUI_TextTreeWdg::getSingleSelectedObject ( )

References getObjects().

QSharedPointer< GEOMGUI_TextTreeWdg::VisualProperty > GEOMGUI_TextTreeWdg::getVisualProperty ( const BranchType theBranchType,
SalomeApp_Study *  theStudy,
const std::string &  theEntry 
)
private
int GEOMGUI_TextTreeWdg::getWinID ( )
inline
int GEOMGUI_TextTreeWdg::idFromItem ( QTreeWidgetItem theItem)
QTreeWidgetItem * GEOMGUI_TextTreeWdg::itemFromEntry ( const BranchType theBranchType,
QString  theEntry 
)

References getObjects().

void GEOMGUI_TextTreeWdg::onUpdateVisibilityColumn ( QString  theEntry,
Qtx::VisibilityState  theState 
)
privateslot
void GEOMGUI_TextTreeWdg::redisplay ( QString  theEntry)
protected

References Handle().

void GEOMGUI_TextTreeWdg::removeBranch ( const BranchType theBranchType,
const QString &  theEntry,
bool  force = true 
)
void GEOMGUI_TextTreeWdg::setAllShapeItemsVisibility ( const BranchType theBranchType,
const QString &  theEntry,
const bool  theVisibility 
)
void GEOMGUI_TextTreeWdg::setSelected ( const QMap< QString, QList< int > > &  theAnnotations)
void GEOMGUI_TextTreeWdg::setShapeItemVisibility ( const BranchType theBranchType,
const QString &  theEntry,
QTreeWidgetItem theWidgetItem,
const bool  theVisibility 
)

References getVisualProperty(), and redisplay().

bool GEOMGUI_TextTreeWdg::setShapeItemVisibility ( QSharedPointer< VisualProperty > &  theProps,
QTreeWidgetItem theWidgetItem,
const bool  theVisibility 
)
private

References idFromItem().

void GEOMGUI_TextTreeWdg::setVisibility ( QTreeWidgetItem theItem,
bool  visibility 
)
privateslot
void GEOMGUI_TextTreeWdg::updateAnnotationBranch ( const QString &  theEntry)
slot

References fillBranch().

void GEOMGUI_TextTreeWdg::updateBranches ( const QString &  theEntry)
slot
void GEOMGUI_TextTreeWdg::updateDimensionBranch ( const QString &  theEntry)
slot

References fillBranch().

void GEOMGUI_TextTreeWdg::updateObjectName ( const QString &  theEntry)
slot

References getObjects().

void GEOMGUI_TextTreeWdg::updateTree ( )
slot
void GEOMGUI_TextTreeWdg::updateVisibility ( )
void GEOMGUI_TextTreeWdg::updateVisibilityColumn ( const BranchType theBranchType,
QString  theEntry,
Qtx::VisibilityState  theState 
)
private

Member Data Documentation

QMap<int, QAction*> GEOMGUI_TextTreeWdg::myActions
private
QHash<QString, QTreeWidgetItem*> GEOMGUI_TextTreeWdg::myAnnotationObjects
private
QTreeWidgetItem* GEOMGUI_TextTreeWdg::myAnnotationsItem
private
QHash<QString, QTreeWidgetItem*> GEOMGUI_TextTreeWdg::myDimensionObjects
private
QTreeWidgetItem* GEOMGUI_TextTreeWdg::myDimensionsItem
private
GEOM_Displayer GEOMGUI_TextTreeWdg::myDisplayer
private
QIcon GEOMGUI_TextTreeWdg::myInvisibleIcon
private
SalomeApp_Study* GEOMGUI_TextTreeWdg::myStudy
private
QIcon GEOMGUI_TextTreeWdg::myVisibleIcon
private
int GEOMGUI_TextTreeWdg::myWindowID
private

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