Skip to content

copper3d / Modules / Scene/copperScene / copperScene

Class: copperScene

Scene/copperScene.copperScene

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new copperScene(container, renderer, opt?)

Parameters

NameType
containerHTMLDivElement
rendererWebGLRenderer
opt?ICopperSceneOpts

Overrides

baseScene.constructor

Defined in

src/Scene/copperScene.ts:30

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


clipAction

Private clipAction: any

Defined in

src/Scene/copperScene.ts:24


clock

clock: Clock

Defined in

src/Scene/copperScene.ts:17


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: Copper3dTrackballControls | OrbitControls | TrackballControls

Overrides

baseScene.controls

Defined in

src/Scene/copperScene.ts:18


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


mixer

Private mixer: null | AnimationMixer = null

Defined in

src/Scene/copperScene.ts:21


modelReady

Private modelReady: boolean = false

Defined in

src/Scene/copperScene.ts:23


pickableObjects

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

Inherited from

baseScene.pickableObjects

Defined in

src/Scene/commonSceneMethod.ts:46


playRate

Private playRate: number = 1.0

Defined in

src/Scene/copperScene.ts:22


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


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


texture2dMesh

Private texture2dMesh: null | Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap> = null

Defined in

src/Scene/copperScene.ts:28


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


createDemoMesh

createDemoMesh(): void

Returns

void

Inherited from

baseScene.createDemoMesh

Defined in

src/Scene/commonSceneMethod.ts:96


getCurrentMixer

getCurrentMixer(): null | AnimationMixer

Returns

null | AnimationMixer

Defined in

src/Scene/copperScene.ts:327


getCurrentTime

getCurrentTime(): number

Returns

number

Defined in

src/Scene/copperScene.ts:319


getDefaultViewPoint

getDefaultViewPoint(): CameraViewPoint

Returns

CameraViewPoint

Inherited from

baseScene.getDefaultViewPoint

Defined in

src/Scene/baseScene.ts:109


getPlayRate

getPlayRate(): number

Returns

number

Defined in

src/Scene/copperScene.ts:292


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/copperScene.ts:56


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


loadVtk

loadVtk(url): void

Parameters

NameType
urlstring

Returns

void

Defined in

src/Scene/copperScene.ts:146


loadVtks

loadVtks(models): void

Parameters

NameType
modelsvtkModels[]

Returns

void

Defined in

src/Scene/copperScene.ts:150


onRenderCameraChange

onRenderCameraChange(): void

Returns

void

Overrides

baseScene.onRenderCameraChange

Defined in

src/Scene/copperScene.ts:344


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(time?): void

Parameters

NameType
time?number

Returns

void

Overrides

baseScene.render

Defined in

src/Scene/copperScene.ts:359


resetView

resetView(): void

Returns

void

Defined in

src/Scene/copperScene.ts:309


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


setModelPosition

setModelPosition(model, position): void

Parameters

NameType
modelGroup<Object3DEventMap> | Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>
positionObject
position.x?number
position.y?number
position.z?number

Returns

void

Defined in

src/Scene/copperScene.ts:300


setPlayRate

setPlayRate(playRate): void

Parameters

NameType
playRatenumber

Returns

void

Defined in

src/Scene/copperScene.ts:296


setViewPoint

setViewPoint(camera, target?): CameraViewPoint

Parameters

NameType
cameraPerspectiveCamera
target?number[]

Returns

CameraViewPoint

Inherited from

baseScene.setViewPoint

Defined in

src/Scene/baseScene.ts:113


texture2d

texture2d(url): void

Parameters

NameType
urlstring

Returns

void

Defined in

src/Scene/copperScene.ts:255


updateBackground

updateBackground(color1, color2): void

Parameters

NameType
color1string
color2string

Returns

void

Inherited from

baseScene.updateBackground

Defined in

src/Scene/baseScene.ts:179


updateCamera

updateCamera(viewpoint): void

Parameters

NameType
viewpointCameraViewPoint

Returns

void

Defined in

src/Scene/copperScene.ts:314


updateControls

updateControls(camera): void

Parameters

NameType
cameraPerspectiveCamera | OrthographicCamera

Returns

void

Overrides

baseScene.updateControls

Defined in

src/Scene/copperScene.ts:331


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