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

Teddy::Models::Box Class Reference

Box shaped Model. More...

#include <Box.h>

Inheritance diagram for Teddy::Models::Box:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 Box (const std::string &name, const float x_size, const float y_size, const float z_size, const int x_div=1, const int y_div=1, const int z_div=1)
 Box constructor. More...


Protected Attributes

float xdepth
float ydepth
float zdepth
int xdiv
int ydiv
int zdiv

Detailed Description

Box shaped Model.

Definition at line 37 of file Box.h.


Constructor & Destructor Documentation

Teddy::Models::Box::Box const std::string &    name,
const float    x_size,
const float    y_size,
const float    z_size,
const int    x_div = 1,
const int    y_div = 1,
const int    z_div = 1
 

Box constructor.

Parameters:
name  Name for new Box Model
x_size  X-Size of box (will expand to both minus and plus)
y_size  Y-Size of box (will expand to both minus and plus)
z_size  Z-Size of box (will expand to both minus and plus)
x_div  Number of subdivisions on X direction
y_div  Number of subdivisions on Y direction
z_div  Number of subdivisions on Z direction

Definition at line 44 of file Box.cpp.

References Teddy::Models::Model::add, and Teddy::Models::Model::setupClipRadius.


Member Data Documentation

float Teddy::Models::Box::xdepth [protected]
 

Definition at line 50 of file Box.h.

int Teddy::Models::Box::xdiv [protected]
 

Definition at line 53 of file Box.h.

float Teddy::Models::Box::ydepth [protected]
 

Definition at line 51 of file Box.h.

int Teddy::Models::Box::ydiv [protected]
 

Definition at line 54 of file Box.h.

float Teddy::Models::Box::zdepth [protected]
 

Definition at line 52 of file Box.h.

int Teddy::Models::Box::zdiv [protected]
 

Definition at line 55 of file Box.h.


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