You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
330 B
18 lines
330 B
5 months ago
|
class PlotObject:
|
||
|
"""
|
||
|
Base class for objects which can be displayed in
|
||
|
a Plot.
|
||
|
"""
|
||
|
visible = True
|
||
|
|
||
|
def _draw(self):
|
||
|
if self.visible:
|
||
|
self.draw()
|
||
|
|
||
|
def draw(self):
|
||
|
"""
|
||
|
OpenGL rendering code for the plot object.
|
||
|
Override in base class.
|
||
|
"""
|
||
|
pass
|