Skip to content

copper3d / Modules / Scene/copperMScene / copperMScene

Class: copperMScene

Scene/copperMScene.copperMScene

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new copperMScene(container, renderer)

Parameters

NameType
containerHTMLDivElement
rendererWebGLRenderer

Overrides

commonScene.constructor

Defined in

src/Scene/copperMScene.ts:51

Properties

ambientLight

ambientLight: AmbientLight

Defined in

src/Scene/copperMScene.ts:39


camera

camera: PerspectiveCamera | OrthographicCamera

Inherited from

commonScene.camera

Defined in

src/Scene/commonSceneMethod.ts:29


cameraPositionFlag

cameraPositionFlag: boolean = false

Defined in

src/Scene/copperMScene.ts:42


color1

Private color1: string = "#5454ad"

Defined in

src/Scene/copperMScene.ts:46


color2

Private color2: string = "#18e5a7"

Defined in

src/Scene/copperMScene.ts:47


container

container: HTMLDivElement

Overrides

commonScene.container

Defined in

src/Scene/copperMScene.ts:34


content

content: Group<Object3DEventMap>

Defined in

src/Scene/copperMScene.ts:43


controls

controls: Copper3dTrackballControls | OrbitControls | TrackballControls

Inherited from

commonScene.controls

Defined in

src/Scene/commonSceneMethod.ts:37


copperControl

copperControl: Controls

Defined in

src/Scene/copperMScene.ts:40


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

commonScene.depthStep

Defined in

src/Scene/commonSceneMethod.ts:44


directionalLight

directionalLight: DirectionalLight

Defined in

src/Scene/copperMScene.ts:38


gui

gui: GUI

Defined in

src/Scene/copperMScene.ts:30


guiContainer

Private guiContainer: HTMLDivElement

Defined in

src/Scene/copperMScene.ts:49


isHalfed

isHalfed: boolean = false

Defined in

src/Scene/copperMScene.ts:44


lights

Private lights: any[] = []

Defined in

src/Scene/copperMScene.ts:48


pickableObjects

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

Inherited from

commonScene.pickableObjects

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

commonScene.renderNrrdVolume

Defined in

src/Scene/commonSceneMethod.ts:40


renderer

renderer: WebGLRenderer

Defined in

src/Scene/copperMScene.ts:35


scene

scene: Scene

Inherited from

commonScene.scene

Defined in

src/Scene/commonSceneMethod.ts:28


sceneName

sceneName: string = ""

Defined in

src/Scene/copperMScene.ts:36


sort

Protected sort: boolean = true

Inherited from

commonScene.sort

Defined in

src/Scene/commonSceneMethod.ts:43


subCamera

subCamera: null | PerspectiveCamera = null

Inherited from

commonScene.subCamera

Defined in

src/Scene/commonSceneMethod.ts:36


subCopperControl

Protected subCopperControl: null | Controls = null

Inherited from

commonScene.subCopperControl

Defined in

src/Scene/commonSceneMethod.ts:39


subDiv

subDiv: null | HTMLDivElement = null

Inherited from

commonScene.subDiv

Defined in

src/Scene/commonSceneMethod.ts:34


subRender

Protected subRender: null | WebGLRenderer = null

Inherited from

commonScene.subRender

Defined in

src/Scene/commonSceneMethod.ts:38


subScene

subScene: Scene

Inherited from

commonScene.subScene

Defined in

src/Scene/commonSceneMethod.ts:35


viewPoint

viewPoint: CameraViewPoint

Defined in

src/Scene/copperMScene.ts:41


vignette

vignette: customMeshType

Defined in

src/Scene/copperMScene.ts:37

Methods

addLights

addLights(): void

Returns

void

Defined in

src/Scene/copperMScene.ts:299


addObject

addObject(obj): void

Parameters

NameType
objany

Returns

void

Inherited from

commonScene.addObject

Defined in

src/Scene/commonSceneMethod.ts:107


