示例#1
0
    def _create_components(self):
        """ Creates the window components """
        DraggableWindow._create_components(self)

        self._content_frame = DirectScrolledFrame(
            frameSize=(0, self._width - 15, 0, self._height - 70),
            canvasSize=(0, self._width - 80, 0, self._scroll_height),
            autoHideScrollBars=False,
            scrollBarWidth=12.0,
            frameColor=(0, 0, 0, 0),
            verticalScroll_relief=DGG.FLAT,
            verticalScroll_incButton_relief=DGG.FLAT,
            verticalScroll_decButton_relief=DGG.FLAT,
            verticalScroll_thumb_relief=DGG.FLAT,
            verticalScroll_frameColor=(0.05, 0.05, 0.05, 1),
            verticalScroll_thumb_frameColor=(0.8, 0.8, 0.8, 1),
            verticalScroll_incButton_frameColor=(0.6, 0.6, 0.6, 1),
            verticalScroll_decButton_frameColor=(0.6, 0.6, 0.6, 1),
            horizontalScroll_frameColor=(0, 0, 0, 0),
            horizontalScroll_relief=False,
            horizontalScroll_thumb_relief=False,
            horizontalScroll_incButton_relief=False,
            horizontalScroll_decButton_relief=False,
            parent=self._node,
            pos=(0, 1, -self._height))
        self._content_node = self._content_frame.getCanvas().attach_new_node(
            "BufferComponents")
        self._content_node.set_scale(1, 1, -1)
        self._content_node.set_z(self._scroll_height)
        self._chb_show_images = LabeledCheckbox(
            parent=self._node, x=10, y=43, chb_callback=self._set_show_images,
            chb_checked=False, text="Display image resources",
            text_color=Vec3(0.4), expand_width=330)
 def __init__(self, pipeline, parent):
     DraggableWindow.__init__(self, width=690, height=340, parent=parent,
                              title="Select render mode")
     self._pipeline = pipeline
     self._selected_mode = ""
     self._create_components()
     self.hide()
示例#3
0
 def __init__(self, pipeline, parent):
     DraggableWindow.__init__(self,
                              width=690,
                              height=340,
                              parent=parent,
                              title="Select render mode")
     self._pipeline = pipeline
     self._selected_mode = ""
     self._create_components()
     self.hide()
示例#4
0
 def __init__(self, pipeline, parent):
     """ Constructs the pipe viewer """
     DraggableWindow.__init__(self, width=1300, height=900, parent=parent,
                              title="Pipeline Visualizer")
     self._pipeline = pipeline
     self._scroll_width = 8000
     self._scroll_height = 3000
     self._created = False
     self._create_components()
     self.hide()
示例#5
0
 def __init__(self, pipeline, parent):
     """ Constructs the pipe viewer """
     DraggableWindow.__init__(self, width=1300, height=900, parent=parent,
                              title="Pipeline Visualizer")
     self._pipeline = pipeline
     self._scroll_width = 8000
     self._scroll_height = 3000
     self._created = False
     self._create_components()
     self.hide()
 def __init__(self, pipeline, parent):
     DraggableWindow.__init__(self, width=1600, height=900, parent=parent,
                              title="Texture Viewer")
     self._pipeline = pipeline
     self._current_tex = None
     self._mip_slider = None
     self._mip_text = None
     self._slice_slider = None
     self._slice_text = None
     self._preview_image = None
     self._create_components()
 def __init__(self, pipeline, parent):
     DraggableWindow.__init__(self, width=1600, height=900, parent=parent,
                              title="Texture Viewer")
     self._pipeline = pipeline
     self._current_tex = None
     self._mip_slider = None
     self._mip_text = None
     self._slice_slider = None
     self._slice_text = None
     self._preview_image = None
     self._create_components()
示例#8
0
 def __init__(self, pipeline, parent):
     """ Constructs the buffer viewer """
     DraggableWindow.__init__(self, width=1400, height=800, parent=parent,
                              title="Buffer- and Image-Browser")
     self._pipeline = pipeline
     self._scroll_height = 3000
     self._display_images = False
     self._stages = []
     self._create_components()
     self._tex_preview = TexturePreview(self._pipeline, parent)
     self._tex_preview.hide()
     self.hide()
