| 474 | } |
| 475 | |
| 476 | void ColorSpace::setTransform(const ConstTransformRcPtr & transform, |
| 477 | ColorSpaceDirection dir) |
| 478 | { |
| 479 | TransformRcPtr transformCopy; |
| 480 | if(transform) transformCopy = transform->createEditableCopy(); |
| 481 | |
| 482 | switch (dir) |
| 483 | { |
| 484 | case COLORSPACE_DIR_TO_REFERENCE: |
| 485 | getImpl()->m_toRefTransform = transformCopy; |
| 486 | break; |
| 487 | case COLORSPACE_DIR_FROM_REFERENCE: |
| 488 | getImpl()->m_fromRefTransform = transformCopy; |
| 489 | break; |
| 490 | } |
| 491 | } |
| 492 | |
| 493 | std::ostream & operator<< (std::ostream & os, const ColorSpace & cs) |
| 494 | { |