Last change
on this file since 379 was
379,
checked in by qiaow, 19 years ago
|
Hooked a simple transfer function editor GUI to the render engine.
|
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 | #ifndef _SPHERE_H_
|
---|
16 | #define _SPHERE_H_
|
---|
17 |
|
---|
18 | #include <GL/glut.h>
|
---|
19 | #include "Color.h"
|
---|
20 | #include "Vector3.h"
|
---|
21 |
|
---|
22 | class Sphere{
|
---|
23 |
|
---|
24 | public:
|
---|
25 | Vector3 center;
|
---|
26 | float radius;
|
---|
27 | Color color;
|
---|
28 | int stack;
|
---|
29 | int slice;
|
---|
30 |
|
---|
31 | Sphere(){};
|
---|
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 | };
|
---|
40 |
|
---|
41 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.