Into

Modules

Documentation

classPiiColor

#include <PiiColor.h>

A three-channel color.

Inherits PiiColorBase< T >, PiiArithmeticBase< PiiColor< T >, PiiColorTraits< T > >

Description

This class adds support for arithmetic operations to PiiColorBase.

Public types

enum
@10
{ ChannelCount = 3 }

Shorthand for the base class type.

Constructors and destructor

(
  • T channel0
  • T channel1
  • T channel2
)

Create a new color with the given values for color channels.

(
  • T value = 0
)

Create a new color with the same value on each color channel.

( )

Copy any three or four channel color.

template<class U>
( )

Create a typecasted copy of any other color.

( )

Copy another three-channel color.

Public member functions

end
( )

An stl-style const iterator to the end of color channels.

end
( )

An stl-style iterator to the end of color channels.

Friends

friend struct

Enumeration details

  • enum @10

Function details

  • PiiColor

    (
    • T channel0
    • T channel1
    • T channel2
    )
    [inline]

    Create a new color with the given values for color channels.

     // Parameters:  R, G,  B
     PiiColor<> blue(0, 0, 255);
    
  • PiiColor

    (
    • T value = 0
    )
    [inline]

    Create a new color with the same value on each color channel.

  • PiiColor

    ( )
    [inline]

    Copy any three or four channel color.

    If clr has a fourth color channel, it'll be ignored.

  • template<class U>

    PiiColor

    ( )
    [inline]

    Create a typecasted copy of any other color.

    If clr has a fourth color channel, it'll be ignored.

  • PiiColor

    ( )
    [inline]

    Copy another three-channel color.

  • template<class Archive>

    void serialize

    (
    • Archive & archive
    • const unsigned int
    )
    [inline]
  • BaseType::ConstIterator end

    ()
    [inline]

    An stl-style const iterator to the end of color channels.

  • BaseType::Iterator end

    ()
    [inline]

    An stl-style iterator to the end of color channels.

Notes (0)

Add a note

Not a single note added yet. Be the first, add yours.