Gets/sets query ray characteristics. Without a subcommand, the usage message is printed. The qray command accepts the following subcommands:
Prints a list of all query ray variables.
- basename [str]
If str is specified, then set basename to str. Otherwise, return the basename. Note that the basename is the name used to create the fake shape names corresponding to the query ray. There will be one fake shape for every color used along the ray.
Set or get the type of effects that will occur when firing a query ray. The effects of firing a ray can be either t for textual output, g for graphical output, or b for both textual and graphical.
- echo [0|1]
Sets or gets the value of echo. If set to 1, the actual nirt command used will be echoed to the screen.
- oddcolor [r g b]
Sets or gets the color of odd partitions.
- evencolor [r g b]
Sets or gets the color of even partitions.
- voidcolor [r g b]
Sets or gets the color of areas where the ray passes through nothing.
- overlapcolor [r g b]
Sets or gets the color of areas that overlap.
- fmt [r|h|p|f|m|o [str]]
Sets or gets the format string(s). See the man page of nirt for more details.
- script [str]
Sets or gets the nirt script string.
Prints the usage message.
The four examples show the use of the qray command without a subcommand and with three of the listed subcommands.
Example 3. Return the rgb color used to color odd partitions.
Returns the rgb color used to color odd partitions.
Example 4. Set the odd partition color to red.
qray oddcolor 255 0 0
Sets the odd partition color to red.