Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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
 
int getStudyId () 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
 
SALOMEDS::Study_var myStudy
 
LightApp_SelectionMgr * mySelectionMgr
 
GEOM::string_array_var myMainEntries
 
bool myIsUpdate
 

Constructor & Destructor Documentation

DependencyTree_View::DependencyTree_View ( QWidget theParent = 0)
DependencyTree_View::~DependencyTree_View ( )

References clearView().

Member Function Documentation

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

References myTreeMap.

int DependencyTree_View::checkMaxLevelsNumber ( )
private
void DependencyTree_View::clearView ( bool  isClearModel)
private
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.

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

References myArrows, myLevelsNumber, and myTreeMap.

void DependencyTree_View::fitWindow ( )
private
void DependencyTree_View::getNewTreeModel ( bool  theUseSelectedObject = true,
bool  theUseOB = true 
)
private
DependencyTree_Object * DependencyTree_View::getObjectByEntry ( const std::string &  theEntry)

References myTreeMap.

int DependencyTree_View::getStudyId ( ) const

References myStudy.

QString DependencyTree_View::getViewName ( ) const
void DependencyTree_View::mouseMoveEvent ( QMouseEvent *  event)

References myArrows.

void DependencyTree_View::onHierarchyType ( )
privateslot
void DependencyTree_View::onMoveNodes ( bool  theIsMoveNodes)
privateslot

References myTreeMap.

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

References updateModel().

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

References getObjectByEntry().

void DependencyTree_View::onUpdateModel ( )
privateslot

References updateModel().

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

References addNode().

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

References addArrow(), and myTreeMap.

void DependencyTree_View::resizeEvent ( QResizeEvent *  event)
protected
void DependencyTree_View::setArrowColor ( const QColor &  theColor)
private
void DependencyTree_View::setHierarchyType ( const int  theType)
private
void DependencyTree_View::setHighlightArrowColor ( const QColor &  theColor)
private
void DependencyTree_View::setMainNodeColor ( const QColor &  theColor)
private

References myTreeMap.

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

References myTreeMap.

void DependencyTree_View::setNodesMovable ( const bool  theIsMovable)
private

References myNodesMovable.

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

References myTreeMap.

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

References myTreeMap.

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

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

void DependencyTree_View::wheelEvent ( QWheelEvent *  event)

Member Data Documentation

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

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