source: trunk/packages/vizservers/nanovis/Sphere.h @ 1984

Last change on this file since 1984 was 1984, checked in by gah, 14 years ago

Clean up debugging/printing traces

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