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

Class Material

 object --+            
          |            
??.instance --+        
              |        
    SceneObject --+    
                  |    
         Appearance --+
                      |
                     Material
Known Subclasses:

The material of an object. It determine the way light reflect off an object to create color.

Instance Methods
 
__getinitargs__(...)
__getinitargs__( (Material)arg1) -> tuple :
 
__init__(...)
__init__( (object)arg1, (Material)arg2) -> None :
 
__repr__(...)
__repr__( (Material)arg1) -> str :
 
__str__(...)
__str__( (Material)arg1) -> str :
 
isAmbientToDefault(...)
isAmbientToDefault( (Material)arg1) -> bool :
 
isDiffuseToDefault(...)
isDiffuseToDefault( (Material)arg1) -> bool :
 
isEmissionToDefault(...)
isEmissionToDefault( (Material)arg1) -> bool :
 
isShininessToDefault(...)
isShininessToDefault( (Material)arg1) -> bool :
 
isSimilar(...)
isSimilar( (Material)arg1, (Material)arg2) -> bool :
 
isSpecularToDefault(...)
isSpecularToDefault( (Material)arg1) -> bool :
 
isTransparencyToDefault(...)
isTransparencyToDefault( (Material)arg1) -> bool :

Inherited from SceneObject: __reduce__, apply, deepcopy, getId, getName, isNamed, isValid, setName

Inherited from unreachable.instance: __new__

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

Class Variables
  __instance_size__ = 12
  __safe_for_unpickling__ = True
Properties
  DEFAULT_AMBIENT
  DEFAULT_DIFFUSE
  DEFAULT_EMISSION
  DEFAULT_MATERIAL
  DEFAULT_SHININESS
  DEFAULT_SPECULAR
  DEFAULT_TRANSPARENCY
  ambient
  diffuse
  emission
  shininess
  specular
  transparency

Inherited from SceneObject: name

Inherited from object: __class__

Method Details

__getinitargs__(...)

 

__getinitargs__( (Material)arg1) -> tuple :

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

__init__(...)
(Constructor)

 

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

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

__init__( (object)arg1 [, (Color3)ambient [, (float)diffuse [, (Color3)specular [, (Color3)emission [, (float)shininess [, (float)transparency]]]]]]) -> None :
    Material( ambient=Color3(160,160,160),diffuse=1,specular=Color3(40,40,40),emission=Color3(0,0,0),shininess=1,transparency=0)

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

__init__( (object)arg1, (str)name [, (Color3)ambient [, (float)diffuse [, (Color3)specular [, (Color3)emission [, (float)shininess [, (float)transparency]]]]]]) -> None :
    Material( name,ambient=Color3(160,160,160),diffuse=1,specular=Color3(40,40,40),emission=Color3(0,0,0),shininess=1,transparency=0)

    C++ signature :
        void __init__(struct _object *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > [,class PGL::Color3 [,double [,class PGL::Color3 [,class PGL::Color3 [,double [,double]]]]]])

Overrides: object.__init__

__repr__(...)
(Representation operator)

 

__repr__( (Material)arg1) -> str :

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

Overrides: object.__repr__

__str__(...)
(Informal representation operator)

 

__str__( (Material)arg1) -> str :

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

Overrides: object.__str__

isAmbientToDefault(...)

 

isAmbientToDefault( (Material)arg1) -> bool :

    C++ signature :
        bool isAmbientToDefault(class PGL::Material {lvalue})

isDiffuseToDefault(...)

 

isDiffuseToDefault( (Material)arg1) -> bool :

    C++ signature :
        bool isDiffuseToDefault(class PGL::Material {lvalue})

isEmissionToDefault(...)

 

isEmissionToDefault( (Material)arg1) -> bool :

    C++ signature :
        bool isEmissionToDefault(class PGL::Material {lvalue})

isShininessToDefault(...)

 

isShininessToDefault( (Material)arg1) -> bool :

    C++ signature :
        bool isShininessToDefault(class PGL::Material {lvalue})

isSimilar(...)

 

isSimilar( (Material)arg1, (Material)arg2) -> bool :

    C++ signature :
        bool isSimilar(class PGL::Material {lvalue},class PGL::Material)

isSpecularToDefault(...)

 

isSpecularToDefault( (Material)arg1) -> bool :

    C++ signature :
        bool isSpecularToDefault(class PGL::Material {lvalue})

isTransparencyToDefault(...)

 

isTransparencyToDefault( (Material)arg1) -> bool :

    C++ signature :
        bool isTransparencyToDefault(class PGL::Material {lvalue})


Property Details

DEFAULT_AMBIENT

Get Method:
unreachable(...)

DEFAULT_DIFFUSE

Get Method:
unreachable(...)

DEFAULT_EMISSION

Get Method:
unreachable(...)

DEFAULT_MATERIAL

Get Method:
unreachable(...)

DEFAULT_SHININESS

Get Method:
unreachable(...)

DEFAULT_SPECULAR

Get Method:
unreachable(...)

DEFAULT_TRANSPARENCY

Get Method:
unreachable(...)

ambient

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

diffuse

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

emission

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

shininess

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

specular

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

transparency

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