예제 #1
0
 def clear(self):
     """
     Remove all objects from the render window.
     """
     self.remove(*self._results)
     self.append(misc.ChiggerBackground())
     self.update()
예제 #2
0
    def __init__(self, *args, **kwargs):

        self.__vtkwindow = kwargs.pop('vtkwindow', vtk.vtkRenderWindow())
        self.__vtkinteractor = kwargs.pop('vtkinteractor', None)

        super(RenderWindow, self).__init__(**kwargs)

        self._results = [misc.ChiggerBackground()]
        self.__active = None

        # Store the supplied result objects
        self.append(*args)
예제 #3
0
    def __init__(self, *args, **kwargs):

        self.__vtkwindow = kwargs.pop('vtkwindow', vtk.vtkRenderWindow())
        self.__vtkinteractor = kwargs.pop('vtkinteractor', None)

        super(RenderWindow, self).__init__(**kwargs)

        self._results = [misc.ChiggerBackground()]
        self.__active = None

        self.__watermark = annotations.ImageAnnotation(filename='chigger_white.png',
                                                       width=0.025,
                                                       horizontal_alignment='left',
                                                       vertical_alignment='bottom',
                                                       position=[0, 0])
        # Store the supplied result objects
        self.append(*args)
        if kwargs.pop('chigger', False):
            self.append(self.__watermark)