FBPropertyColor Class Reference


Detailed Description

FBPropertyColor class.

Similar in use to FBPropertyVector3d

    # Supported list protocol methods:
    c = FBPropertyColor()
    len(c)
    print c[0]
    c[0] = 1.0
    print c.Data
    c.Data=FBColor(1.0,0.5,0.5)
Warning:
Slicing is not supported by this object.
Inheritance diagram for FBPropertyColor:

List of all members.

Public Member Functions

int __len__ ()
 Returns the number of elements.
double __getitem__ (int pIndex)
 Returns the ith component Corresponds to python: print c[1].
 __setitem__ (int pIndex, double pComponentValue)
 Sets the ith components Corresponds to python: c[1] = 0.5.

Public Attributes

FBColor Data
 Read Write Property: The property data value.

Member Function Documentation

int __len__ ( )

Returns the number of elements.

Corresponds to python: len(object)

double __getitem__ ( int  pIndex)

Returns the ith component Corresponds to python: print c[1].

Parameters:
pIndexIndex of the components to get (0 to 1)
Returns:
Color component value.
__setitem__ ( int  pIndex,
double  pComponentValue 
)

Sets the ith components Corresponds to python: c[1] = 0.5.

Parameters:
pIndexIndex of the components to set (0 to 1)
pComponentValueValue of component to set

Member Data Documentation

Read Write Property: The property data value.

Type of this depends on the subclass of FBProperty (ex: in a FBPropertyInt, Data is of type int).

Reimplemented from FBProperty.


FBPropertyColor FBPropertyColor FBPropertyColor FBPropertyColor FBPropertyColor FBPropertyColor FBPropertyColor FBPropertyColor FBPropertyColor FBPropertyColor
FBPropertyColor FBPropertyColor FBPropertyColor FBPropertyColor FBPropertyColor FBPropertyColor FBPropertyColor FBPropertyColor FBPropertyColor FBPropertyColor