Nori

Color4f Struct Reference

Represents a linear RGB color and a weight. More...

#include <color.h>

List of all members.

Public Types

typedef Eigen::Array4f Base

Public Member Functions

 Color4f ()
 Create an zero value.
 Color4f (const Color3f &c)
 Create from a 3-channel color.
 Color4f (float r, float g, float b, float w)
 Initialize the color vector with specific per-channel values.
template<typename Derived >
 Color4f (const Eigen::ArrayBase< Derived > &p)
 Construct a color vector from ArrayBase (needed to play nice with Eigen)
template<typename Derived >
Color4foperator= (const Eigen::ArrayBase< Derived > &p)
 Assign a color vector from ArrayBase (needed to play nice with Eigen)
Color3f normalized () const
 Normalize and convert into a Color3f value.
QString toString () const
 Return a human-readable string summary.

Detailed Description

Represents a linear RGB color and a weight.

This is used by Nori's image reconstruction filter code

Definition at line 85 of file color.h.


Member Typedef Documentation

typedef Eigen::Array4f Color4f::Base

Definition at line 87 of file color.h.


Constructor & Destructor Documentation

Color4f::Color4f ( ) [inline]

Create an zero value.

Definition at line 90 of file color.h.

Color4f::Color4f ( const Color3f c) [inline]

Create from a 3-channel color.

Definition at line 93 of file color.h.

Color4f::Color4f ( float  r,
float  g,
float  b,
float  w 
) [inline]

Initialize the color vector with specific per-channel values.

Definition at line 96 of file color.h.

template<typename Derived >
Color4f::Color4f ( const Eigen::ArrayBase< Derived > &  p) [inline]

Construct a color vector from ArrayBase (needed to play nice with Eigen)

Definition at line 99 of file color.h.


Member Function Documentation

Color3f Color4f::normalized ( ) const [inline]

Normalize and convert into a Color3f value.

Definition at line 109 of file color.h.

template<typename Derived >
Color4f& Color4f::operator= ( const Eigen::ArrayBase< Derived > &  p) [inline]

Assign a color vector from ArrayBase (needed to play nice with Eigen)

Definition at line 103 of file color.h.

QString Color4f::toString ( ) const [inline]

Return a human-readable string summary.

Definition at line 117 of file color.h.


The documentation for this struct was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines