OpenGL Library for Delphi,
maintained by Eric Grange,
based on Mike Lischke's GLScene.

 

Reference Manual - TGLDummyCube

image

This is an invisible cube who's main purpose is to group together other shapes. For example you might create a cricket bat that is made up of a cylinder and a rectangular cube. If, for example, you wanted to rotate the cricket bat 90 degrees, you'd define the cylinder and rectangular cube as children of a dummy cube and then rotate the dummy cube 90 degrees. Otherwise you'd have to rotate the cylinder and rectangular cube seperately.
Dummy cubes can also be used as a target for a camera. You might want the camera to look in a certain direction but without the camera having to target an object that is visible.

Important properties of TGLDummyCube:
caminvariance :TGLCameraInvarianceMode Specifies how the children of the dummycube are displayed relative to the camera. It is possible to set the camera invariance so that the childrens positions remain fixed relative to the camera. Likewise with orientation. Refer to TGLCameraInvarianceMode for more information.

cubesize :integer
The length of an edge on the dummycube.

visibleatruntime: boolean
By default a dummycube is invisible at runtime. To make it visible set it to true and you'll see a white line on the edges of the cube.

edgecolor:TGLColor
The color of the dummycube if it is visible at runtime.

The following is a more formal explanation. A simple cube, invisible at run-time. This is a usually non-visible object except at design-time used for building hierarchies or groups, when some kind of joint or movement mechanism needs be described, you can use Dummycubes.Dummycube's barycenter is its children's barycenter. The Dummycube can optionnally amalgamate all its children into a single display list (see Amalgamate property).


Unit: GLObjects

Descends from TGLCameraInvariantObject.
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.2
Page was generated in 0.0349 seconds