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

Box3d Class Reference

#include <Box.h>

Inheritance diagram for Box3d:

Inheritance graph
[legend]
Collaboration diagram for Box3d:

Collaboration graph
[legend]
List of all members.

Detailed Description

This is the 3D / double specific version of a Box.

Use this most often so you don't have to declare the size of your Boxes all the time.

Definition at line 133 of file Box.h.

Public Member Functions

 Box3d ()
 Constructors.

 Box3d (TNT::Vector< Interval< double > > A)
 Copy constructor from the parent class.

 Box3d (gmVector3 mincorner, gmVector3 maxcorner)
 Constructs a Box3d from two gmVector3s as its opposite corners.

 Box3d (gmVector3 x)
 This is a convenience method to make a Box3d by using a gmVector3.

 Box3d (Interval< double > x, Interval< double > y, Interval< double > z)
 This is a convenience method to make a Box3d by using three Interval<double>s as the dimensions.

 Box3d (Interval< double > v)
 Constructs a Box3d using an Interval as all three dimensions.

 Box3d (double d)
 Constructs a Box3d using a double as all three dimensions.

 Box3d (Box< double > x)
 Constructs a Box3d from a more general Box<double>.

gmVector3 low ()
 'Corner' operators

gmVector3 high ()
 Returns the 'upper corner' of the box.


Constructor & Destructor Documentation

Box3d::Box3d  ) 
 

Constructors.

Definition at line 253 of file Box.cpp.

Referenced by Box3d().

Box3d::Box3d TNT::Vector< Interval< double > >  A  ) 
 

Copy constructor from the parent class.

This is apparently necessary since the parent class is more general and for example may contain more (or less) than three elements.

Definition at line 264 of file Box.cpp.

Box3d::Box3d gmVector3  mincorner,
gmVector3  maxcorner
 

Constructs a Box3d from two gmVector3s as its opposite corners.

Definition at line 275 of file Box.cpp.

Box3d::Box3d gmVector3  x  ) 
 

This is a convenience method to make a Box3d by using a gmVector3.

Definition at line 288 of file Box.cpp.

References Box3d().

Box3d::Box3d Interval< double >  x,
Interval< double >  y,
Interval< double >  z
 

This is a convenience method to make a Box3d by using three Interval<double>s as the dimensions.

Definition at line 298 of file Box.cpp.

Box3d::Box3d Interval< double >  v  ) 
 

Constructs a Box3d using an Interval as all three dimensions.

Definition at line 309 of file Box.cpp.

References Box3d().

Box3d::Box3d double  d  ) 
 

Constructs a Box3d using a double as all three dimensions.

Definition at line 318 of file Box.cpp.

References Box3d().

Box3d::Box3d Box< double >  x  ) 
 

Constructs a Box3d from a more general Box<double>.

Note:
If the size of x is less than 3, there will be trouble!

Definition at line 328 of file Box.cpp.


Member Function Documentation

gmVector3 Box3d::high  ) 
 

Returns the 'upper corner' of the box.

Returns:
The 'upper' corner of the box as a gmVector3.

Definition at line 350 of file Box.cpp.

Referenced by ParticleCreation::attachAttributes(), and ParticleShaderGradientField::draw().

gmVector3 Box3d::low  ) 
 

'Corner' operators

Returns:
The 'lower' corner of the box as a gmVector3.

Definition at line 339 of file Box.cpp.

Referenced by ParticleCreation::attachAttributes(), and ParticleShaderGradientField::draw().


The documentation for this class was generated from the following files:
Generated on Mon Jun 28 15:02:04 2004 for Advanced Surface Library by doxygen 1.3.4