Version: 9.12.0
DependencyTree_View Class Reference

#include <DependencyTree_View.h>

Inheritance diagram for DependencyTree_View:
Inheritance graph

Public Slots

void onRebuildModel ()
 

Public Member Functions

 DependencyTree_View (QWidget *=0)
 
 ~DependencyTree_View ()
 
void init (GraphicsView_ViewFrame *)
 
void updateModel (bool=true, bool=true)
 
void mouseMoveEvent (QMouseEvent *event)
 
void wheelEvent (QWheelEvent *event)
 
QString getViewName () const
 
DependencyTree_ObjectgetObjectByEntry (const std::string &)
 

Protected Member Functions

void resizeEvent (QResizeEvent *event)
 

Private Slots

void onUpdateModel ()
 
void onMoveNodes (bool)
 
void onHierarchyType ()
 
void onPreferenceChanged (const QString &, const QString &)
 
void onRenameObject (const QString &theEntry)
 

Private Member Functions

void parseTree ()
 
void parseTreeWard (const GEOMUtils::LevelsList &)
 
void parseTreeWardArrow (const GEOMUtils::LevelsList &)
 
void addNode (const std::string &)
 
void addArrow (DependencyTree_Object *, DependencyTree_Object *)
 
void drawTree ()
 
void drawWard (const GEOMUtils::LevelsList &, std::map< std::string, int > &, std::map< int, std::vector< std::string > > &, int, const int)
 
void drawWardArrows (const GEOMUtils::LevelsList &)
 
void updateView ()
 
void clearView (bool)
 
void fitWindow ()
 
int checkMaxLevelsNumber ()
 
void getNewTreeModel (bool=true, bool=true)
 
void setHierarchyType (const int)
 
void setNodesMovable (const bool)
 
void setPrefBackgroundColor (const QColor &)
 
void setNodeColor (const QColor &)
 
void setMainNodeColor (const QColor &)
 
void setUnpublishNodeColor (const QColor &)
 
void setSelectNodeColor (const QColor &)
 
void setArrowColor (const QColor &)
 
void setHighlightArrowColor (const QColor &)
 
void setSelectArrowColor (const QColor &)
 

Private Attributes

GEOMUtils::TreeModel myTreeModel
 
EntryObjectMap myTreeMap
 
ArrowsInfo myArrows
 
int myLevelsNumber
 
int myMaxDownwardLevelsNumber
 
int myMaxUpwardLevelsNumber
 
QCheckBox * myNodesMovable
 
QSpinBox * myHierarchyDepth
 
QCheckBox * myDisplayAscendants
 
QCheckBox * myDisplayDescendants
 
QPushButton * updateButton
 
LightApp_SelectionMgr * mySelectionMgr
 
GEOM::string_array_var myMainEntries
 
bool myIsUpdate
 

Constructor & Destructor Documentation

◆ DependencyTree_View()

DependencyTree_View::DependencyTree_View ( QWidget theParent = 0)

◆ ~DependencyTree_View()

DependencyTree_View::~DependencyTree_View ( )

References clearView().

Member Function Documentation

◆ addArrow()

◆ addNode()

void DependencyTree_View::addNode ( const std::string &  theEntry)
private

References myTreeMap.

◆ checkMaxLevelsNumber()

int DependencyTree_View::checkMaxLevelsNumber ( )
private

◆ clearView()

void DependencyTree_View::clearView ( bool  isClearModel)
private

◆ drawTree()

◆ drawWard()

void DependencyTree_View::drawWard ( const GEOMUtils::LevelsList theWard,
std::map< std::string, int > &  theEntryLevelMap,
std::map< int, std::vector< std::string > > &  theLevelObjects,
int  theCurrentLevel,
const int  theLevelStep 
)
private

References myLevelsNumber, and myTreeMap.

◆ drawWardArrows()

void DependencyTree_View::drawWardArrows ( const GEOMUtils::LevelsList theWard)
private

References myArrows, myLevelsNumber, and myTreeMap.

◆ fitWindow()

void DependencyTree_View::fitWindow ( )
private

◆ getNewTreeModel()

void DependencyTree_View::getNewTreeModel ( bool  theUseSelectedObject = true,
bool  theUseOB = true 
)
private

◆ getObjectByEntry()

DependencyTree_Object * DependencyTree_View::getObjectByEntry ( const std::string &  theEntry)

References myTreeMap.

◆ getViewName()

