CLASSIFIER : Light
uid: class-Light-CVEViewer-MetaModel@g-scop.grenoble-inp.fr
Class Diagram
Attributes table
attribute | type | cardinality |
---|---|---|
label | vstring | [1,1] |
on-camera | vboolean | [1,1] |
transform | vtransform | [1,1] |
position | vvector | [1,1] |
focal | vvector | [1,1] |
intensity | vreal | [1,1] |
cone-angle | vreal | [1,1] |
switch-on | vboolean | [1,1] |
color-diffuse | vcolor | [1,1] |
color-ambient | vcolor | [1,1] |
color-specular | vcolor | [1,1] |
Methods
-
set_label(self,..) : set label of light < label (default :MyLamp)
-
get_label(self,..) : get label of light > label
-
on_camera(self,..) : set on_camera of light < on_camera (default :False)
-
is_on_camera(self,..) : get on_camera of light > on_camera
-
set_transform(self,..) : set transform of light < transform (default :((1.0, 0.0, 0.0, 0.0), (0.0, 1.0, 0.0, 0.0), (0.0, 0.0, 1.0, 0.0), (0.0, 0.0, 0.0, 1.0)))
-
get_transform(self,..) : get transform of light > transform
-
set_position(self,..) : set position of light < position (default :(0, 0, 0))
-
get_position(self,..) : get position of light > position
-
set_focal(self,..) : set focal of light < focal (default :(0, 0, -1))
-
get_focal(self,..) : get focal of light > focal
-
set_intensity(self,..) : set intensity of light < intensity (default :1.0)
-
get_intensity(self,..) : get intensity of light > intensity
-
set_cone_angle(self,..) : set cone_angle of light < cone_angle (default :6.28318530718)
-
get_cone_angle(self,..) : get cone_angle of light > cone_angle
-
switch_on(self,..) : set switch_on of light < switch_on (default :True)
-
is_switched_on(self,..) : get switch_on of light > switch_on
-
set_color_diffuse(self,..) : set diffuse color of light < color_diffuse (default :(1, 1, 1, 0))
-
get_color_diffuse(self,..) : get diffuse color of light > color_diffuse
-
set_color_ambient(self,..) : set ambient color of light < color_ambient (default :(1, 1, 1, 0))
-
get_color_ambient(self,..) : get ambient color of light > color_ambient
-
set_color_specular(self,..) : set specular color of light < color_specular (default :(1, 1, 1, 0))
-
get_color_specular(self,..) : get specular color of light > color_specular