Panda3D
Public Member Functions | Static Public Member Functions | List of all members
PNMImageHeader::PixelSpec Class Reference

Public Member Functions

 __init__ (const PNMImageHeader::PixelSpec)
 
 __init__ (const Xel rgb)
 
 __init__ (const Xel rgb, Xelval alpha)
 
 __init__ (Xelval gray_value)
 
 __init__ (Xelval gray_value, Xelval alpha)
 
 __init__ (Xelval red, Xelval green, Xelval blue)
 
 __init__ (Xelval red, Xelval green, Xelval blue, Xelval alpha)
 
int compareTo (const PNMImageHeader::PixelSpec other)
 
Xelval getAlpha ()
 
Xelval getBlue ()
 
Xelval getGreen ()
 
Xelval getRed ()
 
bool operator != (const PNMImageHeader::PixelSpec other)
 
Xelval operator [] (int n)
 
bool operator< (const PNMImageHeader::PixelSpec other)
 
bool operator== (const PNMImageHeader::PixelSpec other)
 
 output (Ostream out)
 
 setAlpha (Xelval alpha)
 
 setBlue (Xelval blue)
 
 setGreen (Xelval green)
 
 setRed (Xelval red)
 

Static Public Member Functions

static int size ()
 Specifies the number of components in the PixelSpec; this is always 4, regardless of the type of image it was taken from. More...
 

Member Function Documentation

◆ __init__() [1/7]

__init__ ( const PNMImageHeader::PixelSpec  )

◆ __init__() [2/7]

__init__ ( const Xel  rgb)

◆ __init__() [3/7]

__init__ ( const Xel  rgb,
Xelval  alpha 
)

◆ __init__() [4/7]

__init__ ( Xelval  gray_value)

◆ __init__() [5/7]

__init__ ( Xelval  gray_value,
Xelval  alpha 
)

◆ __init__() [6/7]

__init__ ( Xelval  red,
Xelval  green,
Xelval  blue 
)

◆ __init__() [7/7]

__init__ ( Xelval  red,
Xelval  green,
Xelval  blue,
Xelval  alpha 
)

◆ compareTo()

int compareTo ( const PNMImageHeader::PixelSpec  other)

◆ getAlpha()

Xelval getAlpha ( )

◆ getBlue()

Xelval getBlue ( )

◆ getGreen()

Xelval getGreen ( )

◆ getRed()

Xelval getRed ( )

◆ operator !=()

bool operator != ( const PNMImageHeader::PixelSpec  other)

◆ operator []()

Xelval operator [] ( int  n)

◆ operator<()

bool operator< ( const PNMImageHeader::PixelSpec  other)

◆ operator==()

bool operator== ( const PNMImageHeader::PixelSpec  other)

◆ output()

output ( Ostream  out)

◆ setAlpha()

setAlpha ( Xelval  alpha)

◆ setBlue()

setBlue ( Xelval  blue)

◆ setGreen()

setGreen ( Xelval  green)

◆ setRed()

setRed ( Xelval  red)

◆ size()

static int size ( )
static

Specifies the number of components in the PixelSpec; this is always 4, regardless of the type of image it was taken from.