synthesizers.synth_workers.light_synthesizer module#
Defines Light Synthesizer class which is responsible for one light source synthesis.
- class synthesizers.synth_workers.light_synthesizer.LightSynthesizer(class_name: str, scenario_owner: str, position: List[float], rotation: List[float], scale: List[float], light_type: str)#
Bases:
BaseSynthesizer
Defines Light Synthesizer class which is responsible for one light source synthesis.
- _stage_light_path#
Prim path of the created light.
- Type:
str
- _light_node#
Light primitive as a OmniGraph Node representation.
- Type:
og.Node
- position#
Light position in the scene given by XYZ coordinates.
- Type:
List[float]
- rotation#
Euler angles in degrees in XYZ order.
- Type:
List[float]
- scale#
Scaling factors for XYZ axes.
- Type:
List[float]
- light_type#
Light type. Select from “cylinder”, “disk”, “distant”, “dome”, “rect”, “sphere”.
- Type:
str
- __call__(camera_setup: List[str]) None #
Called by Replicator to make changes in the scene.
- Parameters:
camera_setup (List[str]) – List of camera primitive paths in for the camera setup. It can contain more than one camera, e.g. stereo camera or more complicated camera rigs.
- __init__(class_name: str, scenario_owner: str, position: List[float], rotation: List[float], scale: List[float], light_type: str) None #
- Parameters:
class_name (str) – Synthesizer name given by user in the config.
scenario_owner (str) – Name of owning Scenario.
position (List[float]) – Light position in the scene given by XYZ coordinates.
rotation (List[float]) – Euler angles in degrees in XYZ order.
scale (List[float]) – Scaling factors for XYZ axes.
light_type (str) – Light type. Select from “cylinder”, “disk”, “distant”, “dome”, “rect”, “sphere”.
- get_prims() List[str] #
Returns paths in stage to Synthesizer’s created prims.
- Returns:
List of stage prim paths.
- Return type:
List[str]
- register_synthesizers_prims(synthesizer_workers: Dict[str, BaseSynthesizer]) None #
Allows an access to other Synthesizer’s prims if needed.
Returns (None):