source: trunk/vizservers/nanovis/Sphere.h @ 750

Last change on this file since 750 was 401, checked in by qiaow, 18 years ago

Added Renderable class, the superclass of every class that can be drawn.

File size: 1.0 KB
Line 
1/*
2 * ----------------------------------------------------------------------
3 * Sphere.h : Sphere class
4 *
5 * ======================================================================
6 *  AUTHOR:  Wei Qiao <qiaow@purdue.edu>
7 *           Purdue Rendering and Perceptualization Lab (PURPL)
8 *
9 *  Copyright (c) 2004-2006  Purdue Research Foundation
10 *
11 *  See the file "license.terms" for information on usage and
12 *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
13 * ======================================================================
14 */
15
16#ifndef _SPHERE_H_
17#define _SPHERE_H_
18
19#include <GL/glut.h>
20
21#include "Color.h"
22#include "Renderable.h"
23
24class Sphere : public Renderable{
25
26public:
27        float radius;
28        Color color;
29        int stack;
30        int slice;
31
32        ~Sphere();
33        Sphere(float x, float y, float z, float r, float g, float b, float _radius, int _stack, int _slice);
34        void set_vertical_res(int _stack);
35        void set_horizontal_res(int _slice);
36       
37        //display the sphere
38        void draw(GLUquadric* q);
39        void render();
40};
41
42#endif
Note: See TracBrowser for help on using the repository browser.