IGraphBuilder Interface
A version of this page is also available for
4/8/2010
This interface allows applications to call upon the filter graph manager to attempt to build a complete filter graph, or parts of a filter graph given only partial information, such as the name of a file or the interfaces of two separate pins. The filter mapper looks up filters in the registry to configure the filter graph in a meaningful way.
IGraphBuilder inherits from the IFilterGraph interface and exposes all its methods. For this reason, IFilterGraph should normally not be used directly.
When to Implement
This interface is implemented on the filter graph manager and is not intended for implementation by developers.
When to Use
Applications use this interface to create a filter graph, add filters to or remove filters from a filter graph, enumerate all the filters in a filter graph, and force connections when adding a filter. Filters typically use the interface to reconnect pins during the connection and negotiation process of building a filter graph.
Methods in Vtable Order
The following table shows the methods that appear in the Vtable beneath the standard COM methods inherited from IUnknown.
IFilterGraph method | Description |
---|---|
Adds a filter to the graph and gives it a name. |
|
Removes a filter from the graph. |
|
Provides an enumerator for all filters in the graph. |
|
Finds a filter that was added with a specified name. |
|
Connects the two IPin objects directly (without intervening filters). |
|
Breaks the existing pin connection and reconnects it to the same pin. |
|
Disconnects this pin, if connected. |
|
Sets the default synchronization source (a clock). |
IGraphBuilder method | Description |
---|---|
Connects two IPin objects. If they will not connect directly, this method connects them with intervening transforms. |
|
Adds a chain of filters to this output pin to render it. |
|
Builds a filter graph that renders the specified file. |
|
Adds a source filter to the filter graph for a specific file. The IGraphBuilder::RenderFile method calls this to find the source filter. |
|
Sets the log file into which actions taken in attempting to perform an operation are logged. |
Requirements
Windows Embedded CE | Windows CE 2.12 and later |
Windows Mobile | Pocket PC for Windows Mobile Version 5.0 and later, Smartphone for Windows Mobile Version 5.0 and later |
Note | Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements For more information, see Setting Up the Build Environment |