Changes for page Widget 3D Head

Last modified by paulapopa on 2025/05/30 15:03

From version 11.1
edited by ldomide
on 2022/05/10 10:57
Change comment: There is no comment for this version
To version 8.1
edited by paulapopa
on 2022/03/30 15:27
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.ldomide
1 +XWiki.paulapopa
Content
... ... @@ -1,7 +1,5 @@
1 -NOTE - Not yet released, but testable here
1 +TODO - Not yet released!
2 2  
3 -[[https:~~/~~/lab.ch.ebrains.eu/hub/user-redirect/lab/tree/shared/TVB%20Widgets/REPO/tvb-widgets/notebooks>>https://lab.ch.ebrains.eu/hub/user-redirect/lab/tree/shared/TVB%20Widgets/REPO/tvb-widgets/notebooks]]
4 -
5 5  == Purpose ==
6 6  
7 7  It is a Jupyter widget intended for visualization of the 3D data available for a patient:
... ... @@ -38,18 +38,18 @@
38 38  from IPython.core.display_functions import display
39 39  )))
40 40  
41 -Then, we instantiate the **SurfaceWidget** and a **FaceSurface** datatype that we want to visualize. Using the //**add_datatype**// method we add the surface to our widget and __display__ the widget:
39 +Then, we instantiate the **ThreeDWidget** and a **FaceSurface** datatype that we want to visualize. Using the //**add_datatype**// method we add the surface to our widget and __display__ the widget:
42 42  
43 43  (% class="box" %)
44 44  (((
45 -widget = api.SurfaceWidget()
43 +widget_3d = api.ThreeDWidget()
46 46  
47 47  face = surfaces.FaceSurface().from_file()
48 48  
49 49  face.configure()
50 50  
51 -widget.add_datatype(face)
52 -display(widget)
49 +widget_3d.add_datatype(face)
50 +display(widget_3d)
53 53  )))
54 54  
55 55  {{html}}
... ... @@ -68,7 +68,7 @@
68 68  
69 69  conn.configure()
70 70  
71 -widget.add_datatype(conn)
69 +widget_3d.add_datatype(conn)
72 72  
73 73  
74 74  seeg = sensors.SensorsInternal().from_file()
... ... @@ -75,7 +75,7 @@
75 75  
76 76  seeg.configure()
77 77  
78 -widget.add_datatype(seeg, api.SurfaceWidgetConfig(name='SEEG'))
76 +widget_3d.add_datatype(seeg, api.Config(name='SEEG'))
79 79  )))
80 80  
81 81  {{html}}
... ... @@ -88,7 +88,7 @@
88 88  (((
89 89  reg_map = region_mapping.RegionMapping.from_file()
90 90  
91 -config = api.SurfaceWidgetConfig(name='Cortex')
89 +config = api.Config(name='Cortex')
92 92  
93 93  config.add_region_mapping_as_cmap(reg_map)
94 94  
... ... @@ -97,7 +97,7 @@
97 97  
98 98  cortex.configure()
99 99  
100 -widget.add_datatype(cortex, config)
98 +widget_3d.add_datatype(cortex, config)
101 101  )))
102 102  
103 103  {{html}}
Public

TVB Widgets