Detailed Description
- See also:
- Class MtlBase,
Class AColor, Class
Point3.
- Description:
- This class is used by texture maps to put up the 'Output'
rollup in the materials editor, and perform the output filtering.
Currently this provides control over the Output Amount, RGB Level,
and RGB Offset. In the future this may be enhanced to include other
things that are often desirable on the output stage. These are
things like tinting, color shifting, etc. All methods of this class
are implemented by the system.
A plug-in will typically call these methods from the
implementations of EvalColor(), EvalMono(), etc. This
is just done as a final adjustment to scale or offset the value.
The code below is from the Gradient texture map.
AColor Gradient::EvalColor(ShadeContext& sc) {
return texout->Filter(uvGen->EvalUVMap(sc, &mysamp));
}
float Gradient::EvalMono(ShadeContext& sc) {
return texout->Filter(uvGen->EvalUVMapMono(sc, &mysamp));
}
#include <imtl.h>
List of all
members.
Member Function Documentation
- Parameters:
- AColor
c
The color to filter.
- Returns:
- The filtered color as an AColor.
virtual float Filter |
( |
float |
f |
) |
[pure virtual] |
- Parameters:
- float f
The value to filter.
- Returns:
- The filtered value.
virtual float GetOutputLevel |
( |
TimeValue |
t |
) |
[pure virtual] |
- Parameters:
- TimeValue t
The time at which to retrieve the output level.
Implemented in StdTexoutGen.
virtual void SetOutputLevel |
( |
TimeValue |
t, |
|
|
float |
v |
|
) |
|
[pure virtual] |
- Parameters:
- TimeValue t
The time to set the output level.
float v
The value of the output level.
Implemented in StdTexoutGen.
virtual void SetInvert |
( |
BOOL |
onoff |
) |
[pure virtual] |
- Parameters:
- BOOL onoff
TRUE to turn on; FALSE to turn off.
Implemented in StdTexoutGen.
virtual BOOL GetInvert |
( |
|
) |
[pure virtual] |
- Returns:
- TRUE is on; FALSE is off.
Implemented in StdTexoutGen.
virtual void SetRollupOpen |
( |
BOOL |
open |
) |
[pure virtual] |
- Parameters:
- BOOL open
TRUE to open the rollup; FALSE to close it.
virtual BOOL GetRollupOpen |
( |
|
) |
[pure virtual] |
- Returns:
- TRUE for open; FALSE for closed.
SClass_ID SuperClassID |
( |
|
) |
[inline, virtual] |
Retrieves a constant representing the type of the plugin.
- Returns:
- A super class id that uniquely identifies the type (category)
of the plugin. Note that several plugin classes can be of the same
type, thus return the same super class id. Plugins are uniquely
identified by their class ids. List of Super Class
IDs.
- See also:
- SClass_ID
Reimplemented from ReferenceTarget.
- Parameters:
-
gom |
Points to the schematic view window manager. |
gNode |
Points to this node in the schematic view. |
isBeingEdited |
TRUE if the item is being edited; FALSE if not. |
- Default Implementation:
-
{
Animatable *owner;
int subNum;
MSTR name;
owner = gNode->GetOwner();
subNum = gNode->GetID();
name = owner->SubAnimName(subNum);
return name;
}
Reimplemented from MtlBase.
TextureOutput TextureOutput
TextureOutput TextureOutput TextureOutput TextureOutput
TextureOutput TextureOutput TextureOutput TextureOutput
TextureOutput TextureOutput
TextureOutput TextureOutput TextureOutput TextureOutput
TextureOutput TextureOutput TextureOutput TextureOutput