The group object

The group object defines a collection of patches within your model. For this collection the group object is the placeholder for all information regarding this part of your model surface. The group defines the material characteristics of the surface and also an area that can be used to signal mouse events to your script.

Note that several events are listed below. Strictly speaking these are not events but properties. You can assign a JScript function to these properties that gets fired when this event occurs.

Properties, Events and Methods

Name Type Description
onclick EventSets a function to be executed when any part of this group gets clicked
ondblclick EventSets a function to be executed when any part of this group gets double clicked
onlbuttondown EventSets a function to be executed when the left button is pressed while the cursor is above any part of this group.
onlbuttonup EventSets a function to be executed when the left button is released.
onmouseout EventSets a function to be executed when the cursor leaves this group.
onmouseover EventSets a function to be executed when the cursor first hits any part of this model.
ambient(Float) PropertyThe ambient light intensity of this group.
diffuseColor PropertyReturns a vector object representing the diffuse colour of this group.
hitTesting(BOOL) PropertySets or retrieves the hit testing mode for this group.
name(String) PropertyRetrieves the name of the group.
renderGroup(BOOL) PropertyBoolean controlling if any of the patches belonging to this group will be rendered or not.
specularColor PropertyReturns a vector object representing the specular colour of this group.
specularInt(Float) PropertyThe specular intensity of this group material.
specularSize(Float) PropertyThe specular size of this group material.
transparency(Float) PropertySets the transparency of this group material.

 

©2000 arcticpigs. All rights reserved.
This is a draft version! The functionality of parts of the software are liable to change.