Documentation - v19.2.0-dev
Preparing search index...
@stereograph/teiaviewer
MaterialFactory
Class MaterialFactory
Index
Constructors
constructor
Methods
create
Properties
Texture
get
Batched
Line
Opaque
Material
get
Batched
Line
Opaque
Material_
Selected
get
Batched
Line
Transparent
Material
get
Batched
Line
Transparent
Material_
Selected
get
Batched
Line
X
Ray
Material
get
Batched
Line
X
Ray
Material_
Selected
get
Batched
Mesh
Edges
Opaque
Material
get
Batched
Mesh
Edges
Opaque
Material_
Selected
get
Batched
Mesh
Edges
Transparent
Material
get
Batched
Mesh
Edges
Transparent
Material_
Selected
get
Batched
Mesh
Edges
X
Ray
Material
get
Batched
Mesh
Edges
X
Ray
Material_
Selected
get
Batched
Mesh
Opaque
Material
get
Batched
Mesh
Opaque
Material_
Selected
get
Batched
Mesh
Transparent
Material
get
Batched
Mesh
Transparent
Material_
Selected
get
Batched
Mesh
X
Ray
Material
get
Batched
Mesh
X
Ray
Material_
Selected
Constructors
constructor
new
MaterialFactory
(
viewer
:
Viewer
)
:
MaterialFactory
Parameters
viewer
:
Viewer
Returns
MaterialFactory
Methods
create
Properties
Texture
createPropertiesTexture
(
count
:
number
,
properties
:
(
|
"active"
|
"roughness"
|
"metalness"
|
"emissive"
|
"diffuse"
|
"opacity"
)
[]
,
)
:
BatchedPropertiesTexture
Parameters
count
:
number
properties
: (
"active"
|
"roughness"
|
"metalness"
|
"emissive"
|
"diffuse"
|
"opacity"
)
[]
Returns
BatchedPropertiesTexture
get
Batched
Line
Opaque
Material
getBatchedLineOpaqueMaterial
(
texture
:
BatchedPropertiesTexture
,
dash
?:
DashedLineOptions
,
)
:
MaterialConfig
<
BatchedLineDashedMaterial
>
Parameters
texture
:
BatchedPropertiesTexture
dash
:
DashedLineOptions
= DefaultDashLineOptions
Returns
MaterialConfig
<
BatchedLineDashedMaterial
>
get
Batched
Line
Opaque
Material_
Selected
getBatchedLineOpaqueMaterial_Selected
(
texture
:
BatchedPropertiesTexture
,
dash
?:
DashedLineOptions
,
)
:
MaterialConfig
<
BatchedLineDashedMaterial
>
Parameters
texture
:
BatchedPropertiesTexture
Optional
dash
:
DashedLineOptions
Returns
MaterialConfig
<
BatchedLineDashedMaterial
>
get
Batched
Line
Transparent
Material
getBatchedLineTransparentMaterial
(
texture
:
BatchedPropertiesTexture
,
dash
?:
DashedLineOptions
,
)
:
MaterialConfig
<
BatchedLineDashedMaterial
>
Parameters
texture
:
BatchedPropertiesTexture
dash
:
DashedLineOptions
= DefaultDashLineOptions
Returns
MaterialConfig
<
BatchedLineDashedMaterial
>
get
Batched
Line
Transparent
Material_
Selected
getBatchedLineTransparentMaterial_Selected
(
texture
:
BatchedPropertiesTexture
,
dash
?:
DashedLineOptions
,
)
:
MaterialConfig
<
BatchedLineDashedMaterial
>
Parameters
texture
:
BatchedPropertiesTexture
Optional
dash
:
DashedLineOptions
Returns
MaterialConfig
<
BatchedLineDashedMaterial
>
get
Batched
Line
X
Ray
Material
getBatchedLineXRayMaterial
(
texture
:
BatchedPropertiesTexture
,
dash
?:
DashedLineOptions
,
)
:
MaterialConfig
<
BatchedLineDashedMaterial
>
Parameters
texture
:
BatchedPropertiesTexture
dash
:
DashedLineOptions
= DefaultDashLineOptions
Returns
MaterialConfig
<
BatchedLineDashedMaterial
>
get
Batched
Line
X
Ray
Material_
Selected
getBatchedLineXRayMaterial_Selected
(
texture
:
BatchedPropertiesTexture
,
dash
?:
DashedLineOptions
,
)
:
MaterialConfig
<
BatchedLineDashedMaterial
>
Parameters
texture
:
BatchedPropertiesTexture
Optional
dash
:
DashedLineOptions
Returns
MaterialConfig
<
BatchedLineDashedMaterial
>
get
Batched
Mesh
Edges
Opaque
Material
getBatchedMeshEdgesOpaqueMaterial
(
texture
:
BatchedPropertiesTexture
,
dash
?:
DashedLineOptions
,
)
:
MaterialConfig
<
BatchedLineDashedMaterial
>
Parameters
texture
:
BatchedPropertiesTexture
dash
:
DashedLineOptions
= DefaultDashLineOptions
Returns
MaterialConfig
<
BatchedLineDashedMaterial
>
get
Batched
Mesh
Edges
Opaque
Material_
Selected
getBatchedMeshEdgesOpaqueMaterial_Selected
(
texture
:
BatchedPropertiesTexture
,
dash
?:
DashedLineOptions
,
)
:
MaterialConfig
<
BatchedLineDashedMaterial
>
Parameters
texture
:
BatchedPropertiesTexture
Optional
dash
:
DashedLineOptions
Returns
MaterialConfig
<
BatchedLineDashedMaterial
>
get
Batched
Mesh
Edges
Transparent
Material
getBatchedMeshEdgesTransparentMaterial
(
texture
:
BatchedPropertiesTexture
,
dash
?:
DashedLineOptions
,
)
:
MaterialConfig
<
BatchedLineDashedMaterial
>
Parameters
texture
:
BatchedPropertiesTexture
dash
:
DashedLineOptions
= DefaultDashLineOptions
Returns
MaterialConfig
<
BatchedLineDashedMaterial
>
get
Batched
Mesh
Edges
Transparent
Material_
Selected
getBatchedMeshEdgesTransparentMaterial_Selected
(
texture
:
BatchedPropertiesTexture
,
dash
?:
DashedLineOptions
,
)
:
MaterialConfig
<
BatchedLineDashedMaterial
>
Parameters
texture
:
BatchedPropertiesTexture
Optional
dash
:
DashedLineOptions
Returns
MaterialConfig
<
BatchedLineDashedMaterial
>
get
Batched
Mesh
Edges
X
Ray
Material
getBatchedMeshEdgesXRayMaterial
(
texture
:
BatchedPropertiesTexture
,
dash
?:
DashedLineOptions
,
)
:
MaterialConfig
<
BatchedLineDashedMaterial
>
Parameters
texture
:
BatchedPropertiesTexture
dash
:
DashedLineOptions
= DefaultDashLineOptions
Returns
MaterialConfig
<
BatchedLineDashedMaterial
>
get
Batched
Mesh
Edges
X
Ray
Material_
Selected
getBatchedMeshEdgesXRayMaterial_Selected
(
texture
:
BatchedPropertiesTexture
,
dash
?:
DashedLineOptions
,
)
:
MaterialConfig
<
BatchedLineDashedMaterial
>
Parameters
texture
:
BatchedPropertiesTexture
Optional
dash
:
DashedLineOptions
Returns
MaterialConfig
<
BatchedLineDashedMaterial
>
get
Batched
Mesh
Opaque
Material
getBatchedMeshOpaqueMaterial
(
texture
:
BatchedPropertiesTexture
,
)
:
MaterialConfig
<
BatchedMeshStandardMaterial
>
Parameters
texture
:
BatchedPropertiesTexture
Returns
MaterialConfig
<
BatchedMeshStandardMaterial
>
get
Batched
Mesh
Opaque
Material_
Selected
getBatchedMeshOpaqueMaterial_Selected
(
texture
:
BatchedPropertiesTexture
,
)
:
{
layer
:
Base
|
SelectedObject
;
material
:
BatchedMeshStandardMaterial
;
type
:
MaterialType
;
}
Parameters
texture
:
BatchedPropertiesTexture
Returns
{
layer
:
Base
|
SelectedObject
;
material
:
BatchedMeshStandardMaterial
;
type
:
MaterialType
;
}
get
Batched
Mesh
Transparent
Material
getBatchedMeshTransparentMaterial
(
texture
:
BatchedPropertiesTexture
,
)
:
MaterialConfig
<
BatchedMeshStandardMaterial
>
Parameters
texture
:
BatchedPropertiesTexture
Returns
MaterialConfig
<
BatchedMeshStandardMaterial
>
get
Batched
Mesh
Transparent
Material_
Selected
getBatchedMeshTransparentMaterial_Selected
(
texture
:
BatchedPropertiesTexture
,
)
:
MaterialConfig
<
BatchedMeshStandardMaterial
>
Parameters
texture
:
BatchedPropertiesTexture
Returns
MaterialConfig
<
BatchedMeshStandardMaterial
>
get
Batched
Mesh
X
Ray
Material
getBatchedMeshXRayMaterial
(
texture
:
BatchedPropertiesTexture
,
)
:
MaterialConfig
<
BatchedMeshStandardMaterial
>
Parameters
texture
:
BatchedPropertiesTexture
Returns
MaterialConfig
<
BatchedMeshStandardMaterial
>
get
Batched
Mesh
X
Ray
Material_
Selected
getBatchedMeshXRayMaterial_Selected
(
texture
:
BatchedPropertiesTexture
,
)
:
MaterialConfig
<
BatchedMeshStandardMaterial
>
Parameters
texture
:
BatchedPropertiesTexture
Returns
MaterialConfig
<
BatchedMeshStandardMaterial
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
create
Properties
Texture
get
Batched
Line
Opaque
Material
get
Batched
Line
Opaque
Material_
Selected
get
Batched
Line
Transparent
Material
get
Batched
Line
Transparent
Material_
Selected
get
Batched
Line
X
Ray
Material
get
Batched
Line
X
Ray
Material_
Selected
get
Batched
Mesh
Edges
Opaque
Material
get
Batched
Mesh
Edges
Opaque
Material_
Selected
get
Batched
Mesh
Edges
Transparent
Material
get
Batched
Mesh
Edges
Transparent
Material_
Selected
get
Batched
Mesh
Edges
X
Ray
Material
get
Batched
Mesh
Edges
X
Ray
Material_
Selected
get
Batched
Mesh
Opaque
Material
get
Batched
Mesh
Opaque
Material_
Selected
get
Batched
Mesh
Transparent
Material
get
Batched
Mesh
Transparent
Material_
Selected
get
Batched
Mesh
X
Ray
Material
get
Batched
Mesh
X
Ray
Material_
Selected
Documentation - v19.2.0-dev
Loading...