Synopsis
a renderable object that contains data plus attributes
DataObject
macro AltObject {
group &in {
GDxform_templ &xform;
method render;
};
DefaultProps+OPort Props;
DefaultModes+OPort Modes {
mode = { GD_NO_POINTS, GD_NO_LINES, GD_NO_SURF,
GD_NO_VOLUME, GD_BOUNDS };
};
DefaultObject+OPort Obj {
input => in;
props => Props;
modes => Modes;
};
olink obj => Obj;
};
Description
AltObject is a renderable object that contains the data to be rendered and other subobjects that contain the attributes that control how the data is rendered.
This object is connected to the GD objects's alternate object input port. It controls the properties and modes that are used to render the alternate object when it is enabled. AltObject is included in the DataObject macro.
DefaultProps to control color, material, line attributes, and geometrical attributes.
DefaultModes to control point, line, surface, volume, and bounds rendering modes.
DefaultObject to control visibility, pickability, caching, transform mode, surface conversion, and image display attributes.
Input Ports
in
The data to be rendered. This can be any group that includes the following subobjects:
GDxform_templ xform; // Transform.
method render; // Render method
Output Ports
obj
The renderable object. Typically connected to the alternate object input port in of a GDobject.
Example
See DataObject .
File
v/gd.v