Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Teddy::Models::Sphere Class Reference

Sphere shaped Model. More...

#include <Sphere.h>

Inheritance diagram for Teddy::Models::Sphere:

Inheritance graph
[legend]
Collaboration diagram for Teddy::Models::Sphere:

Collaboration graph
[legend]
List of all members.

Public Methods

 Sphere (const std::string &name, const double radius, const int stacks, const int slices)
 Sphere constructor. More...


Protected Attributes

double radius
int stacks
int slices

Detailed Description

Sphere shaped Model.

This is a Sphere Model done with stacks and slices -method (like glut).

Definition at line 41 of file Sphere.h.


Constructor & Destructor Documentation

Teddy::Models::Sphere::Sphere const std::string &    name,
const double    rad,
const int    stacks,
const int    slices
 

Sphere constructor.

Parameters:
rad  Radius of the Sphere
stacks  Number of stack subdivision for the Sphere
slices  NUmebr of slice subdividision for the Sphere

Definition at line 41 of file Sphere.cpp.

References Teddy::Models::Model::add, M_2_PI, M_PI, radius, Teddy::Models::Model::setupClipRadius, slices, stacks, and Vector.


Member Data Documentation

double Teddy::Models::Sphere::radius [protected]
 

Definition at line 51 of file Sphere.h.

Referenced by Sphere.

int Teddy::Models::Sphere::slices [protected]
 

Definition at line 53 of file Sphere.h.

Referenced by Sphere.

int Teddy::Models::Sphere::stacks [protected]
 

Definition at line 52 of file Sphere.h.

Referenced by Sphere.


The documentation for this class was generated from the following files: