Click or drag to resize
DigitalRunePostProcessorChain Class
Chains together a group of post-processors.
Inheritance Hierarchy
SystemObject
  DigitalRune.Graphics.PostProcessingPostProcessor
    DigitalRune.Graphics.PostProcessingPostProcessorChain

Namespace: DigitalRune.Graphics.PostProcessing
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public class PostProcessorChain : PostProcessor, 
	IList<PostProcessor>, ICollection<PostProcessor>, IEnumerable<PostProcessor>, 
	IEnumerable

The PostProcessorChain type exposes the following members.

Constructors
  NameDescription
Public methodPostProcessorChain
Initializes a new instance of the PostProcessorChain class.
Top
Methods
  NameDescription
Public methodAdd
Appends a post-processor to the post-processor chain.
Public methodClear
Removes all post-processors from the post-processor chain.
Public methodContains(String)
Determines whether the post-processor chain contains a post-processor with the specified name.
Public methodContains(PostProcessor)
Determines whether the post-processor chain contains a specific post-processor.
Public methodDispose
Releases all resources used by an instance of the PostProcessor class.
(Inherited from PostProcessor.)
Protected methodDispose(Boolean)
Releases the unmanaged resources used by an instance of the PostProcessor class and optionally releases the managed resources.
(Inherited from PostProcessor.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the post-processor chain.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf(String)
Determines the index of the post-processor with the specified name in the post-processor chain.
Public methodIndexOf(PostProcessor)
Determines the index of a specific post-processor in the post-processor chain.
Public methodInsert
Inserts a post-processor into the post-processor chain at the specified index.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnDisable
Called when this post-processor is disabled.
(Inherited from PostProcessor.)
Protected methodOnEnable
Called when this post-processor is enabled.
(Inherited from PostProcessor.)
Protected methodOnProcess
Called when the post-processor should perform the post-processing.
(Overrides PostProcessorOnProcess(RenderContext).)
Public methodProcess
Performs the post-processing using the SourceTexture and the RenderTarget specified in the render context.
(Inherited from PostProcessor.)
Public methodRemove
Removes the first occurrence of a specific post-processor from the post-processor chain.
Public methodRemoveAt
Removes the post-processor at the specified index from the post-processor chain.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodAddRangePostProcessor (Defined by CollectionHelper.)
Public Extension MethodDoPostProcessor(ActionPostProcessor)Overloaded.
Performs the given action on each element in a sequence when it is enumerated.
(Defined by LinqHelper.)
Public Extension MethodDoPostProcessor(ActionPostProcessor, Int32)Overloaded.
Performs the given action on each element (incorporating its index) in a sequence when it is enumerated.
(Defined by LinqHelper.)
Public Extension MethodForEachPostProcessor(ActionPostProcessor)Overloaded.
Immediately performs the given action on each element in a sequence.
(Defined by LinqHelper.)
Public Extension MethodForEachPostProcessor(ActionPostProcessor, Int32)Overloaded.
Immediately performs the given action on each element (incorporating its index) in a sequence.
(Defined by LinqHelper.)
Public Extension MethodIndexOfPostProcessor
Returns the index of the first element in a sequence that satisfies the specified condition.
(Defined by LinqHelper.)
Top
Properties
  NameDescription
Public propertyCount
Gets the number of post-processors contained in the post-processor chain.
Public propertyDefaultTargetFormat
Gets or sets the default target format. (This property is used by the PostProcessorChain).
(Inherited from PostProcessor.)
Public propertyEnabled
Gets or sets a value indicating whether this post-processor is enabled.
(Inherited from PostProcessor.)
Public propertyGraphicsService
Gets the graphics service.
(Inherited from PostProcessor.)
Public propertyIsDisposed
Gets a value indicating whether this post-processor has been disposed of.
(Inherited from PostProcessor.)
Public propertyItemInt32
Gets or sets the post-processor at the specified index.
Public propertyItemString
Gets the PostProcessor with the specified name.
Public propertyName
Gets or sets the name of the post-processor.
(Inherited from PostProcessor.)
Top
Explicit Interface Implementations
Remarks

Post-processors can be added to a PostProcessorChain. A post-processor chain is itself a post-processor. When the post-processor chain is executed (by calling Process(RenderContext)), it will automatically call Process(RenderContext) of all contained post-processors.

By default, a post-processor in a chain reads the output of the previous post-processor and writes the result into an intermediate render target.

See Also