SkinningTools.UI.weightEditor.weightsTableModel¶
Module Contents¶
Classes¶
-
class
SkinningTools.UI.weightEditor.weightsTableModel.WeightsTableModel(data, parent=None, window=None, meshIndex=[], jointNames=[], vtxSideBar=[], jointColorList=[])¶ -
_baseColor¶
-
cell_vertex_copy_color= [70, 120, 120]¶
-
copyCellColor= [90, 120, 90]¶
-
default¶
-
lockedBG¶
-
lockedTXT¶
-
notNormalizedColor= [235, 52, 52]¶
-
overMaxInfColor= [235, 110, 52]¶
-
vertex_copy_color= [90, 90, 120]¶
-
columnCount(self, parent=None)¶ amount of columns in current table model
- Returns
amount of columns
- Return type
int
-
data(self, index, role=Qt.DisplayRole)¶ get specific data from the current given header
- Parameters
index (int) – index of the header
role (Qt.DisplayRole) – qt role on how to display the element
- Returns
data gathered from the object
- Return type
QColor/Qt.alignment
-
flags(self, index)¶ get the flags of given cell
- Parameters
index (cellindex) – index of the cell
- Returns
flags used on the current cell
- Return type
Qt.flags
-
getCellData(self, index=None, row=0, col=0)¶ get the value from the given cell
- Parameters
index (cellindex) – index of the cell data if given
row (int) – index of the row
col (int) – index of the column
- Returns
the value of the cell
- Return type
float
-
headerData(self, index, orientation, role)¶ set up the header data for all joint objects
- Parameters
index (int) – index of the header
orientation (QT.orientation) – the Qt orientation role on how to place the current header
role (Qt.DisplayRole) – qt role on how to display the element
- Returns
the color of the object
- Return type
QColor
-
rowCount(self, parent=None)¶ amount of rows in current table model
- Returns
amount of rows
- Return type
int
-
setData(self, index, value, role=Qt.EditRole)¶ set the data on the given cell
- Parameters
index (cellindex) – index of the cell
value (float) – value to give to the cell
role (Qt.role) – role of current edit
- Returns
if setting was succesfull
- Return type
bool
-