Skip to content

Commit

Permalink
ENH: start adding properties for vtk display
Browse files Browse the repository at this point in the history
  • Loading branch information
jethornton committed Mar 5, 2019
1 parent 457f549 commit 492d361
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/vtk_test/vtk_test/ui/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@
<blue>103</blue>
</color>
</property>
<property name="programTicks" stdset="0">
<bool>false</bool>
</property>
</widget>
</item>
<item row="5" column="1">
Expand Down
14 changes: 14 additions & 0 deletions qtpyvcp/widgets/display_widgets/vtk_backplot/vtk_backplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def __init__(self, parent=None):
# properties
self._background_color = QColor(0, 0, 0)
self._background_color2 = QColor(0, 0, 0)
self._programTicks = True

self.original_g5x_offset = [0.0] * 9
self.original_g92_offset = [0.0] * 9
Expand Down Expand Up @@ -404,6 +405,19 @@ def backgroundColor2(self):
self.renderer.GradientBackgroundOff()
self.update_render()

@Property(bool)
def programTicks(self):
print(str(self._programTicks))
return self._programTicks

@programTicks.setter
def programTicks(self, enable):
self._programTicks = enable
#self.path_actors[1].XAxisTickVisibilityOff()
#self.path_actors[1].YAxisTickVisibilityOff()
#self.path_actors[1].ZAxisTickVisibilityOff()
#self.update_render()


class Path:
def __init__(self, gr, renderer):
Expand Down

0 comments on commit 492d361

Please # to comment.