Skip to content

Finding ATF Components

gstaas edited this page Oct 30, 2014 · 2 revisions

This section discusses how to find existing ATF components that fulfill your application's needs. If a component does not precisely fit your needs, you can modify it.

Table of Contents

Finding Components in Documentation

You can start by looking at Important ATF Components that describes the key ATF components. You can search for text on that page.

You might also find Class Survey useful, because it lists many representative and useful ATF classes, including components, by namespace.

You can download ATF API Reference and search this Reference for key terms. It is also organized by namespace.

Finding Components in Samples

ATF Samples Components lists useful components in the samples.

Look at ATF Code Samples for samples that have capabilities in common with your application to see what components they have implemented or import. For example, several samples implement a PaletteClient that populates a palette with types, a common application task. For the samples that use components (most of them), the MEF type catalog in the Main() function in Program.cs lists all the components the sample imports.

For details on samples' programming, see ATF Code Samples Discussions.

Finding Components in ATF Source

Every ATF component exports at least one type, so you can find all ATF components by searching for [Export(typeof( in Visual Studio. Performing this search on the ATF source in the Frameworks folder yields over 300 items like this:

C:\SonyDev\SVN\wws_sdk_trunk\components\wws_atf\Framework\Atf.Atgi\AtgiResolver.cs(18):    [Export(typeof(AtgiResolver))]
C:\SonyDev\SVN\wws_sdk_trunk\components\wws_atf\Framework\Atf.Atgi\AtgiResolver.cs(19):    [Export(typeof(IInitializable))]
C:\SonyDev\SVN\wws_sdk_trunk\components\wws_atf\Framework\Atf.Atgi\AtgiResolver.cs(20):    [Export(typeof(IResourceResolver))]
C:\SonyDev\SVN\wws_sdk_trunk\components\wws_atf\Framework\Atf.Core\AtfUsageLogger.cs(26):    [Export(typeof(IInitializable))]
C:\SonyDev\SVN\wws_sdk_trunk\components\wws_atf\Framework\Atf.Core\ConsoleOutputWriter.cs(10):    [Export(typeof(IOutputWriter))]

This list provides some information about the component: its file location and the type it exports. The file location gives you the component name and what general category it falls in. You can now search this list for terms related to the capability you are looking for. For instance, you could search for "file", "curve", "label", or "property".

Topics in this Section

Clone this wiki locally