GLG Toolkit, Java Class Library  Version 4.5

Defines an XYZ point in 3D space or an RGB color. More...

Detailed Description

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...
 

Member Data Documentation

◆ x

double x

X or R value.

◆ y

double y

Y or G value.

◆ z

double z

Z or B value.

Constructor & Destructor Documentation

◆ GlgPoint() [1/3]

GlgPoint ( )

Default contsructor.

◆ GlgPoint() [2/3]

GlgPoint ( double  x_p,
double  y_p,
double  z_p 
)

Constructs a new GlgPoint with specified values.

Parameters
x_pX or R value
y_pY or G value
z_pZ or B value

◆ GlgPoint() [3/3]

GlgPoint ( GlgPoint  point)

Copy constructor.

Parameters
pointA point to copy.

Member Function Documentation

◆ CopyFrom()

void CopyFrom ( GlgPoint  point)

Copies values from another GlgPoint to this point.

Parameters
pointA point to copy values from.

◆ GetFromCache()

static GlgPoint GetFromCache ( )
static

The method returns an object from an internal cache, or a newly created object if the cache is empty.

Returns
GlgPoint object instance.

◆ ReleaseToCache()

static void ReleaseToCache ( GlgPoint  obj)
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.

Parameters
objThe object to release.