CityEngine Panorama Settings.
@example:
# get current Panorama
panoramaSettings = PanoramaSettings()
panoramaSettings.setReflectionMap('ce.lib/maps/panoramas/NightSky.refl.jpg')
panoramaSettings.setEnvironmentMap('ce.lib/maps/panoramas/NightSky.env.jpg')
ce.setPanorama(panoramaSettings)
此处定义的方法如下:
getEnvironmentMap
getEnvironmentMap(self):
Gets EnvironmentMap field. The Environment Map file.
@return: Value of EnvironmentMap field. [str]
@example:
# prints the currently set environment map
panoramaSettings = ce.getPanorama()
print panoramaSettings.getEnvironmentMap()
getReflectionMap
getReflectionMap(self):
Gets ReflectionMap field. The Reflection Map file.
@return: Value of ReflectionMap field. [str]
@example:
# prints the currently set reflection map
panoramaSettings = ce.getPanorama()
print panoramaSettings.getReflectionMap()
getVisible
getVisible(self):
Gets Visible field. The Boolean Visible Flag.
@return: Value of Visible field. [True/False]
@example:
# prints whether the panorama is currently visible
panoramaSettings = ce.getPanorama()
print panoramaSettings.getVisible()
setEnvironmentMap
setEnvironmentMap(self, stringValue):
Sets EnvironmentMap field. The Environment Map file.
@param stringValue: the new value. [str]
@example:
# sets the environment map to the night sky environment map
panoramaSettings = ce.getPanorama()
panoramaSettings.setEnvironmentMap('ce.lib/maps/panoramas/NightSky.env.jpg')
ce.setPanorama(panoramaSettings)
setReflectionMap
setReflectionMap(self, stringValue):
Sets ReflectionMap field. The Reflection Map file.
@param stringValue: the new value. [str]
@example:
# sets the reflection map to the night sky relfection map
panoramaSettings = ce.getPanorama()
panoramaSettings.setReflectionMap('ce.lib/maps/panoramas/NightSky.refl.jpg')
ce.setPanorama(panoramaSettings)
setVisible
setVisible(self, booleanValue):
Sets Visible field. The Boolean Visible Flag.
@param booleanValue: the new value. [True/False]
@example:
# makes the panorama invisible
panoramaSettings = ce.getPanorama()
panoramaSettings.setVisible(False)
ce.setPanorama(panoramaSettings)