Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
MCollectible
Inherited By:
TRGBShaderColorSpline
Purpose:
TShaderColorSpline is an abstract base class for classes that return a color to the caller, based on a parameter from 0 to 1. The name of the class suggests that derived classes use parametric curves to implement the mathematical functions. For example, the derived class TRGBShaderColorSpline lets you specify three curves--one for determining the red component, one for green, and one for blue.
Instantiation:
Abstract class; do not allocate.
Deriving Classes:
None.
Concurrency:
Not multithread safe.
Resource Use:
No special requirements.
virtual ~ TShaderColorSpline ()
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.
virtual void GetColor (GParametric val, TColor & retVal) const
Interface Category:
API.
Purpose:
Returns, in its TColor argument, the color corresponding to the specified parametric value. This is a pure virtual function and must be overridden by derived classes.
Calling Context:
Do not call this function directly.
Parameters:
- GParametric val -The parametric value (from 0 to 1) to use.
- TColor & retVal -The resulting color.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual TStream & operator >>=(TStream &) const
Interface Category:
API.
Purpose:
Stream-out operator.
Calling Context:
Called to stream out data.
Parameters:
- TStream & -The stream that the object streams itself out to.
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.
virtual TStream & operator <<= (TStream &)
Interface Category:
API.
Purpose:
Stream-in operator.
Calling Context:
Called to stream in data.
Parameters:
- TStream & -The stream that the object streams itself in from.
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.
- TShaderColorSpline ()
- TShaderColorSpline (const TShaderColorSpline &)
Interface Category:
API.
Purpose:
- Default constructor. This is protected constructor that must be overridden by derived classes.
- Copy constructor. This is a protected constructor that must be overridden by derived classes.
Calling Context:
- Called by the stream-in operators. Do not call this function directly.
- Called to copy an object. Do not call this function directly, except from within the copy constructor of a derived object.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
TShaderColorSpline & operator =(const TShaderColorSpline & source)
Interface Category:
API.
Purpose:
Assignment operator. This is a protected member function, designed to be overridden by derived classes.
Calling Context:
Do not call this function directly, except from the operator =function of a derived class.
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.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.