示例#1
0
文件: book.py 项目: jonntd/superficie
 def __init__(self):
     super(Book, self).__init__()
     self.root = SoSeparator()
     self.root.setName("Book:root")
     self.chapters = SoSwitch()
     self.chapters.setName("Book:chapters")
     self.root.addChild(self.chapters)
     ## this dictionary contains the chapters python objects
     ## not only the SoSeparator
     self.chaptersObjects = nodeDict()
     self.setupGui()
示例#2
0
    def __init__(self, name=""):
        super(Chapter, self).__init__()
        self.name = name
        self.book = None
        self.root = SoSeparator()
        self.root.setName("Chapter:root")
        self.pagesSwitch = SoSwitch()
        self.pagesSwitch.setName("Chapter:pages")
        self.root.addChild(self.pagesSwitch)

        self.__pages = nodeDict()
        ## ============================
        self.setupGui()
示例#3
0
    def __init__(self, name=""):
        super(Chapter, self).__init__()
        self.name = name
        self.book = None
        self.root = SoSeparator()
        self.root.setName("Chapter:root")
        self.pagesSwitch = SoSwitch()
        self.pagesSwitch.setName("Chapter:pages")
        self.root.addChild(self.pagesSwitch)

        self.__pages = nodeDict()
        ## ============================
        self.setupGui()
示例#4
0
 def __init__(self, name=""):
     QtCore.QObject.__init__(self)
     self.name = name
     self.root = SoSeparator()
     self.root.setName("Page:root")
     self.children = nodeDict()
     self.camera_position = None
     self.camera_point_at = None
     self.camera_viewAll = True
     ## =========================
     self.animations = []
     self.objectsForAnimate = []
     self.coordPlanes = {}
     ## =========================
     self.setupGui()
     self.setupAxis()
     self.showAxis(False)
示例#5
0
文件: page.py 项目: jonntd/superficie
 def __init__(self, name=""):
     QtCore.QObject.__init__(self)
     self.name = name
     self.root = SoSeparator()
     self.root.setName("Page:root")
     self.children = nodeDict()
     self.camera_position = None
     self.camera_point_at = None
     self.camera_viewAll = True
     ## =========================
     self.animations = []
     self.objectsForAnimate = []
     self.coordPlanes = {}
     ## =========================
     self.setupGui()
     self.setupAxis()
     self.showAxis(False)