Package openalea :: Package plantgl :: Package scenegraph :: Module _pglsg :: Class Color3
[frames] | no frames]

Class Color3

 object --+    
          |    
??.instance --+
              |
             Color3

A 3 components color expressed in red, green and blue.

Instance Methods
 
__eq__(...)
__eq__( (Color3)arg1, (Color3)arg2) -> object :
 
__getinitargs__(...)
__getinitargs__( (Color3)arg1) -> tuple :
 
__init__(...)
__init__( (object)arg1, (Color3)arg2) -> None :
 
__ne__(...)
__ne__( (Color3)arg1, (Color3)arg2) -> object :
 
__reduce__(...)
helper for pickle
 
__repr__(...)
__repr__( (Color3)arg1) -> str :
 
__str__(...)
__str__( (Color3)arg1) -> str :
 
clampedBlue(...)
clampedBlue( (Color3)arg1) -> float :
 
clampedGreen(...)
clampedGreen( (Color3)arg1) -> float :
 
clampedRed(...)
clampedRed( (Color3)arg1) -> float :
 
setClampedBlue(...)
setClampedBlue( (Color3)arg1, (float)arg2) -> None :
 
setClampedGreen(...)
setClampedGreen( (Color3)arg1, (float)arg2) -> None :
 
setClampedRed(...)
setClampedRed( (Color3)arg1, (float)arg2) -> None :

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce_ex__, __setattr__

Class Variables
  __instance_size__ = 12
  __safe_for_unpickling__ = True
Properties
  BLACK
  BLUE
  CYAN
  GREEN
  RED
  WHITE
  YELLOW
  blue
  green
  red

Inherited from object: __class__

Method Details

__eq__(...)
(Equality operator)

 

__eq__( (Color3)arg1, (Color3)arg2) -> object :

    C++ signature :
        struct _object * __eq__(class PGL::Color3 {lvalue},class PGL::Color3)

__getinitargs__(...)

 

__getinitargs__( (Color3)arg1) -> tuple :

    C++ signature :
        class boost::python::tuple __getinitargs__(class PGL::Color3)

__init__(...)
(Constructor)

 

__init__( (object)arg1, (Color3)arg2) -> None :

    C++ signature :
        void __init__(struct _object *,class PGL::Color3)

__init__( (object)arg1, (int)red, (int)green, (int)blue) -> None :
    Color3(red,green,blue)

    C++ signature :
        void __init__(struct _object *,unsigned char,unsigned char,unsigned char)

__init__( (object)arg1 [, (int)arg2]) -> None :

    C++ signature :
        void __init__(struct _object * [,unsigned char])

Overrides: object.__init__

__ne__(...)

 

__ne__( (Color3)arg1, (Color3)arg2) -> object :

    C++ signature :
        struct _object * __ne__(class PGL::Color3 {lvalue},class PGL::Color3)

__reduce__(...)

 
helper for pickle

Overrides: object.__reduce__
(inherited documentation)

__repr__(...)
(Representation operator)

 

__repr__( (Color3)arg1) -> str :

    C++ signature :
        class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __repr__(class PGL::Color3 *)

Overrides: object.__repr__

__str__(...)
(Informal representation operator)

 

__str__( (Color3)arg1) -> str :

    C++ signature :
        class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __str__(class PGL::Color3 *)

Overrides: object.__str__

clampedBlue(...)

 

clampedBlue( (Color3)arg1) -> float :

    C++ signature :
        double clampedBlue(class PGL::Color3 *)

clampedGreen(...)

 

clampedGreen( (Color3)arg1) -> float :

    C++ signature :
        double clampedGreen(class PGL::Color3 *)

clampedRed(...)

 

clampedRed( (Color3)arg1) -> float :

    C++ signature :
        double clampedRed(class PGL::Color3 *)

setClampedBlue(...)

 

setClampedBlue( (Color3)arg1, (float)arg2) -> None :

    C++ signature :
        void setClampedBlue(class PGL::Color3 *,double)

setClampedGreen(...)

 

setClampedGreen( (Color3)arg1, (float)arg2) -> None :

    C++ signature :
        void setClampedGreen(class PGL::Color3 *,double)

setClampedRed(...)

 

setClampedRed( (Color3)arg1, (float)arg2) -> None :

    C++ signature :
        void setClampedRed(class PGL::Color3 *,double)


Property Details

BLACK

Get Method:
unreachable(...)

BLUE

Get Method:
unreachable(...)

CYAN

Get Method:
unreachable(...)

GREEN

Get Method:
unreachable(...)

RED

Get Method:
unreachable(...)

WHITE

Get Method:
unreachable(...)

YELLOW

Get Method:
unreachable(...)

blue

Get Method:
unreachable(...)
Set Method:
unreachable(...)

green

Get Method:
unreachable(...)
Set Method:
unreachable(...)

red

Get Method:
unreachable(...)
Set Method:
unreachable(...)