mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5365 Implement toggling of PdmObjects
This commit is contained in:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user