Appearance
copper3d / Modules / Scene/copperSceneOnDemond / copperSceneOnDemond
Class: copperSceneOnDemond
Scene/copperSceneOnDemond.copperSceneOnDemond
Hierarchy
↳
copperSceneOnDemond
Table of contents
Constructors
Properties
- ambientLight
- camera
- cameraPositionFlag
- container
- content
- controls
- copperControl
- copperOrthographicCamera
- copperPerspectiveCamera
- depthStep
- directionalLight
- exportContent
- isHalfed
- isResize
- pickableObjects
- preRenderCallbackFunctions
- renderNrrdVolume
- renderRequested
- renderer
- scene
- sceneName
- sort
- subCamera
- subCopperControl
- subDiv
- subRender
- subScene
- viewPoint
- vignette
Methods
- addLights
- addObject
- addPreRenderCallbackFunction
- addSubView
- confirmResize
- createDemoMesh
- getDefaultViewPoint
- init
- loadDicom
- loadGltf
- loadMetadataUrl
- loadNrrd
- loadNrrdTexture3d
- loadOBJ
- loadView
- loadViewUrl
- onRenderCameraChange
- onWindowResize
- pickModel
- pickSpecifiedModel
- removeLights
- removePreRenderCallbackFunction
- render
- requestRenderIfNotRequested
- setDepth
- setDicomFilesOrder
- setViewPoint
- updateBackground
- updateControls
- updateDisplay
- updateLights
- updateModelChildrenVisualisation
Constructors
constructor
• new copperSceneOnDemond(container
, renderer
)
Parameters
Name | Type |
---|---|
container | HTMLDivElement |
renderer | WebGLRenderer |
Overrides
Defined in
src/Scene/copperSceneOnDemond.ts:12
Properties
ambientLight
• ambientLight: AmbientLight
Inherited from
Defined in
camera
• camera: PerspectiveCamera
| OrthographicCamera
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:29
cameraPositionFlag
• cameraPositionFlag: boolean
= false
Inherited from
Defined in
container
• container: HTMLDivElement
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:27
content
• content: Group
<Object3DEventMap
>
Inherited from
Defined in
controls
• controls: OrbitControls
Overrides
Defined in
src/Scene/copperSceneOnDemond.ts:8
copperControl
• copperControl: Controls
Inherited from
Defined in
copperOrthographicCamera
• copperOrthographicCamera: OrthographicCamera
Inherited from
baseScene.copperOrthographicCamera
Defined in
src/Scene/commonSceneMethod.ts:32
copperPerspectiveCamera
• copperPerspectiveCamera: PerspectiveCamera
Inherited from
baseScene.copperPerspectiveCamera
Defined in
src/Scene/commonSceneMethod.ts:31
depthStep
• Protected
depthStep: number
= 0.4
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:44
directionalLight
• directionalLight: DirectionalLight
Inherited from
Defined in
exportContent
• exportContent: Group
<Object3DEventMap
>
Inherited from
Defined in
isHalfed
• isHalfed: boolean
= false
Inherited from
Defined in
isResize
• isResize: boolean
= false
Defined in
src/Scene/copperSceneOnDemond.ts:10
pickableObjects
• Protected
pickableObjects: Mesh
<BufferGeometry
<NormalBufferAttributes
>, Material
| Material
[], Object3DEventMap
>[] = []
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:46
preRenderCallbackFunctions
• Protected
preRenderCallbackFunctions: preRenderCallbackFunctionType
Inherited from
baseScene.preRenderCallbackFunctions
Defined in
src/Scene/commonSceneMethod.ts:42
renderNrrdVolume
• Protected
renderNrrdVolume: boolean
= false
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:40
renderRequested
• renderRequested: undefined
| boolean
= false
Defined in
src/Scene/copperSceneOnDemond.ts:9
renderer
• renderer: WebGLRenderer
Inherited from
Defined in
scene
• scene: Scene
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:28
sceneName
• sceneName: string
= ""
Inherited from
Defined in
sort
• Protected
sort: boolean
= true
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:43
subCamera
• subCamera: null
| PerspectiveCamera
= null
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:36
subCopperControl
• Protected
subCopperControl: null
| Controls
= null
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:39
subDiv
• subDiv: null
| HTMLDivElement
= null
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:34
subRender
• Protected
subRender: null
| WebGLRenderer
= null
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:38
subScene
• subScene: Scene
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:35
viewPoint
• viewPoint: CameraViewPoint
Inherited from
Defined in
vignette
• vignette: undefined
| customMeshType
Inherited from
Defined in
Methods
addLights
▸ addLights(): void
Returns
void
Inherited from
Defined in
addObject
▸ addObject(obj
): void
Parameters
Name | Type |
---|---|
obj | any |
Returns
void
Inherited from
Defined in
addPreRenderCallbackFunction
▸ addPreRenderCallbackFunction(callbackFunction
): number
Parameters
Name | Type |
---|---|
callbackFunction | Function |
Returns
number
Inherited from
baseScene.addPreRenderCallbackFunction
Defined in
src/Scene/commonSceneMethod.ts:122
addSubView
▸ addSubView(): HTMLDivElement
create a new sub view to display models
Returns
HTMLDivElement
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:174
confirmResize
▸ confirmResize(): void
Returns
void
Defined in
src/Scene/copperSceneOnDemond.ts:58
createDemoMesh
▸ createDemoMesh(): void
Returns
void
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:96
getDefaultViewPoint
▸ getDefaultViewPoint(): CameraViewPoint
Returns
Inherited from
Defined in
init
▸ init(): void
Returns
void
Inherited from
Defined in
loadDicom
▸ loadDicom(urls
, opts?
): void
Parameters
Name | Type |
---|---|
urls | string | string [] |
opts? | dicomLoaderOptsType |
Returns
void
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:198
loadGltf
▸ loadGltf(url
, callback?
): void
Parameters
Name | Type |
---|---|
url | string |
callback? | (content : Group <Object3DEventMap >) => void |
Returns
void
Defined in
src/Scene/copperSceneOnDemond.ts:21
loadMetadataUrl
▸ loadMetadataUrl(url
): void
Parameters
Name | Type |
---|---|
url | string |
Returns
void
Inherited from
Defined in
loadNrrd
▸ loadNrrd(url
, loadingBar
, segmentation
, callback?
, opts?
): void
Parameters
Name | Type |
---|---|
url | string |
loadingBar | loadingBarType |
segmentation | boolean |
callback? | (volume : any , nrrdMeshes : nrrdMeshesType , nrrdSlices : nrrdSliceType , gui? : GUI ) => void |
opts? | optsType |
Returns
void
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:314
loadNrrdTexture3d
▸ loadNrrdTexture3d(url
, callback?
): void
Parameters
Name | Type |
---|---|
url | string |
callback? | (volume : any , gui? : GUI ) => void |
Returns
void
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:338
loadOBJ
▸ loadOBJ(url
, callback?
, opts?
): void
Parameters
Name | Type |
---|---|
url | string |
callback? | (mesh : Group <Object3DEventMap >) => void |
opts? | Object |
opts.color | string |
Returns
void
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:350
loadView
▸ loadView(viewpointData
): void
Parameters
Name | Type |
---|---|
viewpointData | CameraViewPoint |
Returns
void
Inherited from
Defined in
loadViewUrl
▸ loadViewUrl(url
): void
Parameters
Name | Type |
---|---|
url | string |
Returns
void
Inherited from
Defined in
onRenderCameraChange
▸ onRenderCameraChange(): void
Returns
void
Inherited from
baseScene.onRenderCameraChange
Defined in
onWindowResize
▸ onWindowResize(): void
Returns
void
Inherited from
Defined in
pickModel
▸ pickModel(content
, callback
, options?
): void
Parameters
Name | Type |
---|---|
content | Group <Object3DEventMap > |
callback | (selectMesh : undefined | Mesh <BufferGeometry <NormalBufferAttributes >, Material | Material [], Object3DEventMap >) => void |
options? | string [] |
Returns
void
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:132
pickSpecifiedModel
▸ pickSpecifiedModel(content
, mousePosition
): Object
Parameters
Name | Type |
---|---|
content | Mesh <BufferGeometry <NormalBufferAttributes >, Material | Material [], Object3DEventMap > | Mesh <BufferGeometry <NormalBufferAttributes >, Material | Material [], Object3DEventMap >[] |
mousePosition | mouseMovePositionType |
Returns
Object
Name | Type |
---|---|
intersectedObject | null | Object3D <Object3DEventMap > |
intersects | Intersection <Object3D <Object3DEventMap >>[] |
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:154
removeLights
▸ removeLights(): void
Returns
void
Inherited from
Defined in
removePreRenderCallbackFunction
▸ removePreRenderCallbackFunction(id
): void
Parameters
Name | Type |
---|---|
id | number |
Returns
void
Inherited from
baseScene.removePreRenderCallbackFunction
Defined in
src/Scene/commonSceneMethod.ts:128
render
▸ render(): void
Returns
void
Overrides
Defined in
src/Scene/copperSceneOnDemond.ts:63
requestRenderIfNotRequested
▸ requestRenderIfNotRequested(): void
Returns
void
Defined in
src/Scene/copperSceneOnDemond.ts:70
setDepth
▸ setDepth(value
): void
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:111
setDicomFilesOrder
▸ setDicomFilesOrder(value
): void
Parameters
Name | Type |
---|---|
value | "ascending" | "descending" |
Returns
void
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:114
setViewPoint
▸ setViewPoint(camera
, target?
): CameraViewPoint
Parameters
Name | Type |
---|---|
camera | PerspectiveCamera |
target? | number [] |
Returns
Inherited from
Defined in
updateBackground
▸ updateBackground(color1
, color2
): void
Parameters
Name | Type |
---|---|
color1 | string |
color2 | string |
Returns
void
Inherited from
Defined in
updateControls
▸ updateControls(camera
): void
Parameters
Name | Type |
---|---|
camera | PerspectiveCamera | OrthographicCamera |
Returns
void
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:329
updateDisplay
▸ updateDisplay(state
): void
Parameters
Name | Type |
---|---|
state | baseStateType |
Returns
void
Inherited from
Defined in
updateLights
▸ updateLights(state
): void
Parameters
Name | Type |
---|---|
state | baseStateType |
Returns
void
Inherited from
Defined in
updateModelChildrenVisualisation
▸ updateModelChildrenVisualisation(child
): void
Parameters
Name | Type |
---|---|
child | Mesh <BufferGeometry <NormalBufferAttributes >, Material | Material [], Object3DEventMap > |
Returns
void
Inherited from
baseScene.updateModelChildrenVisualisation