Class: TGRPoint3DArray

Declaration: Point3DArray.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TRawArray

Inherited By:

None.

Purpose:

TGRPoint3DArray is a low-level class that provides access to linear arrays of TGRPoint3Ds (3-D homogeneous points). TGRPoint3DArray does not perform any computation. TGRPoint3DArray is used by such classes as TGCurve3D, TGSurface3D, and TSweep3D. TGRPoint3DArray is directly analogous to TGPoint3DArray, which handles arrays of TGPoint3Ds (non-homogeneous points).

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

None. Do not create derived classes.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TGRPoint3DArray::TGRPoint3DArray

  1. TGRPoint3DArray (unsigned long size =0)
  2. TGRPoint3DArray (const TGPoint3DArray & source)
  3. TGRPoint3DArray (const TGRPoint3DArray & source)

Interface Category:

API.

Purpose:

  1. Creates a TGRPoint3DArray of the specified size. The points are not initialized.
  2. Creates a TGRPoint3DArray by converting the specified TGPoint3DArray.
  3. Copy constructor.

Calling Context:

  1. Call this function directly.
  2. Call this function directly.
  3. Called to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TGRPoint3DArray::~TGRPoint3DArray

~ TGRPoint3DArray ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TGRPoint3DArray::GetPoint

TGRPoint3D GetPoint (unsigned long i) const

Interface Category:

API.

Purpose:

Gets the TGRPoint3D at the specified index.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns the point at the specified index.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TGRPoint3DArray::SetPoint

void SetPoint (unsigned long i, const TGRPoint3D & p)

Interface Category:

API.

Purpose:

Sets the TGRPoint3D at the specified index, to the specified point.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TGRPoint3DArray::GetNumberOfPoints

unsigned long GetNumberOfPoints () const

Interface Category:

API.

Purpose:

Computes the number of points in the TGRPoint3DArray.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns the number of points in the array.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TGRPoint3DArray::GetBounds

TGBox3D GetBounds () const

Interface Category:

API.

Purpose:

Returns a TGBox3D that bounds the TGRPoint3Ds in this TGRPoint3DArray.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns the bounding box of all the points in the array.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.