addPreRenderCallbackFunction

addPreRenderCallbackFunction(callbackFunction): number

Parameters

NameType
callbackFunctionFunction

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

commonScene.addSubView

Defined in

src/Scene/commonSceneMethod.ts:174


createDemoMesh

createDemoMesh(): void

Returns

void

Inherited from

commonScene.createDemoMesh

Defined in

src/Scene/commonSceneMethod.ts:96


drawWholeNrrd

drawWholeNrrd(nrrdSlices): void

Parameters

NameType
nrrdSlicesnrrdSliceType

Returns

void

Defined in

src/Scene/copperMScene.ts:284


init

init(): void

Returns

void

Defined in

src/Scene/copperMScene.ts:94


loadDicom

loadDicom(urls, opts?): void

Parameters

NameType
urlsstring | string[]
opts?dicomLoaderOptsType

Returns

void

Inherited from

commonScene.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/copperMScene.ts:144


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

commonScene.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

commonScene.loadNrrdTexture3d

Defined in

src/Scene/commonSceneMethod.ts:338


loadOBJ

loadOBJ(url, callback?): void

Parameters

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

Returns

void

Overrides

commonScene.loadOBJ

Defined in

src/Scene/copperMScene.ts:237


loadView

loadView(viewpointData): void

Parameters

NameType
viewpointDataCameraViewPoint

Returns

void

Defined in

src/Scene/copperMScene.ts:331


loadViewUrl

loadViewUrl(url): void

Parameters

NameType
urlstring

Returns

void

Defined in

src/Scene/copperMScene.ts:319


onWindowResize

onWindowResize(): void

Returns

void

Defined in

src/Scene/copperMScene.ts:366


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

commonScene.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

commonScene.pickSpecifiedModel

Defined in

src/Scene/commonSceneMethod.ts:154


removeLights

removeLights(): void

Returns

void

Defined in

src/Scene/copperMScene.ts:312


removePreRenderCallbackFunction

removePreRenderCallbackFunction(id): void

Parameters

NameType
idnumber

Returns

void

Overrides

commonScene.removePreRenderCallbackFunction

Defined in

src/Scene/copperMScene.ts:357


render

render(): void

Returns

void

Defined in

src/Scene/copperMScene.ts:390


resetView

resetView(): void

Returns

void

Defined in

src/Scene/copperMScene.ts:361


setCameraPosition

setCameraPosition(position): void

Parameters

NameType
positionpositionType

Returns

void

Defined in

src/Scene/copperMScene.ts:350


setControls

setControls(type): void

Parameters

NameType
typenumber

Returns

void

Defined in

src/Scene/copperMScene.ts:123


setDepth

setDepth(value): void

Parameters

NameType
valuenumber

Returns

void

Inherited from

commonScene.setDepth

Defined in

src/Scene/commonSceneMethod.ts:111


setDicomFilesOrder

setDicomFilesOrder(value): void

Parameters

NameType
value"ascending" | "descending"

Returns

void

Inherited from

commonScene.setDicomFilesOrder

Defined in

src/Scene/commonSceneMethod.ts:114


setViewPoint

setViewPoint(camera, target?): CameraViewPoint

Parameters

NameType
cameraPerspectiveCamera
target?number[]

Returns

CameraViewPoint

Defined in

src/Scene/copperMScene.ts:215


updateBackground

updateBackground(color1, color2): void

Parameters

NameType
color1string
color2string

Returns

void

Defined in

src/Scene/copperMScene.ts:293


updateCamera

updateCamera(viewpoint): void

Parameters

NameType
viewpointCameraViewPoint

Returns

void

Defined in

src/Scene/copperMScene.ts:345


updateControls

updateControls(camera): void

Parameters

NameType
cameraPerspectiveCamera | OrthographicCamera

Returns

void

Inherited from

commonScene.updateControls

Defined in

src/Scene/commonSceneMethod.ts:329