#5365 Implement toggling of PdmObjects

This commit is contained in:
Gaute Lindkvist
2020-01-28 15:48:50 +01:00
parent 6b461218af
commit 4494c21c8f
4 changed files with 38 additions and 0 deletions

View File

@@ -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()

View File

@@ -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 = []