SourceAmbientEnvironment#
- class ansys.speos.core.source.SourceAmbientEnvironment(project, name, description='', metadata=None, source_instance=None, default_values=True)#
Bases:
BaseSourceAmbientEnvironment ambient source.
By default [0, 0, 1] is used as zenith direction, [0, 1, 0] as north direction.
- Parameters:
- Parameters:
Overview#
Set the color space to user-defined. |
|
Set the color space to use one of the presets. |
|
Save feature: send the local data to the speos server database. |
|
Reset feature: override local data by the one from the speos server database. |
|
Delete feature: delete data from the speos server database. |
Zenith direction of the environment light source. |
|
Reverse zenith direction of the environment light source. |
|
North direction of the environment light source. |
|
Reverse north direction of the environment light source. |
|
Luminance of the environment light source. |
|
Location of the environment image file. |
|
Property containing all options in regard to the color space properties. |
Import detail#
from ansys.speos.core.source import SourceAmbientEnvironment
Property detail#
- property SourceAmbientEnvironment.zenith_direction: List[float]#
Zenith direction of the environment light source.
This property get and set the zenith direction of the environment source.
- Parameters:
- direction: Optional[List[float]]
direction defines the zenith direction of the environment light source.
- Returns:
List[float]direction defines the zenith direction of the environment light source.
- property SourceAmbientEnvironment.reverse_zenith_direction: bool#
Reverse zenith direction of the environment light source.
This property get and set if reverse zenith direction is True.
- Parameters:
- value: bool
True to reverse zenith direction, False otherwise.
- Returns:
- bool
True to reverse zenith direction, False otherwise.
- property SourceAmbientEnvironment.north_direction: List[float]#
North direction of the environment light source.
This property get and set the north direction of the environment source.
- Parameters:
- direction: List[float]
direction defines the north direction, default value to be [0, 1, 0].
- Returns:
List[float]direction defines the north direction of the environment source.
- property SourceAmbientEnvironment.reverse_north_direction: bool#
Reverse north direction of the environment light source.
This property get and set if reverse north direction is True.
- Parameters:
- value: bool
True to reverse north direction, False otherwise.
- Returns:
- bool
True as reverse north direction, False otherwise.
- property SourceAmbientEnvironment.luminance: float#
Luminance of the environment light source.
This property get and set the Luminance value of the source.
- Parameters:
- value: float
set value of Luminance (cd/m^2).
- Returns:
floatvalue of Luminance setting (cd/m^2).
- property SourceAmbientEnvironment.image_file_uri: str#
Location of the environment image file.
This property gets or sets the environment image file used by the ambient environment source.
- property SourceAmbientEnvironment.color_space: None | SourceAmbientEnvironment | SourceAmbientEnvironment#
Property containing all options in regard to the color space properties.
- Returns:
Union[None, ansys.speos.core.source.SourceAmbientEnvironment.PredefinedColorSpace, ansys.speos.core.source.SourceAmbientEnvironment.UserDefinedColorSpace ] Instance of Predefined Color Space class
Method detail#
- SourceAmbientEnvironment.set_userdefined_color_space()#
Set the color space to user-defined.
- Returns:
SourceAmbientEnvironment.UserDefinedColorSpaceSettings for user defined color space.
- SourceAmbientEnvironment.set_predefined_color_space()#
Set the color space to use one of the presets.
- Returns:
ansys.speos.core.source.SourceAmbientEnvironment.PredefinedColorSpaceEnvironment source color space for sRGB or AdobeRGB
- SourceAmbientEnvironment.commit()#
Save feature: send the local data to the speos server database.
- Returns:
ansys.speos.core.source.SourceAmbientEnvironmentAmbient environment Source feature.
- SourceAmbientEnvironment.reset()#
Reset feature: override local data by the one from the speos server database.
- Returns:
ansys.speos.core.source.SourceAmbientEnvironmentAmbient environment Source feature.
- SourceAmbientEnvironment.delete()#
Delete feature: delete data from the speos server database.
The local data are still available
- Returns:
ansys.speos.core.source.SourceAmbientEnvironmentAmbient environment Source feature.