Module simple_3dviz.window.base

Expand source code
class BaseWindow(object):
    def __init__(self, size=(512, 512)):
        self.size = size
        self._behaviours = []

    def add_behaviours(self, behaviours):
        self._behaviours.extend(behaviours)
        return self

    def add_behaviour(self, behaviour):
        self._behaviours.append(behaviour)
        return self

    def show(self, title="Scene"):
        raise NotImplementedError()

Classes

class BaseWindow (size=(512, 512))
Expand source code
class BaseWindow(object):
    def __init__(self, size=(512, 512)):
        self.size = size
        self._behaviours = []

    def add_behaviours(self, behaviours):
        self._behaviours.extend(behaviours)
        return self

    def add_behaviour(self, behaviour):
        self._behaviours.append(behaviour)
        return self

    def show(self, title="Scene"):
        raise NotImplementedError()

Subclasses

Methods

def add_behaviour(self, behaviour)
Expand source code
def add_behaviour(self, behaviour):
    self._behaviours.append(behaviour)
    return self
def add_behaviours(self, behaviours)
Expand source code
def add_behaviours(self, behaviours):
    self._behaviours.extend(behaviours)
    return self
def show(self, title='Scene')
Expand source code
def show(self, title="Scene"):
    raise NotImplementedError()