Appearance
copper3d / Modules / Scene/baseScene / baseScene
Class: baseScene
Scene/baseScene.baseScene
Hierarchy
↳
baseScene
↳↳
copperScene
Table of contents
Constructors
Properties
- ambientLight
- camera
- cameraPositionFlag
- color1
- color2
- container
- content
- controls
- copperControl
- copperOrthographicCamera
- copperPerspectiveCamera
- depthStep
- directionalLight
- exportContent
- isHalfed
- lights
- pickableObjects
- preRenderCallbackFunctions
- renderNrrdVolume
- renderer
- scene
- sceneName
- sort
- subCamera
- subCopperControl
- subDiv
- subRender
- subScene
- viewPoint
- vignette
Methods
- addLights
- addObject
- addPreRenderCallbackFunction
- addSubView
- createDemoMesh
- getDefaultViewPoint
- init
- loadDicom
- loadMetadataUrl
- loadNrrd
- loadNrrdTexture3d
- loadOBJ
- loadView
- loadViewUrl
- onRenderCameraChange
- onWindowResize
- pickModel
- pickSpecifiedModel
- removeLights
- removePreRenderCallbackFunction
- render
- setDepth
- setDicomFilesOrder
- setViewPoint
- updateBackground
- updateControls
- updateDisplay
- updateLights
- updateModelChildrenVisualisation
Constructors
constructor
• new baseScene(container
, renderer
, opt?
)
Parameters
Name | Type |
---|---|
container | HTMLDivElement |
renderer | WebGLRenderer |
opt? | ICopperSceneOpts |
Overrides
Defined in
Properties
ambientLight
• ambientLight: AmbientLight
Defined in
camera
• camera: PerspectiveCamera
| OrthographicCamera
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:29
cameraPositionFlag
• cameraPositionFlag: boolean
= false
Defined in
color1
• Private
color1: string
= "#5454ad"
Defined in
color2
• Private
color2: string
= "#18e5a7"
Defined in
container
• container: HTMLDivElement
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:27
content
• content: Group
<Object3DEventMap
>
Defined in
controls
• controls: Copper3dTrackballControls
| OrbitControls
| TrackballControls
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:37
copperControl
• copperControl: Controls
Defined in
copperOrthographicCamera
• copperOrthographicCamera: OrthographicCamera
Inherited from
commonScene.copperOrthographicCamera
Defined in
src/Scene/commonSceneMethod.ts:32
copperPerspectiveCamera
• copperPerspectiveCamera: PerspectiveCamera
Inherited from
commonScene.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
Defined in
exportContent
• exportContent: Group
<Object3DEventMap
>
Defined in
isHalfed
• isHalfed: boolean
= false
Defined in
lights
• Private
lights: any
[] = []
Defined in
pickableObjects
• Protected
pickableObjects: Mesh
<BufferGeometry
<NormalBufferAttributes
>, Material
| Material
[], Object3DEventMap
>[] = []
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:46
preRenderCallbackFunctions
• Protected
preRenderCallbackFunctions: preRenderCallbackFunctionType
Inherited from
commonScene.preRenderCallbackFunctions
Defined in
src/Scene/commonSceneMethod.ts:42
renderNrrdVolume
• Protected
renderNrrdVolume: boolean
= false
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:40
renderer
• renderer: WebGLRenderer
Defined in
scene
• scene: Scene
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:28
sceneName
• sceneName: string
= ""
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
Defined in
vignette
• vignette: undefined
| customMeshType
Defined in
Methods
addLights
▸ addLights(): void
Returns
void
Defined in
addObject
▸ addObject(obj
): void
Parameters
Name | Type |
---|---|
obj | any |
Returns
void
Overrides
Defined in
addPreRenderCallbackFunction
▸ addPreRenderCallbackFunction(callbackFunction
): number
Parameters
Name | Type |
---|---|
callbackFunction | Function |
Returns
number
Inherited from
commonScene.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
createDemoMesh
▸ createDemoMesh(): void
Returns
void
Inherited from
Defined in
src/Scene/commonSceneMethod.ts:96
getDefaultViewPoint
▸ getDefaultViewPoint(): CameraViewPoint
Returns
Defined in
init
▸ init(): void
Returns
void
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
loadMetadataUrl
▸ loadMetadataUrl(url
): void
Parameters
Name | Type |
---|---|
url | string |
Returns
void
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
Defined in
loadViewUrl
▸ loadViewUrl(url
): void
Parameters
Name | Type |
---|---|
url | string |
Returns
void
Defined in
onRenderCameraChange
▸ onRenderCameraChange(): void
Returns
void
Defined in
onWindowResize
▸ onWindowResize(): void
Returns
void
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
commonScene.pickSpecifiedModel
Defined in
src/Scene/commonSceneMethod.ts:154
removeLights
▸ removeLights(): void
Returns
void
Defined in
removePreRenderCallbackFunction
▸ removePreRenderCallbackFunction(id
): void
Parameters
Name | Type |
---|---|
id | number |
Returns
void
Inherited from
commonScene.removePreRenderCallbackFunction
Defined in
src/Scene/commonSceneMethod.ts:128
render
▸ render(time?
): void
Parameters
Name | Type |
---|---|
time? | number |
Returns
void
Defined in
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
commonScene.setDicomFilesOrder
Defined in
src/Scene/commonSceneMethod.ts:114
setViewPoint
▸ setViewPoint(camera
, target?
): CameraViewPoint
Parameters
Name | Type |
---|---|
camera | PerspectiveCamera |
target? | number [] |
Returns
Defined in
updateBackground
▸ updateBackground(color1
, color2
): void
Parameters
Name | Type |
---|---|
color1 | string |
color2 | string |
Returns
void
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
Defined in
updateLights
▸ updateLights(state
): void
Parameters
Name | Type |
---|---|
state | baseStateType |
Returns
void
Defined in
updateModelChildrenVisualisation
▸ updateModelChildrenVisualisation(child
): void
Parameters
Name | Type |
---|---|
child | Mesh <BufferGeometry <NormalBufferAttributes >, Material | Material [], Object3DEventMap > |
Returns
void