Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
generate_default_color_node_property_table Namespace Reference

Variables

 column_width = len(str(row[column_name]))
 
dict max_row_widths = {column_name: len(column_title) for (column_name, column_title) in titles.items()}
 
 n = nodes.GetItemAsObject(index)
 
 nodes = slicer.mrmlScene.GetNodesByClass("vtkMRMLColorNode")
 
list table = []
 
str template = "/// | {family} | {category} | {_type} | {node_name} | {singleton_tag} | {node_id} |"
 
dict titles
 

Detailed Description

This script allows to generate the markdown table displayed in doxygen documentation of vtkMRMLColorLogic::AddDefaultColorNodes()

Variable Documentation

◆ column_width

generate_default_color_node_property_table.column_width = len(str(row[column_name]))

◆ max_row_widths

dict generate_default_color_node_property_table.max_row_widths = {column_name: len(column_title) for (column_name, column_title) in titles.items()}

◆ n

generate_default_color_node_property_table.n = nodes.GetItemAsObject(index)

◆ nodes

generate_default_color_node_property_table.nodes = slicer.mrmlScene.GetNodesByClass("vtkMRMLColorNode")

◆ table

list generate_default_color_node_property_table.table = []

◆ template

str generate_default_color_node_property_table.template = "/// | {family} | {category} | {_type} | {node_name} | {singleton_tag} | {node_id} |"

◆ titles

dict generate_default_color_node_property_table.titles
Initial value:
1= {"family": "Family",
2 "category": "Category",
3 "_type": "Type",
4 "node_name": "Node name",
5 "singleton_tag": "Singleton Tag",
6 "node_id": "Node ID"}

Definition at line 40 of file generate_default_color_node_property_table.py.