Panda3D
Public Member Functions | Static Public Member Functions | List of all members
CRow Class Reference

Provides an accessor for reading the contents of one row of the image in-place. More...

Public Member Functions

Xelval getAlphaVal (int x)
 Fetch the alpha value at the given column in the row. More...
 
Xel getXelVal (int x)
 Fetch the pixel at the given column in the row. More...
 
float operator[] (int i)
 
float operator[] (int i)
 
double operator[] (int i)
 
double operator[] (int i)
 
LColorf operator[] (int x)
 
size_t size ()
 Get the number of pixels in the row. More...
 

Static Public Member Functions

static int size ()
 Returns 3: the number of columns of a LMatrix3. More...
 
static int size ()
 Returns 4: the number of columns of a LMatrix4. More...
 
static int size ()
 Returns 3: the number of columns of a LMatrix3. More...
 
static int size ()
 Returns 4: the number of columns of a LMatrix4. More...
 

Detailed Description

Provides an accessor for reading the contents of one row of the image in-place.

Member Function Documentation

◆ getAlphaVal()

Xelval getAlphaVal ( int  x)

Fetch the alpha value at the given column in the row.

◆ getXelVal()

Xel getXelVal ( int  x)

Fetch the pixel at the given column in the row.

◆ operator[]() [1/5]

float operator[] ( int  i)

◆ operator[]() [2/5]

float operator[] ( int  i)

◆ operator[]() [3/5]

double operator[] ( int  i)

◆ operator[]() [4/5]

double operator[] ( int  i)

◆ operator[]() [5/5]

LColorf operator[] ( int  x)

◆ size() [1/5]

static int size ( )
static

Returns 3: the number of columns of a LMatrix3.

◆ size() [2/5]

static int size ( )
static

Returns 4: the number of columns of a LMatrix4.

◆ size() [3/5]

static int size ( )
static

Returns 3: the number of columns of a LMatrix3.

◆ size() [4/5]

static int size ( )
static

Returns 4: the number of columns of a LMatrix4.

◆ size() [5/5]

size_t size ( )

Get the number of pixels in the row.