plot_object.py 330 B

1234567891011121314151617
  1. class PlotObject:
  2. """
  3. Base class for objects which can be displayed in
  4. a Plot.
  5. """
  6. visible = True
  7. def _draw(self):
  8. if self.visible:
  9. self.draw()
  10. def draw(self):
  11. """
  12. OpenGL rendering code for the plot object.
  13. Override in base class.
  14. """
  15. pass