Tree view contains Dimension and Annotation text items:
More...
#include <GEOMGUI_TextTreeWdg.h>
|
class | VisualProperty |
| Common interface for working with shape dimension and annotation properties of object in a unified way irrespectively of the implementation. More...
|
|
|
| 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 |
|
QTreeWidgetItem * | itemFromEntry (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 () |
|
- text visibility in OCC viewer
- text object name
◆ BranchType
Enumerator |
---|
DimensionShape | |
AnnotationShape | |
◆ GEOMGUI_TextTreeWdg()
GEOMGUI_TextTreeWdg::GEOMGUI_TextTreeWdg |
( |
SalomeApp_Application * |
app | ) |
|
References createActions(), myAnnotationsItem, myDimensionsItem, myDisplayer, myInvisibleIcon, myStudy, myVisibleIcon, myWindowID, onItemClicked(), onUpdateVisibilityColumn(), showContextMenu(), updateAnnotationBranch(), updateDimensionBranch(), updateObjectName(), and updateTree().
◆ ~GEOMGUI_TextTreeWdg()
GEOMGUI_TextTreeWdg::~GEOMGUI_TextTreeWdg |
( |
| ) |
|
◆ branchTypeFromItem()
◆ createActions()
void GEOMGUI_TextTreeWdg::createActions |
( |
| ) |
|
|
protected |
◆ entryFromItem()
QString GEOMGUI_TextTreeWdg::entryFromItem |
( |
QTreeWidgetItem * |
theShapeItem | ) |
const |
◆ fillBranch()
void GEOMGUI_TextTreeWdg::fillBranch |
( |
const BranchType & |
theBranchType, |
|
|
const QString & |
theEntry |
|
) |
| |
|
private |
◆ getAllEntries()
QList< QString > GEOMGUI_TextTreeWdg::getAllEntries |
( |
const BranchType & |
theBranchType | ) |
|
◆ getObjects()
◆ getPropertyRootItem()
◆ getSelected()
void GEOMGUI_TextTreeWdg::getSelected |
( |
QMap< QString, QList< int > > & |
theAnnotations | ) |
|
◆ getSingleSelectedObject()
QString GEOMGUI_TextTreeWdg::getSingleSelectedObject |
( |
| ) |
|
◆ getVisualProperty()
◆ getWinID()
int GEOMGUI_TextTreeWdg::getWinID |
( |
| ) |
|
|
inline |
◆ idFromItem()
◆ itemFromEntry()
◆ onItemClicked
void GEOMGUI_TextTreeWdg::onItemClicked |
( |
QTreeWidgetItem * |
theItem, |
|
|
int |
theColumn |
|
) |
| |
|
privateslot |
References branchTypeFromItem(), GEOMGUI_AnnotationMgr::Display(), entryFromItem(), GEOMGUI_AnnotationMgr::Erase(), GeometryGUI::GetAnnotationMgr(), getVisualProperty(), idFromItem(), myInvisibleIcon, myStudy, myVisibleIcon, and redisplay().
◆ onUpdateVisibilityColumn
void GEOMGUI_TextTreeWdg::onUpdateVisibilityColumn |
( |
QString |
theEntry, |
|
|
Qtx::VisibilityState |
theState |
|
) |
| |
|
privateslot |
◆ redisplay()
void GEOMGUI_TextTreeWdg::redisplay |
( |
QString |
theEntry | ) |
|
|
protected |
◆ removeBranch()
void GEOMGUI_TextTreeWdg::removeBranch |
( |
const BranchType & |
theBranchType, |
|
|
const QString & |
theEntry, |
|
|
bool |
force = true |
|
) |
| |
◆ setAllShapeItemsVisibility()
void GEOMGUI_TextTreeWdg::setAllShapeItemsVisibility |
( |
const BranchType & |
theBranchType, |
|
|
const QString & |
theEntry, |
|
|
const bool |
theVisibility |
|
) |
| |
◆ setSelected()
void GEOMGUI_TextTreeWdg::setSelected |
( |
const QMap< QString, QList< int > > & |
theAnnotations | ) |
|
◆ setShapeItemVisibility() [1/2]
void GEOMGUI_TextTreeWdg::setShapeItemVisibility |
( |
const BranchType & |
theBranchType, |
|
|
const QString & |
theEntry, |
|
|
QTreeWidgetItem * |
theWidgetItem, |
|
|
const bool |
theVisibility |
|
) |
| |
◆ setShapeItemVisibility() [2/2]
bool GEOMGUI_TextTreeWdg::setShapeItemVisibility |
( |
QSharedPointer< VisualProperty > & |
theProps, |
|
|
QTreeWidgetItem * |
theWidgetItem, |
|
|
const bool |
theVisibility |
|
) |
| |
|
private |
◆ setVisibility
void GEOMGUI_TextTreeWdg::setVisibility |
( |
QTreeWidgetItem * |
theItem, |
|
|
bool |
visibility |
|
) |
| |
|
privateslot |
◆ showContextMenu
void GEOMGUI_TextTreeWdg::showContextMenu |
( |
const QPoint & |
pos | ) |
|
|
privateslot |
References AnnotationShape, branchTypeFromItem(), entryFromItem(), getObjects(), getPropertyRootItem(), getVisualProperty(), idFromItem(), myActions, myStudy, GEOMOp::OpDeleteAnnotation, GEOMOp::OpEditAnnotation, GEOMOp::OpHide, GEOMOp::OpHideAllAnnotations, GEOMOp::OpShow, GEOMOp::OpShowAllAnnotations, and setVisibility().
◆ updateAnnotationBranch
void GEOMGUI_TextTreeWdg::updateAnnotationBranch |
( |
const QString & |
theEntry | ) |
|
|
slot |
◆ updateBranches
void GEOMGUI_TextTreeWdg::updateBranches |
( |
const QString & |
theEntry | ) |
|
|
slot |
◆ updateDimensionBranch
void GEOMGUI_TextTreeWdg::updateDimensionBranch |
( |
const QString & |
theEntry | ) |
|
|
slot |
◆ updateObjectName
void GEOMGUI_TextTreeWdg::updateObjectName |
( |
const QString & |
theEntry | ) |
|
|
slot |
◆ updateTree
void GEOMGUI_TextTreeWdg::updateTree |
( |
| ) |
|
|
slot |
◆ updateVisibility()
void GEOMGUI_TextTreeWdg::updateVisibility |
( |
| ) |
|
◆ updateVisibilityColumn()
void GEOMGUI_TextTreeWdg::updateVisibilityColumn |
( |
const BranchType & |
theBranchType, |
|
|
QString |
theEntry, |
|
|
Qtx::VisibilityState |
theState |
|
) |
| |
|
private |
◆ myActions
QMap<int, QAction*> GEOMGUI_TextTreeWdg::myActions |
|
private |
◆ myAnnotationObjects
◆ myAnnotationsItem
◆ myDimensionObjects
◆ myDimensionsItem
◆ myDisplayer
◆ myInvisibleIcon
QIcon GEOMGUI_TextTreeWdg::myInvisibleIcon |
|
private |
◆ myStudy
SalomeApp_Study* GEOMGUI_TextTreeWdg::myStudy |
|
private |
◆ myVisibleIcon
QIcon GEOMGUI_TextTreeWdg::myVisibleIcon |
|
private |
◆ myWindowID
int GEOMGUI_TextTreeWdg::myWindowID |
|
private |
The documentation for this class was generated from the following files: