|
5 | 5 |
|
6 | 6 | .. py:class:: CDLTransform
|
7 | 7 | :module: PyOpenColorIO
|
| 8 | + :canonical: PyOpenColorIO.CDLTransform |
8 | 9 |
|
9 | 10 | An implementation of the ASC Color Decision List (CDL), based on the ASC v1.2 specification.
|
10 | 11 |
|
|
45 | 46 |
|
46 | 47 | 2. __init__(self: PyOpenColorIO.CDLTransform, direction: PyOpenColorIO.TransformDirection = <TransformDirection.TRANSFORM_DIR_FORWARD: 0>) -> None
|
47 | 48 |
|
48 |
| - 3. __init__(self: PyOpenColorIO.CDLTransform, slope: List[float[3]] = [1.0, 1.0, 1.0], offset: List[float[3]] = [0.0, 0.0, 0.0], power: List[float[3]] = [1.0, 1.0, 1.0], sat: float = 1.0, id: str = '', description: str = '', direction: PyOpenColorIO.TransformDirection = <TransformDirection.TRANSFORM_DIR_FORWARD: 0>) -> None |
| 49 | + 3. __init__(self: PyOpenColorIO.CDLTransform, slope: Annotated[list[float], FixedSize(3)] = [1.0, 1.0, 1.0], offset: Annotated[list[float], FixedSize(3)] = [0.0, 0.0, 0.0], power: Annotated[list[float], FixedSize(3)] = [1.0, 1.0, 1.0], sat: float = 1.0, id: str = '', description: str = '', direction: PyOpenColorIO.TransformDirection = <TransformDirection.TRANSFORM_DIR_FORWARD: 0>) -> None |
49 | 50 |
|
50 | 51 |
|
51 | 52 | .. py:method:: CDLTransform.equals(self: PyOpenColorIO.CDLTransform, other: PyOpenColorIO.CDLTransform) -> bool
|
|
70 | 71 | The get/setID methods are now deprecated. The preferred way of interacting with the ID is now via the transform's formatMetadata.
|
71 | 72 |
|
72 | 73 |
|
73 |
| - .. py:method:: CDLTransform.getOffset(self: PyOpenColorIO.CDLTransform) -> List[float[3]] |
| 74 | + .. py:method:: CDLTransform.getOffset(self: PyOpenColorIO.CDLTransform) -> Annotated[list[float], FixedSize(3)] |
74 | 75 | :module: PyOpenColorIO
|
75 | 76 |
|
76 | 77 |
|
77 |
| - .. py:method:: CDLTransform.getPower(self: PyOpenColorIO.CDLTransform) -> List[float[3]] |
| 78 | + .. py:method:: CDLTransform.getPower(self: PyOpenColorIO.CDLTransform) -> Annotated[list[float], FixedSize(3)] |
78 | 79 | :module: PyOpenColorIO
|
79 | 80 |
|
80 | 81 |
|
81 |
| - .. py:method:: CDLTransform.getSOP(self: PyOpenColorIO.CDLTransform) -> List[float[9]] |
| 82 | + .. py:method:: CDLTransform.getSOP(self: PyOpenColorIO.CDLTransform) -> Annotated[list[float], FixedSize(9)] |
82 | 83 | :module: PyOpenColorIO
|
83 | 84 |
|
84 | 85 |
|
85 | 86 | .. py:method:: CDLTransform.getSat(self: PyOpenColorIO.CDLTransform) -> float
|
86 | 87 | :module: PyOpenColorIO
|
87 | 88 |
|
88 | 89 |
|
89 |
| - .. py:method:: CDLTransform.getSatLumaCoefs(self: PyOpenColorIO.CDLTransform) -> List[float[3]] |
| 90 | + .. py:method:: CDLTransform.getSatLumaCoefs(self: PyOpenColorIO.CDLTransform) -> Annotated[list[float], FixedSize(3)] |
90 | 91 | :module: PyOpenColorIO
|
91 | 92 |
|
92 | 93 | These are hard-coded, by spec, to r709.
|
93 | 94 |
|
94 | 95 |
|
95 |
| - .. py:method:: CDLTransform.getSlope(self: PyOpenColorIO.CDLTransform) -> List[float[3]] |
| 96 | + .. py:method:: CDLTransform.getSlope(self: PyOpenColorIO.CDLTransform) -> Annotated[list[float], FixedSize(3)] |
96 | 97 | :module: PyOpenColorIO
|
97 | 98 |
|
98 | 99 |
|
|
118 | 119 | :module: PyOpenColorIO
|
119 | 120 |
|
120 | 121 |
|
121 |
| - .. py:method:: CDLTransform.setOffset(self: PyOpenColorIO.CDLTransform, rgb: List[float[3]]) -> None |
| 122 | + .. py:method:: CDLTransform.setOffset(self: PyOpenColorIO.CDLTransform, rgb: Annotated[list[float], FixedSize(3)]) -> None |
122 | 123 | :module: PyOpenColorIO
|
123 | 124 |
|
124 | 125 |
|
125 |
| - .. py:method:: CDLTransform.setPower(self: PyOpenColorIO.CDLTransform, rgb: List[float[3]]) -> None |
| 126 | + .. py:method:: CDLTransform.setPower(self: PyOpenColorIO.CDLTransform, rgb: Annotated[list[float], FixedSize(3)]) -> None |
126 | 127 | :module: PyOpenColorIO
|
127 | 128 |
|
128 | 129 |
|
129 |
| - .. py:method:: CDLTransform.setSOP(self: PyOpenColorIO.CDLTransform, vec9: List[float[9]]) -> None |
| 130 | + .. py:method:: CDLTransform.setSOP(self: PyOpenColorIO.CDLTransform, vec9: Annotated[list[float], FixedSize(9)]) -> None |
130 | 131 | :module: PyOpenColorIO
|
131 | 132 |
|
132 | 133 |
|
133 | 134 | .. py:method:: CDLTransform.setSat(self: PyOpenColorIO.CDLTransform, sat: float) -> None
|
134 | 135 | :module: PyOpenColorIO
|
135 | 136 |
|
136 | 137 |
|
137 |
| - .. py:method:: CDLTransform.setSlope(self: PyOpenColorIO.CDLTransform, rgb: List[float[3]]) -> None |
| 138 | + .. py:method:: CDLTransform.setSlope(self: PyOpenColorIO.CDLTransform, rgb: Annotated[list[float], FixedSize(3)]) -> None |
138 | 139 | :module: PyOpenColorIO
|
139 | 140 |
|
140 | 141 |
|
|
0 commit comments