#include <prj.h>
See definitions of project class in hearder file "prj.h". See specification of primitive display class in hearder file "dsp.h". Project specification: see class notes of course CIV-2802 "Sistemas Graficos para Engenharia", period 2011.1. Revisions:
| |
static void | Init (void) |
This function opens a dialog containing only one canvas and creates a snap shot image of the current model. | |
static void | Quit (void) |
This function does everything is necessary to close the visualization part of this program. | |
static int | DspZbufferCanvas (Ihandle *cv) |
This is a redisplay callback function of canvas for displaying zbuffer image. | |
static int | DspRotateView (void) |
This is an idle event callback function of dialog for rotating camera around object. | |
static Ihandle * | Ozbufferdialog = NULL |
IUP handle of canvas for displaying zbuffer image. | |
static cdCanvas * | Gzbuffercanvas = NULL |
CD handle of canvas for displaying zbuffer image. | |
static cdCanvas * | Dzbuffercanvas = NULL |
CD handle of canvas for double buffering display. | |
static int | canvas_width = 400 |
Sizes of snap shot image. | |
static int | canvas_height = 400 |
|
This is an idle event callback function of dialog for rotating camera around object.
Definition at line 92 of file prj.cpp. References Dzbuffercanvas, Zbf::Init(), Dsp::RotateView(), and Dsp::ZbfModel(). Referenced by Init(). |
|
This is a redisplay callback function of canvas for displaying zbuffer image.
Definition at line 79 of file prj.cpp. References Dzbuffercanvas, Zbf::Init(), and Dsp::ZbfModel(). Referenced by Init(). |
|
This function opens a dialog containing only one canvas and creates a snap shot image of the current model. The image is created using the z-buffer algorithm and the CD (Canvas Draw) 2D graphics system. The current visualization parameters for camera and view volume specification are adopted. Definition at line 112 of file prj.cpp. References canvas_height, canvas_width, DspRotateView(), DspZbufferCanvas(), Dzbuffercanvas, Gzbuffercanvas, Ozbufferdialog, and Dsp::SetupView(). Referenced by main(). |
|
This function does everything is necessary to close the visualization part of this program.
Definition at line 159 of file prj.cpp. References Dzbuffercanvas, Gzbuffercanvas, and Ozbufferdialog. Referenced by main(). |
|
Definition at line 70 of file prj.cpp. Referenced by Init(). |
|
Sizes of snap shot image.
Definition at line 69 of file prj.cpp. Referenced by Init(). |
|
CD handle of canvas for double buffering display.
Definition at line 65 of file prj.cpp. Referenced by DspRotateView(), DspZbufferCanvas(), Init(), and Quit(). |
|
CD handle of canvas for displaying zbuffer image.
|
|
IUP handle of canvas for displaying zbuffer image.
|