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

Public Member Functions

 __init__ (const LMatrix3f::Row)
 
 __init__ (const LMatrix4f::Row)
 
 __init__ (const LMatrix3d::Row)
 
 __init__ (const LMatrix4d::Row)
 
 __init__ (const PNMImage::Row)
 
 __setitem__ (int x, const LColorf v)
 Set the pixel at the given column in the row. More...
 
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...
 
 operator [] (int i, float assign_val)
 
float operator [] (int i)
 
 operator [] (int i, float assign_val)
 
float operator [] (int i)
 
 operator [] (int i, double assign_val)
 
double operator [] (int i)
 
 operator [] (int i, double assign_val)
 
double operator [] (int i)
 
LColorf operator [] (int x)
 
 setAlphaVal (int x, Xelval v)
 Set the alpha value at the given column in the row. More...
 
 setXelVal (int x, const Xel v)
 Set the pixel at the given column in the row. More...
 
int 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...
 

Member Function Documentation

◆ __init__() [1/5]

__init__ ( const LMatrix3f::Row  )

◆ __init__() [2/5]

__init__ ( const LMatrix4f::Row  )

◆ __init__() [3/5]

__init__ ( const LMatrix3d::Row  )

◆ __init__() [4/5]

__init__ ( const LMatrix4d::Row  )

◆ __init__() [5/5]

__init__ ( const PNMImage::Row  )

◆ __setitem__()

__setitem__ ( int  x,
const LColorf  v 
)

Set the pixel at the given column in the row.

If the image has no alpha channel, the alpha component is ignored.

◆ 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/9]

operator [] ( int  i,
float  assign_val 
)

◆ operator []() [2/9]

float operator [] ( int  i)

◆ operator []() [3/9]

operator [] ( int  i,
float  assign_val 
)

◆ operator []() [4/9]

float operator [] ( int  i)

◆ operator []() [5/9]

operator [] ( int  i,
double  assign_val 
)

◆ operator []() [6/9]

double operator [] ( int  i)

◆ operator []() [7/9]

operator [] ( int  i,
double  assign_val 
)

◆ operator []() [8/9]

double operator [] ( int  i)

◆ operator []() [9/9]

LColorf operator [] ( int  x)

◆ setAlphaVal()

setAlphaVal ( int  x,
Xelval  v 
)

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

◆ setXelVal()

setXelVal ( int  x,
const Xel  v 
)

Set the pixel at the given column in the row.

◆ 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]

int size ( )

Get the number of pixels in the row.