new Graphics3DApplication()
Graphics 3D Application
Classes
Methods
addCustomizedMesh()
Adding a customized mesh
(async) addTestGenome()
Add a test genome
(async) addTestLine()
Add a test line
addTestSphere(x, y, z)
Add a test sphere at x,y,z
Parameters:
| Name | Type | Description |
|---|---|---|
x |
Number | |
y |
Number | |
z |
Number |
addUpdateFunctions(f)
Add a function to execute every render loop
Parameters:
| Name | Type | Description |
|---|---|---|
f |
function |
animate(app)
Animate the application
Parameters:
| Name | Type | Description |
|---|---|---|
app |
* |
executeUpdateFunctions()
Execute update functions in the updateFunctions queue
(async) getGenomeDataByURL(url) → {Chrom3DModel}
Async retrieve the genome data given a url
Parameters:
| Name | Type | Description |
|---|---|---|
url |
String |
Returns:
- Type
- Chrom3DModel
(async) getURLData(url) → {response}
Async get URL data
Parameters:
| Name | Type | Description |
|---|---|---|
url |
String |
Returns:
- Type
- response
init()
Init 3D Application
initBBox(parentDOM)
Set the base DOM box given parent DOM
Parameters:
| Name | Type | Description |
|---|---|---|
parentDOM |
* |
initCamera()
Init the camera element of the 3D Application
initController()
Init the scene controller
initLight()
Init the light element of the 3D Application
initRenderer()
Init the renderer element
initScene()
init the THREE.scene element of the 3D Application
parseGenomeStringData(str) → {Chrom3DModel}
Convert a genome string file to Chrom3DModel
Parameters:
| Name | Type | Description |
|---|---|---|
str |
String |
Returns:
- Type
- Chrom3DModel
render()
Render the scene