Panda3D
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties
Public Member Functions | Static Public Member Functions | List of all members
Row Class Reference

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

Public Member Functions

 __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. 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...
 
LColorf operator[] (int x)
 
 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)
 
 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...
 
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 or writing the contents of one row of the image in-place.

These helper classes are used to support two-level operator [].

Member Function Documentation

__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.

Xelval getAlphaVal ( int  x)

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

Xel getXelVal ( int  x)

Fetch the pixel at the given column in the row.

LColorf operator[] ( int  x)
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)
setAlphaVal ( int  x,
Xelval  v 
)

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

setXelVal ( int  x,
const Xel  v 
)

Set the pixel at the given column in the row.

size_t size ( )

Get the number of pixels in the row.

static int size ( )
static

Returns 3: the number of columns of a LMatrix3.

static int size ( )
static

Returns 4: the number of columns of a LMatrix4.

static int size ( )
static

Returns 3: the number of columns of a LMatrix3.

static int size ( )
static

Returns 4: the number of columns of a LMatrix4.