PositionIndicatorMeshRepresentationBuilder
public class PositionIndicatorMeshRepresentationBuilder
extension PositionIndicatorMeshRepresentationBuilder: NativeBase
extension PositionIndicatorMeshRepresentationBuilder: Hashable
Builder for creating immutable PositionIndicatorMeshRepresentation instances. Only the geometry URI is required. All other properties have documented defaults.
-
Creates a new builder with the required geometry URI. The URI can reference a registered asset in the AssetManager or a file. The referenced content is expected in the Wavefront obj format.
Declaration
Swift
public init(_ geometryUri: String)Parameters
geometryUriUniform resource identifier for data in Wavefront obj format.
-
Sets the diffuse texture URI. Default is empty (no texture).
Declaration
Swift
public func withTextureUri(_ textureUri: String) -> PositionIndicatorMeshRepresentationBuilderParameters
textureUriUniform resource identifier for the diffuse texture.
Return Value
This builder instance.
-
Sets whether the texture image is flipped vertically before use. Default is true.
Declaration
Swift
public func withFlipTextureVertically(_ flip: Bool) -> PositionIndicatorMeshRepresentationBuilderParameters
flipIf true, the texture image is flipped vertically.
Return Value
This builder instance.
-
Sets the modulation color. Default is white (1, 1, 1, 1).
Declaration
Swift
public func withColor(_ color: UIColor) -> PositionIndicatorMeshRepresentationBuilderParameters
colorThe modulation color.
Return Value
This builder instance.
-
Sets the ambient lighting factor in range 0.0 to 1.0. Default is 0.0.
Declaration
Swift
public func withAmbientFactor(_ ambientFactor: Double) -> PositionIndicatorMeshRepresentationBuilderParameters
ambientFactorThe ambient lighting factor.
Return Value
This builder instance.
-
Sets the diffuse lighting factor in range 0.0 to 1.0. Default is 1.0.
Declaration
Swift
public func withDiffuseFactor(_ diffuseFactor: Double) -> PositionIndicatorMeshRepresentationBuilderParameters
diffuseFactorThe diffuse lighting factor.
Return Value
This builder instance.
-
Sets whether lighting is applied to the object color. Default is false.
Declaration
Swift
public func withLightingEnabled(_ lightingEnabled: Bool) -> PositionIndicatorMeshRepresentationBuilderParameters
lightingEnabledIf true, lighting is applied.
Return Value
This builder instance.
-
Builds an immutable PositionIndicatorMeshRepresentation with the configured properties.
Declaration
Swift
public func build() -> PositionIndicatorMeshRepresentationReturn Value
A new PositionIndicatorMeshRepresentation instance.