| Home | zeGraph lib | Lua lib | Custom lib | Tutorials | Notes | XML Script | C-Talk | Z-Script |
Graph
   axis
   blend
   color
   color bar
   fog
   freetype
   light
   line
   material
   node
   point
   plot
   polygon
   render
   scene
   stencil
   texcoord
   text
   texture
   vertex
Utility
   array
   bio
   hdf
   make
   math
   netcdf
Auxiliary
   curl
   expact
   sqlite
   window

zeNode

Use .new("node") to create the object. It can contain any number of zeGraph objects of all type except for zeRender and zeScene. The order of callig translate, scale, and rotate functions matters.

:add(object[, object,...])

adds any numbers of objects to the node.

:clear()

Clears objects added to the node.

:rotatex(angle)
:rotatey(angle)
:rotatez(angle)

These functions rotate the object around the x-, y- and z-axis, respectively. The calling order matters.

:reset()

Resets the transformation to none.

:scale(xs, ys, zs)

Scales the object in x, y, and z direction for the factors of xs, ys, and zs.

:translate(dx, dy, dz)

Moves the object dx, dy, and dz away from the current position.

:set{..}

Sets node properties with a Lua table. Valid key-value pairs in the Lua table are listed as follows.

Key Value Type Remark
color {r, g, b, a} Numbers (0 to 1) in table Sets the default color for all object in the node.
open flag Boolean Sets the node as open or closed. In the closed state, the node saves all the OpenGL attributes before process objects in it and restores the attributes after processing.
enable flag Boolean Enables (default) and disables the object