#5365 Implement toggling of PdmObjects

This commit is contained in:
Gaute Lindkvist committed 2020-01-29 08:41:37 +01:00
1 parent 6b461218af
commit 4494c21c8f
4 files changed
+38

No files matched your search

@@ -25,3 +25,5 @@ if resinsight is not None:
view.set_show_grid_box(False)
new_view.set_background_color("#FFAA33")
new_view.update()
view.set_visible(False)
view.update()
@@ -69,6 +69,14 @@ class PdmObject:
"""Get the class keyword in the ResInsight Data Model for the given PdmObject"""
return self._pb2_object.class_keyword
def set_visible(self, visible):
"""Set the visibility of the object in the ResInsight project tree"""
self._pb2_object.visible = visible
def visible(self):
"""Get the visibility of the object in the ResInsight project tree"""
return self._pb2_object.visible
def keywords(self):
"""Get a list of all parameter keywords available in the object"""
list_of_keywords = []