Skip to content

copper3d / Modules / Scene/copperSceneOnDemond / copperSceneOnDemond

Class: copperSceneOnDemond

Scene/copperSceneOnDemond.copperSceneOnDemond

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new copperSceneOnDemond(container, renderer)

Parameters

NameType
containerHTMLDivElement
rendererWebGLRenderer

Overrides

baseScene.constructor

Defined in

src/Scene/copperSceneOnDemond.ts:12

Properties

ambientLight

ambientLight: AmbientLight

Inherited from

baseScene.ambientLight

Defined in

src/Scene/baseScene.ts:18


camera

camera: PerspectiveCamera | OrthographicCamera

Inherited from

baseScene.camera

Defined in

src/Scene/commonSceneMethod.ts:29


cameraPositionFlag

cameraPositionFlag: boolean = false

Inherited from

baseScene.cameraPositionFlag

Defined in

src/Scene/baseScene.ts:20


container

container: HTMLDivElement

Inherited from

baseScene.container

Defined in

src/Scene/commonSceneMethod.ts:27


content

content: Group<Object3DEventMap>

Inherited from

baseScene.content

Defined in

src/Scene/baseScene.ts:21


controls

controls: OrbitControls

Overrides

baseScene.controls

Defined in

src/Scene/copperSceneOnDemond.ts:8


copperControl

copperControl: Controls

Inherited from

baseScene.copperControl

Defined in

src/Scene/baseScene.ts:19


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

baseScene.depthStep

Defined in

src/Scene/commonSceneMethod.ts:44


directionalLight

directionalLight: DirectionalLight

Inherited from

baseScene.directionalLight

Defined in

src/Scene/baseScene.ts:17


exportContent

exportContent: Group<Object3DEventMap>

Inherited from

baseScene.exportContent

Defined in

src/Scene/baseScene.ts:22


isHalfed

isHalfed: boolean = false

Inherited from

baseScene.isHalfed

Defined in

src/Scene/baseScene.ts:23


isResize

isResize: boolean = false

Defined in

src/Scene/copperSceneOnDemond.ts:10


pickableObjects

Protected pickableObjects: Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>[] = []

Inherited from

baseScene.pickableObjects

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

baseScene.renderNrrdVolume

Defined in

src/Scene/commonSceneMethod.ts:40


renderRequested

renderRequested: undefined | boolean = false

Defined in

src/Scene/copperSceneOnDemond.ts:9


renderer

renderer: WebGLRenderer

Inherited from

baseScene.renderer

Defined in

src/Scene/baseScene.ts:12


scene

scene: Scene

Inherited from

baseScene.scene

Defined in

src/Scene/commonSceneMethod.ts:28


sceneName

sceneName: string = ""

Inherited from

baseScene.sceneName

Defined in

src/Scene/baseScene.ts:15


sort

Protected sort: boolean = true

Inherited from

baseScene.sort

Defined in

src/Scene/commonSceneMethod.ts:43


subCamera

subCamera: null | PerspectiveCamera = null

Inherited from

baseScene.subCamera

Defined in

src/Scene/commonSceneMethod.ts:36


subCopperControl

Protected subCopperControl: null | Controls = null

Inherited from

baseScene.subCopperControl

Defined in

src/Scene/commonSceneMethod.ts:39


subDiv

subDiv: null | HTMLDivElement = null

Inherited from

baseScene.subDiv

Defined in

src/Scene/commonSceneMethod.ts:34


subRender

Protected subRender: null | WebGLRenderer = null

Inherited from

baseScene.subRender

Defined in

src/Scene/commonSceneMethod.ts:38


subScene

subScene: Scene

Inherited from

baseScene.subScene

Defined in

src/Scene/commonSceneMethod.ts:35


viewPoint

viewPoint: CameraViewPoint

Inherited from

baseScene.viewPoint

Defined in

src/Scene/baseScene.ts:24


vignette

vignette: undefined | customMeshType

Inherited from

baseScene.vignette

Defined in

src/Scene/baseScene.ts:16

Methods

addLights

addLights(): void

Returns

void

Inherited from

baseScene.addLights

Defined in

src/Scene/baseScene.ts:138


addObject

addObject(obj): void

Parameters

NameType
objany

Returns

void

Inherited from

baseScene.addObject

Defined in

src/Scene/baseScene.ts:134


addPreRenderCallbackFunction

addPreRenderCallbackFunction(callbackFunction): number

Parameters

NameType
callbackFunctionFunction

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

baseScene.addSubView

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

baseScene.createDemoMesh

Defined in

src/Scene/commonSceneMethod.ts:96


getDefaultViewPoint

getDefaultViewPoint(): CameraViewPoint

Returns

CameraViewPoint

Inherited from

baseScene.getDefaultViewPoint

Defined in

src/Scene/baseScene.ts:109


init

init(): void

Returns

void

Inherited from

baseScene.init

Defined in

src/Scene/baseScene.ts:54


loadDicom

loadDicom(urls, opts?): void

Parameters

NameType
urlsstring | string[]
opts?dicomLoaderOptsType

Returns

void

Inherited from

baseScene.loadDicom

Defined in

src/Scene/commonSceneMethod.ts:198


loadGltf

loadGltf(url, callback?): void

Parameters

NameType
urlstring
callback?(content: Group<Object3DEventMap>) => void

Returns

