Class ColorTransformBase
Base class for a ColorTransformBase used by ColorTransform and ToneMapOperator.
[DataContract(Inherited = true)]
public abstract class ColorTransformBase
- Inheritance
-
ColorTransformBase
- Derived
Constructors
ColorTransformBase(string)
Initializes a new instance of the ColorTransformBase class.
protected ColorTransformBase(string colorTransformShader)
Parameters
colorTransformShader
stringName of the shader.
Exceptions
- ArgumentNullException
shaderName
Properties
Enabled
Gets or sets a value indicating whether this ColorTransformBase is enabled.
[DataMember(5)]
public virtual bool Enabled { get; set; }
Property Value
- bool
true
if enabled; otherwise,false
.
GenericArguments
Gets or sets the generic arguments used by the shader. Default is null.
public object[] GenericArguments { get; set; }
Property Value
- object[]
The generic arguments used by the shader. Default is null
Group
Gets the group this ColorTransformBase is associated with.
public ColorTransformGroup Group { get; }
Property Value
Parameters
Gets the parameters.
public ParameterCollection Parameters { get; }
Property Value
- ParameterCollection
The parameters.
Shader
Gets or sets the name of the shader.
public string Shader { get; set; }
Property Value
- string
The name of the shader.
Methods
PrepareParameters(ColorTransformContext, ParameterCollection, string)
Prepare copy operations for parameters.
public virtual void PrepareParameters(ColorTransformContext context, ParameterCollection parentCollection, string keyRoot)
Parameters
context
ColorTransformContextparentCollection
ParameterCollectionkeyRoot
string
UpdateParameters(ColorTransformContext)
Updates the parameters for this transformation.
public virtual void UpdateParameters(ColorTransformContext context)
Parameters
context
ColorTransformContextThe context.
Remarks
This method is called just before rendering the ColorTransformGroup that is holding this ColorTransformBase