PyVMF.Matrix¶
-
class
Matrix
(size: int)¶ A grid for keeping track of the displacement values.
Parameters: size ( int
) – The size of the 2 dimensional grid-
__init__
(size: int)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
(size)Initialize self. column
(x)param x: The column to get copy
()Copies the class using deepcopy()
export
()Gets all the variables than need to be exported into the .VMF file export_attr
(attribute)Exports the data in .VMF file ready format, used when exporting the PyVMF, you shouldn’t need to use this export_children
()Gets all the children classes extract_dic
(dic[, a_var, triangle])Extracts the data from the .VMF file string, you shouldn’t need to use this get
(x, y)param x: Position x in the matrix ids
()inv_rect
(x, y, w, h, step)rect
(x, y, w, h)param x: Position x in the matrix row
(y)param y: The row to get Attributes
ID
-