Custom GR Helper Sample Code
This directory contains sample code for adding a custom renderers to
the pipeline. Refer to the
toolkit documentation for more details.
BaryCenter |
This example shows how to add a custom hook for rendering GRs. It
draws the barycenter of polygons.
|
GR_Barycenter.C |
Source code for the GR_BaryCenter derived classes. |
BoundingBox |
This example shows how to access the GR_DisplayOptions to get the
current wire colour and display options. It also shows how to use the
get*Mask functions to restrict further rendering.
|
GR_BoundingBox.C |
Source code for the GR_BoundingBox derived classes. |
SimpleNoise |
This more complicated example shows dicing of quadrilateral polygons
into a denser mesh. It uses the LOD parameter to drive the amount
of subdivision that occurs.
|
GR_SimpleNoise.C |
Source code for the GR_SimpleNoise derived classes. |
Install Script
sample_install.sh is a sample install script.
The script will compile the sample source code. By default, everything is
installed in your home directory.
Copyright © 1996 Side Effects Software Inc.
477 Richmond Street West, Toronto, Ontario, Canada M5V 3E7