Panda3D
Public Member Functions | Public Attributes | List of all members
pixel Struct Reference

Public Member Functions

 pixel (gray fill)
 
 pixel (gray r, gray g, gray b)
 
bool operator!= (const pixel &other)
 
pixel operator* (const double mult) const
 
void operator*= (const double mult)
 
pixel operator+ (const pixel &other) const
 
void operator+= (const pixel &other)
 
pixel operator- (const pixel &other) const
 
void operator-= (const pixel &other)
 
bool operator< (const pixel &other) const
 
bool operator== (const pixel &other)
 
gray & operator[] (int i)
 
gray operator[] (int i) const
 

Public Attributes

gray b
 
gray g
 
gray r
 

Detailed Description

Definition at line 41 of file pnmimage_base.h.

Constructor & Destructor Documentation

◆ pixel() [1/2]

pixel::pixel ( gray  fill)
inline

Definition at line 44 of file pnmimage_base.h.

◆ pixel() [2/2]

pixel::pixel ( gray  r,
gray  g,
gray  b 
)
inline

Definition at line 45 of file pnmimage_base.h.

Member Function Documentation

◆ operator!=()

bool pixel::operator!= ( const pixel other)
inline

Definition at line 65 of file pnmimage_base.h.

◆ operator*()

pixel pixel::operator* ( const double  mult) const
inline

Definition at line 53 of file pnmimage_base.h.

◆ operator*=()

void pixel::operator*= ( const double  mult)
inline

Definition at line 59 of file pnmimage_base.h.

◆ operator+()

pixel pixel::operator+ ( const pixel other) const
inline

Definition at line 49 of file pnmimage_base.h.

◆ operator+=()

void pixel::operator+= ( const pixel other)
inline

Definition at line 55 of file pnmimage_base.h.

◆ operator-()

pixel pixel::operator- ( const pixel other) const
inline

Definition at line 51 of file pnmimage_base.h.

◆ operator-=()

void pixel::operator-= ( const pixel other)
inline

Definition at line 57 of file pnmimage_base.h.

◆ operator<()

bool pixel::operator< ( const pixel other) const
inline

Definition at line 68 of file pnmimage_base.h.

◆ operator==()

bool pixel::operator== ( const pixel other)
inline

Definition at line 62 of file pnmimage_base.h.

◆ operator[]() [1/2]

gray & pixel::operator[] ( int  i)
inline

Definition at line 48 of file pnmimage_base.h.

◆ operator[]() [2/2]

gray pixel::operator[] ( int  i) const
inline

Definition at line 47 of file pnmimage_base.h.

Member Data Documentation

◆ b

gray pixel::b

Definition at line 85 of file pnmimage_base.h.

◆ g

gray pixel::g

Definition at line 85 of file pnmimage_base.h.

◆ r

gray pixel::r

Definition at line 85 of file pnmimage_base.h.


The documentation for this struct was generated from the following file: