Molecule Reference

From oWiki

Jump to: navigation, search

oTakhi Condenser currently offers 34 molecules for assembling cloud formations and web applications. They are separated into 2 packs. The Basic pack contains the essential molecules for creating interactive contents, whereas the 3D pack enables you to create real-time 3D online games. In the future, more molecule packs will be released allowing you to create more and more sophisticated online apps.


Each molecule supports a set of attributes and methods. During Condenser's Edit phase, attributes can be modified in the molecule's preference dialog. This dialog can be invoked simply by clicking on the molecule's icon. During the Preview or Runtime phase, both attributes and methods are available for scripting using the oTakhi Scripting Object Model (oSOM).


oSOM describes the hierarchical relationship among build-in objects provided by oTakhi platform. For instance, the app object is always at the root of the application. At the next level are the droplets which are containers that hold molecules from an even lower level.


Each object, its attributes and methods, can all be accessed using their corresponding scripting path within oSOM's scripting environment (e.g. app.​droplet.​molecules[1].​method()).


Droplets and molecules, that have pref.name attribute, can be dynamically renamed and the new name immediately becomes the property of the parent object for accessing that droplet or molecule. This feature makes oSOM a very dynamic and flexible scripting environment.


app

app
The application root.


droplet

droplet
A programmable container for molecules.


Basic Pack

The basic pack consists of 24 molecules.


Text Molecule

Text Molecule is an HTML container and renderer.

Image Molecule

Image molecule places an external image into a droplet.

Boxmod Molecule

Boxmod molecule is a portable CSS style sheet for styling a droplet.

Script Molecule

Script molecule is a JavaScript container for adding programmable behavior to a droplet.

Cursor Molecule

Cursor molecule adds custom or system cursor to a droplet.

Keyboard Molecule

Keyboard molecule allows a droplet to respond to key presses.

HR Molecule

HR molecule adds horizontal rule to a droplet.

IFrame Molecule

IFrame molecule allows droplets to load external web pages and web apps.

Quicktime Molecule

Quicktime molecule places a quicktime movie in a droplet.

Flash Molecule

Flash molecule places a flash movie in a droplet.

Var Molecule

Var molecule adds a JavaScript variable to a droplet.

Object Molecule

Object molecule adds a JavaScript object to a droplet.

Array Molecule

Array molecule adds a JavaScript array to a droplet.

Timer Molecule

Timer molecule adds a JavaScript timer to a droplet.

Event Receiver Molecule

Event Receiver molecule allows a droplet to respond to custom DOM events.

Messenger Molecule

Messenger molecule allows a droplet to broadcast custom DOM events to all or a sub-group of droplets.

Canvas Molecule

Canvas molecule adds vector graphics or image patterns to a droplet.

XML Molecule

XML molecule adds XML document generation, parsing, validation, and transformation capabilities to a droplet.

AJAX Molecule

AJAX molecule provides AJAX service to a droplet.

CCRX Molecule

CCRX molecule provides Common Code Request and eXchange protocol (CCRX) service to a droplet.

Server Molecule

Server molecule adds a server socket to a droplet.

Client Molecule

Client molecule adds a client socket to a droplet.

GMap Molecule

GMap molecule adds a programmable Google Map to a droplet.

Alias Molecule

Alias molecule allows a droplet to inherit different behavior dynamically from external JavaScript Molecules.


3D Pack

The 3D pack has 10 molecules.


Camera Molecule

Camera Molecule adds a 3D scene to a droplet.

Light Molecule

Light Molecule adds a point, spot, or directional light to the 3d scene.

Mesh Molecule

Mesh Molecule adds a 3D mesh to the scene.

Material Molecule

Material Molecule adds a material to a droplet, which immediately become applicable to other molecules.

Environment Molecule

Environment Molecule adds environment effects to the 3d scene such as sky box, sky dome, and fog.

Terrain Molecule

Terrain Molecule adds a configurable terrain to the 3d scene.

Billboard Molecule

Billboard Molecule adds a billboard to the 3d scene. Billboards are objects that are always perpendicular to the view direction of the camera.

Particle Molecule

Particle Molecule adds particle effects to the 3d scene such as firework, rain, smoke, etc.

Manual Object Molecule

Manual Object Molecule allows the construction 3D objects on the fly by adding a set of vertices.

CG Molecule

CG stands for "C for Graphics". CG molecule provides the capabilities of a programmable rendering pipeline. It allows dynamical compilation and execution of cg codes of both vertex and fragment programs.


Helper Objects

AnimationBlender

Blend multiple animations into one sequence using bone weighting.

AnimationSequence

Concatenate multiple animations into one sequence with smooth transitions.

CCRxXMLGenerator

XML Generator

CCRxXMLTransformer

XML Transformer.

CCRxXMLValidator

XML Validator.

NewtonJoint

Different types of joints between 3D mesh entities.

Overlay

Overlay is a layer which is rendered on top of the 'normal' scene contents.

OverlayElement

OverlayElement is a 2D element to be displayed in an Overlay.

ParticleEmitter

Particle emitters are the sources of particles in a particle system.

ParticleAffector

Particle affectors modify particles in a particle system over their lifetime.

Pass

Rendering can be repeated with many passes for more complex effects.

Pose

A Pose of an mesh used to perform vertex animation.

Projector

Utility object for performing texture projection such as decals.

RGBA

Object representing the standard color.

SimpleSpline

Utility object for spline calculation.

SubEntity

Utility object which defines the sub-parts of an Mesh Entity.

SubMesh

Utility object which defines a part of an Mesh.

TextureUnit

Object representing the state of a single texture unit during a Pass of a Technique, of a Material.

VectorMath

A utility object for performing vector math.

VertexKeyFrame

A Key Frame in a vertex animation.

Personal tools