com.supermap.ar.areffect.preset
类 ShapeStyle
- java.lang.Object
-
- com.supermap.ar.areffect.preset.ShapeStyle
-
public class ShapeStyle extends java.lang.Object
shape风格样式
-
-
构造器概要
构造器 构造器和说明 ShapeStyle()
-
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 Color
getColor()
获取颜色float
getMetallic()
float
getRadius()
获取半径float
getReflectance()
float
getRoughness()
Color
getSelectedColor()
android.graphics.Bitmap
getSelectionTextureMap()
获取选中状态的渲染贴图资源android.graphics.Bitmap
getTextureMap()
boolean
isShadowCaster()
boolean
isShadowReceiver()
是否是阴影接收者ShapeStyle
setColor(Color color)
设置颜色ShapeStyle
setColor(float r, float g, float b, float a)
设置颜色ShapeStyle
setMetallic(float metallic)
ShapeStyle
setRadius(float radius)
设置半径ShapeStyle
setReflectance(float reflectance)
ShapeStyle
setRoughness(float roughness)
ShapeStyle
setSelectedColor(Color selectedColor)
void
setSelectionTextureMap(android.graphics.Bitmap bitmap)
设置选中状态的渲染的贴图资源ShapeStyle
setShadowCaster(boolean shadowCaster)
ShapeStyle
setShadowReceiver(boolean shadowReceiver)
ShapeStyle
setTextureMap(android.graphics.Bitmap textureMap)
-
-
-
方法详细资料
-
getRadius
public float getRadius()
获取半径- 返回:
-
setRadius
public ShapeStyle setRadius(float radius)
设置半径- 参数:
radius
-- 返回:
-
getColor
public Color getColor()
获取颜色- 返回:
-
setColor
public ShapeStyle setColor(Color color)
设置颜色- 参数:
color
-- 返回:
-
setColor
public ShapeStyle setColor(float r, float g, float b, float a)
设置颜色- 参数:
r
-g
-b
-a
-- 返回:
-
isShadowReceiver
public boolean isShadowReceiver()
是否是阴影接收者- 返回:
-
setShadowReceiver
public ShapeStyle setShadowReceiver(boolean shadowReceiver)
- 参数:
shadowReceiver
-- 返回:
-
isShadowCaster
public boolean isShadowCaster()
- 返回:
-
setShadowCaster
public ShapeStyle setShadowCaster(boolean shadowCaster)
- 参数:
shadowCaster
-- 返回:
-
getMetallic
public float getMetallic()
- 返回:
-
setMetallic
public ShapeStyle setMetallic(float metallic)
- 参数:
metallic
-- 返回:
-
getRoughness
public float getRoughness()
- 返回:
-
setRoughness
public ShapeStyle setRoughness(float roughness)
- 参数:
roughness
-- 返回:
-
getReflectance
public float getReflectance()
- 返回:
-
setReflectance
public ShapeStyle setReflectance(float reflectance)
- 参数:
reflectance
-- 返回:
-
getSelectedColor
public Color getSelectedColor()
- 返回:
-
setSelectedColor
public ShapeStyle setSelectedColor(Color selectedColor)
- 参数:
selectedColor
-- 返回:
-
getTextureMap
public android.graphics.Bitmap getTextureMap()
- 返回:
-
setTextureMap
public ShapeStyle setTextureMap(android.graphics.Bitmap textureMap)
-
getSelectionTextureMap
public android.graphics.Bitmap getSelectionTextureMap()
获取选中状态的渲染贴图资源- 返回:
-
setSelectionTextureMap
public void setSelectionTextureMap(android.graphics.Bitmap bitmap)
设置选中状态的渲染的贴图资源- 参数:
bitmap
-
-
-