Пример #1
0
 def _initMembersDict(self):
     super(Settings, self)._initMembersDict()
     self._members['name']                       = [str, 'default']
     self._members['resolution']                 = [intlist, [640, 480]]
     self._members['interpolation']              = [str, 'smooth']
     self._members['shadingrate']                = [float, 4.0]
     self._members['pixelsamples']               = [intlist, [4, 4]]
     self._members[Display.getTypeName()]   = [Display, []]
Пример #2
0
    def __init__(self, *args, **kwargs):
        super(Settings,self).__init__(*args, **kwargs)

        self.name       = self.getMember('name')
        self.resolution = self.getMember('resolution')
        self.interp     = self.getMember('interpolation')
        self.rate       = self.getMember('shadingrate')
        self.samples    = self.getMember('pixelsamples')
        self.displays   = self.getMember(Display.getTypeName())