<<<<<<<<<<<<<<<<<

gert(gert) Gert gert(gert)

NAME

gert

DESCRIPTION

gert an object in the gert system for creating raster image (bitmap) of associated geometries. It views the world through associated gert_camera. Various parameters (brush_resolution, alias_resolution) control quality of the picture. Others (alias_optimize, brush_resolution) control the speed of image generation.

SUPERCLASS

picture

INSTANCE VARIABLES

alias_optimize is the parameter indicating if optimization should be done in antialiasing processing; one for optimization, otherwise zero (default is one).

alias_resolution is the level of pixel subdivision used in antialiasing processing defined as power of 2. Default is 1, no subdivision.

anchor_column is the index of anchor point (begins at 0).

anchor_x is the unnormalized x coordinate of the left upper corner of a pixel or a region.

anchor_y is the unnormalized y dinate of the left upper corner of a pixel or a region.

background is the (red, green, blue, alpha) specification. Each component is a natural number between 0 and 255. Default is (0,0,0,0).

brush_resolution is the size in powers of 2 of the pixel region affected by primary ray. Default is 1.

current_pixel is the pixel for intensity accumulation. Intensity here is (red, green, blue, alpha).

normalized_viewport is the (xmin,xmax,ymin,ymax) vector corresponding to the viewport boundaries in the normalized screen coordinate system. Center of the screen is (0,0), upper left corner is (-1,-1), lower right corner is

(1,1).

number_of_rays is the number of rays hit for the current image.

resolution is the resolution of created image in pixels, default is (512, 512)

threshold is the threshold for deciding if more pixel subdivision is required in adaptive antialiasing processing, default is 0.05.

view_port is the viewport specification in pixels, default is (-256,256,-256,256).

statistics_array is the array for image statistics, the histogram of number of rays per pixel.

camera is the camera name

MESSAGES

actors=(+,-) argument sets (adds, deletes) members of geometries in gert.

alias_optimize= argument sets the alias_optimize instance variable value.

alias_optimize? returns the alias_optimize instance variable value.

alias_resolution= argument sets the alias_resolution instance variable value.

alias_resolution? returns the alias_resolution instance variable value.

anchor_x? returns the anchor_x instance variable value.

anchor_y? returns the anchor_y instance variable value.

background= argument sets the background instance variable value.

background? returns the background instance variable value.

bitmap? returns a pointer to the bitmap that the created image.

brush_resolution= argument sets the brush_resolution instance variable value.

brush_resolution? returns the brush_resolution instance variable value.

camera=(cameras=) argument sets the camera instance variable value.

camera? returns the camera instance variable value.

constant_alpha= sets the constant_alpha instance variable value, default is 1 and only this is currently used.

constant_alpha? returns the constant_alpha instance variable value.

constant_alpha_off! sets the constant_alpha tp 0.

constant_alpha_on! sets constant_alpha to 1.

convert_viewport! converts viewport from normalized coordinates to device coordinates.

current_pixel= argument sets the current_pixel instance variable value.

current_pixel? sets the current_pixel instance variable value.

geometries=(+,-) argument sets (adds, deletes) members of geometries in gert.

geometries? returns the geometries members.

normalized_viewport= argument sets normalized_viewport instance variable value.

normalized_viewport? returns normalized_viewport instance variable value.

number_of_rays= argument sets number_of_rays instance variable value.

number_of_rays? returns number_of_rays instance variable value.

resolution=(space_resolution=) argument sets resolution instance variable value.

resolution? returns resolution instance variable value.

statistics= argument sets the statistics instance variable value, default is 0 (off).

statistics? returns the statistics instance variable value.

statistics_file=argument sets normalized_viewport instance variable value.

statistics_file? sets the statistics_file instance variable value.

statistics_off! sets the statistics instance variable to 0.

statistics_on! sets the statistics instance variable to 1.

threshold= argument sets the threshold instance variable value.

threshold? returns the threshold instance variable value.

view! creates the image (a bitmap).

viewport=argument sets the threshold instance variable value.

viewport? reurns the threshold instance variable value.

EXAMPLE

SEE ALSO

gert_camera, h_hierarchy, kh_generator, ray, block, cone, cone, sphere


Please send comments and suggestions to
consult@rpi.edu