Class: TCurveList

Declaration: CurveList.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

MCollectible

Inherited By:

None.

Purpose:

A TCurveList is a collection of TGCurves. The class is derived from MCollectible. For each curve in the list, the TCurveList maintains a distinct parametric value, used to keep track of the position of the curve in a sweep or loft operation.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

None.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TCurveList::TCurveList

  1. TCurveList ()
  2. TCurveList (const TGCurve & singleCurve)
  3. TCurveList (unsigned long numberCurves)
  4. TCurveList (const TCurveList & curveList)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Creates a TCurveList with the specified curve in it.
  3. Creates a TCurveList with the specified number of curves in it.
  4. Copy constructor.

Calling Context:

  1. Called by the stream-in operators. You can also call this function directly.
  2. Call this function directly.
  3. Call this function directly.
  4. 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: TCurveList::~TCurveList

~ TCurveList ()

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: TCurveList::SetCurve

  1. void SetCurve (unsigned long nr, const TGCurve & crv, GParametric u)
  2. void SetCurve (const TGCurve & singleCurve)

Interface Category:

API.

Purpose:

  1. Adds a copy of the TGCurve to the list at the location specified by the index. The specified parametric value is associated with the curve. If the index is larger than the size of curve list, the list is resized and padded with NIL pointers to curves.
  2. Sets the first curve in the list to a copy of the specified curve. Sets the associated parametric value to 0.

Calling Context:

  1. Call this function directly.
  2. 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: TCurveList::AdoptCurve

void AdoptCurve (unsigned long nr, TGCurve * crv, GParametric u)

Interface Category:

API.

Purpose:

Adds the TGCurve to the list at the location specified by the index. The specified parametric value is associated with the curve. If the index is equal to or larger than the size of curve list, the list is resized.

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: TCurveList::GetCurve

  1. void GetCurve (unsigned long nr, TGCurve & crv, GParametric & u) const
  2. void GetCurve (TGCurve & singleCurve) const

Interface Category:

API.

Purpose:

  1. Returns the TGCurve from the location specified by the index and its associated parametric value in the respective parameters.
  2. Returns the list's first TGCurve in the specified parameter.

Calling Context:

  1. Call this function directly.
  2. 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: TCurveList::GetCurveRef

TGCurve * GetCurveRef (unsigned long i) const

Interface Category:

API.

Purpose:

Returns a pointer to the TGCurve specified by the index.

Calling Context:

Call this function directly.

Parameters:

Return Value:

A pointer to the curve specified by the index.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TCurveList::GetCurvePosition

GParametric GetCurvePosition (unsigned long i) const

Interface Category:

API.

Purpose:

Returns the parametric value associated with the TGCurve at the specified index.

Calling Context:

Call this function directly.

Parameters:

Return Value:

The parametric value of the indexed curve.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TCurveList::SetCurvePosition

void SetCurvePosition (unsigned long i, GParametric u)

Interface Category:

API.

Purpose:

Sets the parametric value associated with the TGCurve at the specified index to the new value.

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: TCurveList::SetNumberCurves

void SetNumberCurves (unsigned long n)

Interface Category:

API.

Purpose:

Sets the number of curves in the curve list. If the number is smaller than before, the extra curves are deleted; if the number is larger, the TCurveList is padded with NILs.

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: TCurveList::GetNumberCurves

unsigned long GetNumberCurves () const

Interface Category:

API.

Purpose:

Returns the number of curves in this TCurveList.

Calling Context:

Call this function directly.

Parameters:

Return Value:

The number of curves in this list.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TCurveList::SetArclengthMapped

void SetArclengthMapped (bool mapped)

Interface Category:

API.

Purpose:

Sets the fArclengthMapped flag to the specified Boolean.

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: TCurveList::ArclengthMapped

bool ArclengthMapped () const

Interface Category:

API.

Purpose:

Determines whether the fArclengthMapped flag is set.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns true if the ArclengthMapped flag is set.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TCurveList::operator=

TCurveList & operator =(const TCurveList & source)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Called when an object is assigned to another compatible object.

Parameters:

Return Value:

A non-const reference to the left-hand side object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TCurveList::operator<<=

TStream & operator <<= (TStream & fromwhere)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Called to stream in data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself in from.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TCurveList::operator>>=

TStream & operator >>=(TStream & towhere) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Called to stream out data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself out to.

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.