示例#1
0
    def goto_sso(self, i):
        if self._prop_cache:
            self._prop_cache = None

        self.stimtype = self.options['stimtype'][i]

        Viewer.goto_sso(self, i)

        self._store_props()
        self._apply_props()

        minb, maxb = self.sso.getTightBounds()
        height = max(3, maxb[2])
        self.plights.setPos(0, 0, height * 2 / 3.)

        print "Showing sso '%s'" % self.sso.getName()
示例#2
0
    def goto_sso(self, i):
        if self._prop_cache:
            self._prop_cache = None

        self.stimtype = self.options['stimtype'][i]

        Viewer.goto_sso(self, i)

        self._store_props()
        self._apply_props()

        minb, maxb = self.sso.getTightBounds()
        height = max(3, maxb[2])
        self.plights.setPos(0, 0, height * 2 / 3.)

        print "Showing sso '%s'" % self.sso.getName()
示例#3
0
    def goto_sso(self, i):
        if self._blocktype_cache:
            self._blocktype_cache = None

        self.stimtype = self.options['stimtype'][i]
        self.kappa = self.options['kappa'][i]
        self.color0 = self.options['color0'][i]
        self.color1 = self.options['color1'][i]

        Viewer.goto_sso(self, i)

        self._store_blocktype_props()
        self._apply_blocktype_props()

        minb, maxb = self.sso.getTightBounds()
        height = max(2, maxb[2])
        self.plights.setPos(0, 0, height * 2 / 3.)

        logger.info("Showing sso '%s'", self.sso.getName())