Main Page | Alphabetical List | Class List | File List | Class Members | File Members

Prj Class Reference

#include <prj.h>

List of all members.
Date:
20-Jun-2011
Author:
Luiz F. Martha
Version:
1.0
This file contains the manager class definition of the current project. This class manages the 3D zbuffer visualization of a model.

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:

  • Version 1.0 by L.F. Martha on 20-Jun-2011: Initial version.


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


Member Function Documentation

int Prj::DspRotateView void   )  [static, private]
 

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().

int Prj::DspZbufferCanvas Ihandle *  cv  )  [static, private]
 

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().

void Prj::Init void   )  [static]
 

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().

void Prj::Quit void   )  [static]
 

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().


Member Data Documentation

int Prj::canvas_height = 400 [static, private]
 

Definition at line 70 of file prj.cpp.

Referenced by Init().

int Prj::canvas_width = 400 [static, private]
 

Sizes of snap shot image.

Definition at line 69 of file prj.cpp.

Referenced by Init().

cdCanvas * Prj::Dzbuffercanvas = NULL [static, private]
 

CD handle of canvas for double buffering display.

Definition at line 65 of file prj.cpp.

Referenced by DspRotateView(), DspZbufferCanvas(), Init(), and Quit().

cdCanvas * Prj::Gzbuffercanvas = NULL [static, private]
 

CD handle of canvas for displaying zbuffer image.

Definition at line 61 of file prj.cpp.

Referenced by Init(), and Quit().

Ihandle * Prj::Ozbufferdialog = NULL [static, private]
 

IUP handle of canvas for displaying zbuffer image.

Definition at line 57 of file prj.cpp.

Referenced by Init(), and Quit().


The documentation for this class was generated from the following files:
Generated on Mon Jun 20 18:09:55 2011 for Trab8 by  doxygen 1.4.2-20050421