PyFlex  1.0
Riser cross section analysis
main.TreeModel Class Reference
Inheritance diagram for main.TreeModel:
Collaboration diagram for main.TreeModel:

Public Member Functions

def __init__ (self, parent=None)
 
def flags (self, index)
 
def mimeData (self, indexes)
 
def updateModel (self)
 
def updateLayermodel (self, parentindex)
 
def updateScenarioModel (self)
 
def updateTimehistoryModel (self)
 
def setSlenderData (self, data, parentindex, tag)
 
def removeSlenderData (self, parentindex, tag)
 
def addLayer (self)
 
def addTimeHist (self, name, parent=None)
 
def addGlobalResults (self)
 
def findTimehist (self, name)
 
def addCalc (self, key='friction')
 
def recParentValidate (self, index, parenttext)
 
def setupModelData (self, parent)
 
- Public Member Functions inherited from ui_mainwindow.GenericTreeModel
def __init__ (self, parent=None)
 
def columnCount (self, parent)
 
def getItem (self, index)
 
def data (self, index, role)
 
def setData (self, index, value, role=QtCore.Qt.EditRole)
 
def supportedDropActions (self)
 
def headerData (self, section, orientation, role)
 
def index (self, row, column, parent)
 
def parent (self, index)
 
def removeRows (self, position, rows, parent=QtCore.QModelIndex())
 
def rowCount (self, parent)
 
def insertRows (self, position, rows, parent=QtCore.QModelIndex())
 

Static Public Member Functions

def mimeTypes ()
 
def addGlobalDirectory (parentItem, directory)
 

Public Attributes

 rootItem
 
 slenderdata
 

Detailed Description

The model holding the connection between the items.

Definition at line 1037 of file main.py.

Constructor & Destructor Documentation

def main.TreeModel.__init__ (   self,
  parent = None 
)

Definition at line 1040 of file main.py.

Member Function Documentation

def main.TreeModel.addCalc (   self,
  key = 'friction' 
)

Definition at line 1426 of file main.py.

Here is the call graph for this function:

def main.TreeModel.addGlobalDirectory (   parentItem,
  directory 
)
static

Definition at line 1420 of file main.py.

def main.TreeModel.addGlobalResults (   self)

Definition at line 1386 of file main.py.

Here is the call graph for this function:

Here is the caller graph for this function:

def main.TreeModel.addLayer (   self)

Definition at line 1364 of file main.py.

def main.TreeModel.addTimeHist (   self,
  name,
  parent = None 
)

Definition at line 1377 of file main.py.

Here is the call graph for this function:

def main.TreeModel.findTimehist (   self,
  name 
)
:param name: Nema of the timehist
:return: the index in which has the same name, None is returned if not found

Definition at line 1409 of file main.py.

def main.TreeModel.flags (   self,
  index 
)
Used to select the way each cell works
:param index: the index of the item queried
:return: view get info on items "Type"

Definition at line 1046 of file main.py.

Here is the call graph for this function:

def main.TreeModel.mimeData (   self,
  indexes 
)

Definition at line 1080 of file main.py.

Here is the call graph for this function:

def main.TreeModel.mimeTypes ( )
static

Definition at line 1077 of file main.py.

def main.TreeModel.recParentValidate (   self,
  index,
  parenttext 
)
method that find out is any forefather has the given text in its first column
:param index: The index of the item in question.
:param parenttext: the text to be searched for in forefathers

Definition at line 1458 of file main.py.

Here is the call graph for this function:

Here is the caller graph for this function:

def main.TreeModel.removeSlenderData (   self,
  parentindex,
  tag 
)

Definition at line 1355 of file main.py.

Here is the call graph for this function:

Here is the caller graph for this function:

def main.TreeModel.setSlenderData (   self,
  data,
  parentindex,
  tag 
)
:param data: the data to be inserted in the model
:param parentindex: The index of the parent under which the data is to be put
:param tag: The text that belongs to the data
:return: nothing

Definition at line 1284 of file main.py.

Here is the call graph for this function:

Here is the caller graph for this function:

def main.TreeModel.setupModelData (   self,
  parent 
)
used to set up the model. should be rewritten to use data or setdata to avoid duplication.
:param parent: The root item in all cases
:return: nothing

Definition at line 1475 of file main.py.

def main.TreeModel.updateLayermodel (   self,
  parentindex 
)

Definition at line 1125 of file main.py.

Here is the call graph for this function:

Here is the caller graph for this function:

def main.TreeModel.updateModel (   self)
Model for updating the model with new slenderdata

Definition at line 1097 of file main.py.

Here is the call graph for this function:

def main.TreeModel.updateScenarioModel (   self)

Definition at line 1220 of file main.py.

Here is the call graph for this function:

Here is the caller graph for this function:

def main.TreeModel.updateTimehistoryModel (   self)

Definition at line 1229 of file main.py.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

main.TreeModel.rootItem

Definition at line 1042 of file main.py.

main.TreeModel.slenderdata

Definition at line 1043 of file main.py.


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