packages/pyglGA/scripts/basicCubeGuiECSS.py
def scenegraphVisualiser(self):
        """display the ECSS in an ImGUI tree node structure
        Typically this is a custom widget to be extended in an ImGUIDecorator subclass 
        """
        sceneRoot = self.wrapeeWindow.scene.world.root.name
        if sceneRoot is None:
            sceneRoot = "ECSS Root Entity"
        
        imgui.begin("ECSS graph")
        imgui.columns(2,"Properties")
        # below is a recursive call to build-up the whole scenegraph as ImGUI tree
        if imgui.tree_node(sceneRoot, imgui.TREE_NODE_OPEN_ON_ARROW):
            self.drawNode(self.wrapeeWindow.scene.world.root, self.translation, self.camOrthoLRBT, self.camOrthoNF)
            imgui.tree_pop()
        imgui.next_column()
        imgui.text("Properties")
        imgui.separator()
        #TRS sample
        changed, trans = imgui.drag_float4("Translation", *self.translation)
        self.translation = list(trans)
        changedLRBT, orthoLRBT = imgui.drag_float4("Camera LRBT", *self.camOrthoLRBT)
        self.camOrthoLRBT = list(orthoLRBT)
        changedNF, orthoNF = imgui.drag_float2("Camera Near, Far", *self.camOrthoNF)
        self.camOrthoNF = list(orthoNF)
        
        imgui.end()
display the ECSS in an ImGUI tree node structure
        Typically this is a custom widget to be extended in an ImGUIDecorator subclass 
        
display the ECSS in an ImGUI tree node structure
Typically this is a custom widget to be extended in an ImGUIDecorator subclass
display the ECSS in an ImGUI tree node structure Typically this is a custom widget to be extended in an ImGUIDecorator subclass
def scenegraphVisualiser(self):
        sceneRoot = self.wrapeeWindow.scene.world.root.name
        if sceneRoot is None:
            sceneRoot = "ECSS Root Entity"
        imgui.begin("ECSS graph")
        imgui.columns(2,"Properties")
        if imgui.tree_node(sceneRoot, imgui.TREE_NODE_OPEN_ON_ARROW):
            self.drawNode(self.wrapeeWindow.scene.world.root, self.translation, self.camOrthoLRBT, self.camOrthoNF)
            imgui.tree_pop()
        imgui.next_column()
        imgui.text("Properties")
        imgui.separator()
        changed, trans = imgui.drag_float4("Translation", *self.translation)
        self.translation = list(trans)
        changedLRBT, orthoLRBT = imgui.drag_float4("Camera LRBT", *self.camOrthoLRBT)
        self.camOrthoLRBT = list(orthoLRBT)
        changedNF, orthoNF = imgui.drag_float2("Camera Near, Far", *self.camOrthoNF)
        self.camOrthoNF = list(orthoNF)
        imgui.end()
def scenegraphVisualiser ( self ) : sceneRoot = self . wrapeeWindow . scene . world . root . name if sceneRoot is None : sceneRoot = "ECSS Root Entity" imgui . begin ( "ECSS graph" ) imgui . columns ( 2 , "Properties" ) if imgui . tree_node ( sceneRoot , imgui . TREE_NODE_OPEN_ON_ARROW ) : self . drawNode ( self . wrapeeWindow . scene . world . root , self . translation , self . camOrthoLRBT , self . camOrthoNF ) imgui . tree_pop ( ) imgui . next_column ( ) imgui . text ( "Properties" ) imgui . separator ( ) changed , trans = imgui . drag_float4 ( "Translation" , * self . translation ) self . translation = list ( trans ) changedLRBT , orthoLRBT = imgui . drag_float4 ( "Camera LRBT" , * self . camOrthoLRBT ) self . camOrthoLRBT = list ( orthoLRBT ) changedNF , orthoNF = imgui . drag_float2 ( "Camera Near, Far" , * self . camOrthoNF ) self . camOrthoNF = list ( orthoNF ) imgui . end ( )
display the ECSS in an ImGUI tree node structure
Typically this is a custom widget to be extended in an ImGUIDecorator subclass
display the ECSS in an ImGUI tree node structure Typically this is a custom widget to be extended in an ImGUIDecorator subclass
"""display the ECSS in an ImGUI tree node structure
        Typically this is a custom widget to be extended in an ImGUIDecorator subclass 
        """ # below is a recursive call to build-up the whole scenegraph as ImGUI tree #TRS sample
self