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

Last change on this file since 2843 was 2837, checked in by ldelgass, 12 years ago

More misc. cleanups

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
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 <GL/glew.h>
21#include <GL/glu.h>
22
23#include "Trace.h"
24
25#include "Color.h"
26#include "Renderable.h"
27
28class Sphere : public Renderable
29{
30public:
31    Sphere(float x, float y, float z, float r, float g, float b, float _radius,
32           int _stack, int _slice);
33
34    virtual ~Sphere();
35
36    void set_vertical_res(int _stack);
37    void set_horizontal_res(int _slice);
38       
39    //display the sphere
40    void draw(GLUquadric* q);
41    void render();
42
43    float radius;
44    Color color;
45    int stack;
46    int slice;
47};
48
49#endif
Note: See TracBrowser for help on using the repository browser.