Graphics3DApplication

Graphics3DApplication

new Graphics3DApplication()

Source:
Graphics 3D Application

Classes

Graphics3DApplication

Methods

addCustomizedMesh()

Source:
Adding a customized mesh

(async) addTestGenome()

Source:
Add a test genome

(async) addTestLine()

Source:
Add a test line

addTestSphere(x, y, z)

Source:
Add a test sphere at x,y,z
Parameters:
Name Type Description
x Number
y Number
z Number

addUpdateFunctions(f)

Source:
Add a function to execute every render loop
Parameters:
Name Type Description
f function

animate(app)

Source:
Animate the application
Parameters:
Name Type Description
app *

executeUpdateFunctions()

Source:
Execute update functions in the updateFunctions queue

(async) getGenomeDataByURL(url) → {Chrom3DModel}

Source:
Async retrieve the genome data given a url
Parameters:
Name Type Description
url String
Returns:
Type
Chrom3DModel

(async) getURLData(url) → {response}

Source:
Async get URL data
Parameters:
Name Type Description
url String
Returns:
Type
response

init()

Source:
Init 3D Application

initBBox(parentDOM)

Source:
Set the base DOM box given parent DOM
Parameters:
Name Type Description
parentDOM *

initCamera()

Source:
Init the camera element of the 3D Application

initController()

Source:
Init the scene controller

initLight()

Source:
Init the light element of the 3D Application

initRenderer()

Source:
Init the renderer element

initScene()

Source:
init the THREE.scene element of the 3D Application

parseGenomeStringData(str) → {Chrom3DModel}

Source:
Convert a genome string file to Chrom3DModel
Parameters:
Name Type Description
str String
Returns:
Type
Chrom3DModel

render()

Source:
Render the scene