A base class for cordinates models used for constraint and scan
coordinates in Scan and Optimization tabs. This class should not(!) be
initialized on its own. This model is used with Qt view.
|
__init__(self,
parent=None) |
|
|
|
headerData(self,
section,
orientation,
role)
Retrieve the requested header data. |
|
|
int
|
rowCount(self,
parent=None)
Return the number of rows in the model |
|
|
int
|
columnCount(self,
parent=None)
Return the number of columns in the model |
|
|
bool
|
checkNewCoordinate(self,
atoms,
coordinate_type)
This function check whether this coordinate is already present in
this model. |
|
|
|
reset(self)
Remove any existing data |
|
|
bool
|
removeRow(self,
row,
parent=QtCore.QModelIndex())
Removes the given row from the child items of the parent specified. |
|
|
bool
|
removeCoordinate(self,
atoms,
coordinate_type)
This function searches for a given coordinate. |
|
|
int or None
|
findCoordinate(self,
atoms,
coordinate_type)
This function searches for coordinate defined by atoms list and
coordinate type. |
|
|