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

Teddy::Models::Capsule Class Reference

Capsule shaped Model. More...

#include <Capsule.h>

Inheritance diagram for Teddy::Models::Capsule:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 Capsule (const std::string &name, const double len, const double radius, const int stacks, const int slices)
 Constructor. More...


Protected Attributes

double radius
int stacks
int slices

Detailed Description

Capsule shaped Model.

Todo:
Middle cylinder subdivisions

Definition at line 40 of file Capsule.h.


Constructor & Destructor Documentation

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

Constructor.

Parameters:
name  Name for new Capsule shape
len  Length of Capsule
rad  Radius of Capsule
stacks  Number of stack subdivisions
slices  Number of slice subdivisions
Todo:
Replace quadstrip with cylinder

Definition at line 44 of file Capsule.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::Capsule::radius [protected]
 

Definition at line 51 of file Capsule.h.

Referenced by Capsule.

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

Definition at line 53 of file Capsule.h.

Referenced by Capsule.

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

Definition at line 52 of file Capsule.h.

Referenced by Capsule.


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