void

Defined in

src/Scene/copperSceneOnDemond.ts:21


loadMetadataUrl

loadMetadataUrl(url): void

Parameters

NameType
urlstring

Returns

void

Inherited from

baseScene.loadMetadataUrl

Defined in

src/Scene/baseScene.ts:68


loadNrrd

loadNrrd(url, loadingBar, segmentation, callback?, opts?): void

Parameters

NameType
urlstring
loadingBarloadingBarType
segmentationboolean
callback?(volume: any, nrrdMeshes: nrrdMeshesType, nrrdSlices: nrrdSliceType, gui?: GUI) => void
opts?optsType

Returns

void

Inherited from

baseScene.loadNrrd

Defined in

src/Scene/commonSceneMethod.ts:314


loadNrrdTexture3d

loadNrrdTexture3d(url, callback?): void

Parameters

NameType
urlstring
callback?(volume: any, gui?: GUI) => void

Returns

void

Inherited from

baseScene.loadNrrdTexture3d

Defined in

src/Scene/commonSceneMethod.ts:338


loadOBJ

loadOBJ(url, callback?, opts?): void

Parameters

NameType
urlstring
callback?(mesh: Group<Object3DEventMap>) => void
opts?Object
opts.colorstring

Returns

void

Inherited from

baseScene.loadOBJ

Defined in

src/Scene/commonSceneMethod.ts:350


loadView

loadView(viewpointData): void

Parameters

NameType
viewpointDataCameraViewPoint

Returns

void

Inherited from

baseScene.loadView

Defined in

src/Scene/baseScene.ts:97


loadViewUrl

loadViewUrl(url): void

Parameters

NameType
urlstring

Returns

void

Inherited from

baseScene.loadViewUrl

Defined in

src/Scene/baseScene.ts:85


onRenderCameraChange

onRenderCameraChange(): void

Returns

void

Inherited from

baseScene.onRenderCameraChange

Defined in

src/Scene/baseScene.ts:193


onWindowResize

onWindowResize(): void

Returns

void

Inherited from

baseScene.onWindowResize

Defined in

src/Scene/baseScene.ts:199


pickModel

pickModel(content, callback, options?): void

Parameters

NameType
contentGroup<Object3DEventMap>
callback(selectMesh: undefined | Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>) => void
options?string[]

Returns

void

Inherited from

baseScene.pickModel

Defined in

src/Scene/commonSceneMethod.ts:132


pickSpecifiedModel

pickSpecifiedModel(content, mousePosition): Object

Parameters

NameType
contentMesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap> | Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>[]
mousePositionmouseMovePositionType

Returns

Object

NameType
intersectedObjectnull | Object3D<Object3DEventMap>
intersectsIntersection<Object3D<Object3DEventMap>>[]

Inherited from

baseScene.pickSpecifiedModel

Defined in

src/Scene/commonSceneMethod.ts:154


removeLights

removeLights(): void

Returns

void

Inherited from

baseScene.removeLights

Defined in

src/Scene/baseScene.ts:151


removePreRenderCallbackFunction

removePreRenderCallbackFunction(id): void

Parameters

NameType
idnumber

Returns

void

Inherited from

baseScene.removePreRenderCallbackFunction

Defined in

src/Scene/commonSceneMethod.ts:128


render

render(): void

Returns

void

Overrides

baseScene.render

Defined in

src/Scene/copperSceneOnDemond.ts:63


requestRenderIfNotRequested

requestRenderIfNotRequested(): void

Returns

void

Defined in

src/Scene/copperSceneOnDemond.ts:70


setDepth

setDepth(value): void

Parameters

NameType
valuenumber

Returns

void

Inherited from

baseScene.setDepth

Defined in

src/Scene/commonSceneMethod.ts:111


setDicomFilesOrder

setDicomFilesOrder(value): void

Parameters

NameType
value"ascending" | "descending"

Returns

void

Inherited from

baseScene.setDicomFilesOrder

Defined in

src/Scene/commonSceneMethod.ts:114


setViewPoint

setViewPoint(camera, target?): CameraViewPoint

Parameters

NameType
cameraPerspectiveCamera
target?number[]

Returns

CameraViewPoint

Inherited from

baseScene.setViewPoint

Defined in

src/Scene/baseScene.ts:113


updateBackground

updateBackground(color1, color2): void

Parameters

NameType
color1string
color2string

Returns

void

Inherited from

baseScene.updateBackground

Defined in

src/Scene/baseScene.ts:179


updateControls

updateControls(camera): void

Parameters

NameType
cameraPerspectiveCamera | OrthographicCamera

Returns

void

Inherited from

baseScene.updateControls

Defined in

src/Scene/commonSceneMethod.ts:329


updateDisplay

updateDisplay(state): void

Parameters

NameType
statebaseStateType

Returns

void

Inherited from

baseScene.updateDisplay

Defined in

src/Scene/baseScene.ts:174


updateLights

updateLights(state): void

Parameters

NameType
statebaseStateType

Returns

void

Inherited from

baseScene.updateLights

Defined in

src/Scene/baseScene.ts:157


updateModelChildrenVisualisation

updateModelChildrenVisualisation(child): void

Parameters

NameType
childMesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>

Returns

void

Inherited from

baseScene.updateModelChildrenVisualisation

Defined in

src/Scene/baseScene.ts:184