GLG Toolkit, Java Class Library
Version 4.5
|
Defines a rectangular parallelepiped in 3D space (usually an object's bounding box) by its two diagonal points. More...
Defines a rectangular parallelepiped in 3D space (usually an object's bounding box) by its two diagonal points.
The faces of the parallelepiped are parallel to the coordinate planes.
Public Member Functions | |
GlgCube () | |
Default contructor. More... | |
GlgCube (GlgCube cube) | |
Copy constructor. More... | |
void | CopyFrom (GlgCube cube) |
Copies values from the supplied cube to this cube. More... | |
Static Public Member Functions | |
static GlgCube | GetFromCache () |
Returns an object from an internal cache, or creates a new object if the cache is empty. More... | |
static void | ReleaseToCache (GlgCube object) |
Returns the object to the internal cache for reuse. More... | |
Public Attributes | |
GlgPoint | p1 |
The point with the lowest coordinate values. More... | |
GlgPoint | p2 |
The point with the highest coordinate values. More... | |
GlgPoint p1 |
The point with the lowest coordinate values.
GlgPoint p2 |
The point with the highest coordinate values.
GlgCube | ( | ) |
Default contructor.
void CopyFrom | ( | GlgCube | cube | ) |
Copies values from the supplied cube to this cube.
cube | A GlgCube object to copy the values from. |
|
static |
Returns an object from an internal cache, or creates a new object if the cache is empty.
|
static |
Returns the object to the internal cache for reuse.
The object should not be accessed after it is released to the cache.
Only objects obtained with a call to GLG API method should be released to the cache. Releasing to the cache objects created with new would result in consuming resources due to the growth of the cache size.
object | The object to release. |