QString DependencyTree_View::getViewName ( ) const

◆ init()

◆ mouseMoveEvent()

void DependencyTree_View::mouseMoveEvent ( QMouseEvent *  event)

References myArrows.

◆ onHierarchyType

void DependencyTree_View::onHierarchyType ( )
privateslot

◆ onMoveNodes

void DependencyTree_View::onMoveNodes ( bool  theIsMoveNodes)
privateslot

References myTreeMap.

◆ onPreferenceChanged

void DependencyTree_View::onPreferenceChanged ( const QString &  section,
const QString &  param 
)
privateslot

◆ onRebuildModel

void DependencyTree_View::onRebuildModel ( )
slot

References updateModel().

◆ onRenameObject

void DependencyTree_View::onRenameObject ( const QString &  theEntry)
privateslot

References getObjectByEntry().

◆ onUpdateModel

void DependencyTree_View::onUpdateModel ( )
privateslot

References updateModel().

◆ parseTree()

◆ parseTreeWard()

void DependencyTree_View::parseTreeWard ( const GEOMUtils::LevelsList theWard)
private

References addNode().

◆ parseTreeWardArrow()

void DependencyTree_View::parseTreeWardArrow ( const GEOMUtils::LevelsList theWard)
private

References addArrow(), and myTreeMap.

◆ resizeEvent()

void DependencyTree_View::resizeEvent ( QResizeEvent *  event)
protected

◆ setArrowColor()

void DependencyTree_View::setArrowColor ( const QColor &  theColor)
private

◆ setHierarchyType()

void DependencyTree_View::setHierarchyType ( const int  theType)
private

◆ setHighlightArrowColor()

void DependencyTree_View::setHighlightArrowColor ( const QColor &  theColor)
private

◆ setMainNodeColor()

void DependencyTree_View::setMainNodeColor ( const QColor &  theColor)
private

References myTreeMap.

◆ setNodeColor()

void DependencyTree_View::setNodeColor ( const QColor &  theColor)
private

References myTreeMap.

◆ setNodesMovable()

void DependencyTree_View::setNodesMovable ( const bool  theIsMovable)
private

References myNodesMovable.

◆ setPrefBackgroundColor()

void DependencyTree_View::setPrefBackgroundColor ( const QColor &  theColor)
private

◆ setSelectArrowColor()

void DependencyTree_View::setSelectArrowColor ( const QColor &  theColor)
private

◆ setSelectNodeColor()

void DependencyTree_View::setSelectNodeColor ( const QColor &  theColor)
private

References myTreeMap.

◆ setUnpublishNodeColor()

void DependencyTree_View::setUnpublishNodeColor ( const QColor &  theColor)
private

References myTreeMap.

◆ updateModel()

void DependencyTree_View::updateModel ( bool  theUseSelectedObject = true,
bool  theUseOB = true 
)

◆ updateView()

void DependencyTree_View::updateView ( )
private

References drawTree(), fitWindow(), and myIsUpdate.

◆ wheelEvent()

void DependencyTree_View::wheelEvent ( QWheelEvent *  event)

Member Data Documentation

◆ myArrows

ArrowsInfo DependencyTree_View::myArrows
private

◆ myDisplayAscendants

QCheckBox* DependencyTree_View::myDisplayAscendants
private

◆ myDisplayDescendants

QCheckBox* DependencyTree_View::myDisplayDescendants
private

◆ myHierarchyDepth

QSpinBox* DependencyTree_View::myHierarchyDepth
private

◆ myIsUpdate

bool DependencyTree_View::myIsUpdate
private

◆ myLevelsNumber

int DependencyTree_View::myLevelsNumber
private

◆ myMainEntries

GEOM::string_array_var DependencyTree_View::myMainEntries
private

◆ myMaxDownwardLevelsNumber

int DependencyTree_View::myMaxDownwardLevelsNumber
private

◆ myMaxUpwardLevelsNumber

int DependencyTree_View::myMaxUpwardLevelsNumber
private

◆ myNodesMovable

QCheckBox* DependencyTree_View::myNodesMovable
private

◆ mySelectionMgr

LightApp_SelectionMgr* DependencyTree_View::mySelectionMgr
private

◆ myTreeMap

EntryObjectMap DependencyTree_View::myTreeMap
private

◆ myTreeModel

GEOMUtils::TreeModel DependencyTree_View::myTreeModel
private

◆ updateButton

QPushButton* DependencyTree_View::updateButton
private

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