GLG Toolkit, Java Class Library
Version 4.5
|
Defines an XYZ point in 3D space or an RGB color. More...
Defines an XYZ point in 3D space or an RGB color.
Public Member Functions | |
GlgPoint () | |
Default contsructor. More... | |
GlgPoint (double x_p, double y_p, double z_p) | |
Constructs a new GlgPoint with specified values. More... | |
GlgPoint (GlgPoint point) | |
Copy constructor. More... | |
void | CopyFrom (GlgPoint point) |
Copies values from another GlgPoint to this point. More... | |
Static Public Member Functions | |
static GlgPoint | GetFromCache () |
The method returns an object from an internal cache, or a newly created object if the cache is empty. More... | |
static void | ReleaseToCache (GlgPoint obj) |
Returns the object to the internal cache for reuse. More... | |
Public Attributes | |
double | x |
X or R value. More... | |
double | y |
Y or G value. More... | |
double | z |
Z or B value. More... | |
double x |
X or R value.
double y |
Y or G value.
double z |
Z or B value.
GlgPoint | ( | ) |
Default contsructor.
GlgPoint | ( | double | x_p, |
double | y_p, | ||
double | z_p | ||
) |
Constructs a new GlgPoint with specified values.
x_p | X or R value |
y_p | Y or G value |
z_p | Z or B value |
void CopyFrom | ( | GlgPoint | point | ) |
Copies values from another GlgPoint to this point.
point | A point to copy values from. |
|
static |
The method returns an object from an internal cache, or a newly created 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.
obj | The object to release. |