示例#9
0
 def __init__(self, pipeline, parent):
     """ Constructs the buffer viewer """
     DraggableWindow.__init__(self,
                              width=1400,
                              height=800,
                              parent=parent,
                              title="Buffer- and Image-Browser")
     self._pipeline = pipeline
     self._scroll_height = 3000
     self._display_images = False
     self._stages = []
     self._create_components()
     self._tex_preview = TexturePreview(self._pipeline, parent)
     self._tex_preview.hide()
     self.hide()
示例#10
0
    def _create_components(self):
        """ Internal method to create the window components """
        DraggableWindow._create_components(self)

        self._content_frame = DirectScrolledFrame(
            frameSize=(0, self._width - 40, 0, self._height - 80),
            canvasSize=(0, self._scroll_width, 0, self._scroll_height),
            autoHideScrollBars=False,
            scrollBarWidth=20.0,
            frameColor=(0, 0, 0, 0),
            verticalScroll_relief=False,
            horizontalScroll_relief=False,
            parent=self._node,
            pos=(20, 1, -self._height + 20))
        self._content_node = self._content_frame.getCanvas().attach_new_node("PipeComponents")
        self._content_node.set_scale(1, 1, -1)
        self._content_node.set_z(self._scroll_height)
示例#11
0
    def _create_components(self):
        """ Internal method to create the window components """
        DraggableWindow._create_components(self)

        self._content_frame = DirectScrolledFrame(
            frameSize=(0, self._width - 40, 0, self._height - 80),
            canvasSize=(0, self._scroll_width, 0, self._scroll_height),
            autoHideScrollBars=False,
            scrollBarWidth=20.0,
            frameColor=(0, 0, 0, 0),
            verticalScroll_relief=False,
            horizontalScroll_relief=False,
            parent=self._node,
            pos=(20, 1, -self._height + 20))
        self._content_node = self._content_frame.getCanvas().attach_new_node("PipeComponents")
        self._content_node.set_scale(1, 1, -1)
        self._content_node.set_z(self._scroll_height)
示例#12
0
    def _create_components(self):
        """ Creates the window components """
        DraggableWindow._create_components(self)

        self._content_frame = DirectScrolledFrame(
            frameSize=(0, self._width - 15, 0, self._height - 70),
            canvasSize=(0, self._width - 80, 0, self._scroll_height),
            autoHideScrollBars=False,
            scrollBarWidth=12.0,
            frameColor=(0, 0, 0, 0),
            verticalScroll_relief=DGG.FLAT,
            verticalScroll_incButton_relief=DGG.FLAT,
            verticalScroll_decButton_relief=DGG.FLAT,
            verticalScroll_thumb_relief=DGG.FLAT,
            verticalScroll_frameColor=(0.05, 0.05, 0.05, 1),
            verticalScroll_thumb_frameColor=(0.8, 0.8, 0.8, 1),
            verticalScroll_incButton_frameColor=(0.6, 0.6, 0.6, 1),
            verticalScroll_decButton_frameColor=(0.6, 0.6, 0.6, 1),
            horizontalScroll_frameColor=(0, 0, 0, 0),
            horizontalScroll_relief=False,
            horizontalScroll_thumb_relief=False,
            horizontalScroll_incButton_relief=False,
            horizontalScroll_decButton_relief=False,
            parent=self._node,
            pos=(0, 1, -self._height))
        self._content_node = self._content_frame.getCanvas().attach_new_node(
            "BufferComponents")
        self._content_node.set_scale(1, 1, -1)
        self._content_node.set_z(self._scroll_height)
        self._chb_show_images = LabeledCheckbox(
            parent=self._node,
            x=10,
            y=43,
            chb_callback=self._set_show_images,
            chb_checked=False,
            text="Display image resources",
            text_color=Vec3(0.4),
            expand_width=330)
示例#13
0
 def _create_components(self):
     """ Internal method to init the components """
     DraggableWindow._create_components(self)
     self._content_node = self._node.attach_new_node("content")
     self._populate_content()
 def _create_components(self):
     """ Internal method to init the components """
     DraggableWindow._create_components(self)
     self._content_node = self._node.attach_new_node("content")
     self._populate_content()