Ejemplo n.º 1
0
    def reference_colourspace(self, value):
        """
        Setter for **self._reference_colourspace** private attribute.

        Parameters
        ----------
        value : unicode
            Attribute value.
        """

        if value is not None:
            assert is_string(value), (('"{0}" attribute: "{1}" is not a '
                                       '"string" like object!').format(
                                           'reference_colourspace', value))
            assert value in REFERENCE_COLOURSPACES, (
                '"{0}" reference colourspace not found in factory reference '
                'colourspaces: "{1}".').format(
                    value, ', '.join(sorted(REFERENCE_COLOURSPACES.keys())))

        self._reference_colourspace = value

        if self._initialised:
            self._store_visuals_visibility()
            self._detach_visuals()
            self._create_visuals()
            self._attach_visuals()
            self._restore_visuals_visibility()
            self._create_camera()
            self._label_text()
Ejemplo n.º 2
0
    def reference_colourspace(self, value):
        """
        Setter for **self.__reference_colourspace** private attribute.

        Parameters
        ----------
        value : unicode
            Attribute value.
        """

        if value is not None:
            assert type(value) in (str, unicode), (
                ('"{0}" attribute: "{1}" type is not '
                 '"str" or "unicode"!').format('reference_colourspace', value))
            assert value in REFERENCE_COLOURSPACES, (
                '"{0}" reference colourspace not found in factory reference '
                'colourspaces: "{1}".').format(
                value, ', '.join(sorted(REFERENCE_COLOURSPACES.keys())))

        self.__reference_colourspace = value

        if self.__initialised:
            self.__store_visuals_visibility()
            self.__detach_visuals()
            self.__create_visuals()
            self.__attach_visuals()
            self.__restore_visuals_visibility()
            self.__create_camera()
            self.__title_overlay_visual_text()
Ejemplo n.º 3
0
    def reference_colourspace(self, value):
        """
        Setter for **self._reference_colourspace** private attribute.

        Parameters
        ----------
        value : unicode
            Attribute value.
        """

        if value is not None:
            assert is_string(value), (('"{0}" attribute: "{1}" is not a '
                                       '"string" like object!').format(
                                           'reference_colourspace', value))
            assert value in REFERENCE_COLOURSPACES, (
                '"{0}" reference colourspace not found in factory reference '
                'colourspaces: "{1}".').format(value, ', '.join(
                    sorted(REFERENCE_COLOURSPACES.keys())))

        self._reference_colourspace = value

        if self._initialised:
            self._store_visuals_visibility()
            self._detach_visuals()
            self._create_visuals()
            self._attach_visuals()
            self._restore_visuals_visibility()
            self._create_camera()
            self._label_text()
Ejemplo n.º 4
0
    def reference_colourspace(self, value):
        """
        Setter for **self._reference_colourspace** private attribute.

        Parameters
        ----------
        value : unicode
            Attribute value.
        """

        if value is not None:
            assert is_string(value), (('"{0}" attribute: "{1}" is not a '
                                       '"string" like object!').format(
                                           'reference_colourspace', value))
            assert value in REFERENCE_COLOURSPACES, (
                '"{0}" reference colourspace not found in factory reference '
                'colourspaces: "{1}".').format(value, ', '.join(
                    sorted(REFERENCE_COLOURSPACES.keys())))
        self._reference_colourspace = value
Ejemplo n.º 5
0
    def reference_colourspace(self, value):
        """
        Setter for **self._reference_colourspace** private attribute.

        Parameters
        ----------
        value : unicode
            Attribute value.
        """

        if value is not None:
            assert is_string(value), (('"{0}" attribute: "{1}" is not a '
                                       '"string" like object!').format(
                                           'reference_colourspace', value))
            assert value in REFERENCE_COLOURSPACES, (
                '"{0}" reference colourspace not found in factory reference '
                'colourspaces: "{1}".').format(value, ', '.join(
                    sorted(REFERENCE_COLOURSPACES.keys())))
        self._reference_colourspace = value