Exemplo n.º 1
0
    def render(self, vs):
        cmp = self.parent.get_component()
        cmp._project = self.parent.project
        self.parent.view.render_component(vs.glMatrix, cmp, RENDER_OUTLINES, RENDER_HINT_ONCE)

        pr = MultipointEditRenderer(self.parent.flow, self.parent.view)
        pr.render()
Exemplo n.º 2
0
    def render(self, vs):
        cmp = self.parent.get_component()
        cmp._project = self.parent.project
        self.parent.view.render_component(vs.glMatrix, cmp, RENDER_OUTLINES,
                                          RENDER_HINT_ONCE)

        pr = MultipointEditRenderer(self.parent.flow, self.parent.view)
        pr.render()
Exemplo n.º 3
0
    def render(self, vs):
        with Timer() as t_get:
            cmp = self.parent.get_component()

        cmp._project = self.parent.project
        with Timer() as t_cmp_render:
            self.parent.view.render_component(vs.glMatrix, cmp, RENDER_OUTLINES, RENDER_HINT_ONCE)

        with Timer() as t_mp_edit_renderer:
            pr = MultipointEditRenderer(self.parent.flow, self.parent.view)
            pr.render()
Exemplo n.º 4
0
    def render(self, vs, compositor):

        self.update()

        pr = MultipointEditRenderer(self.parent.flow, self.parent.view)
        with compositor.get("OVERLAY"):
            # Render all the traces
            self.parent.view.hairline_renderer.render_va(
                self.parent.view.viewState.glMatrix, self.__outline, 0)
            self.parent.view.trace_renderer.render_va(
                self.__trace, self.parent.view.viewState.glMatrix, COL_SEL,
                True)
            pr.render()