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()
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()
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)