-
Notifications
You must be signed in to change notification settings - Fork 263
ATF Code Samples
The following sample applications are shipped with the ATF in the ATF\Samples
folder. These sample applications show how to use ATF components to build applications with particular elements and functionality. To try them, open and build one of the Visual Studio solutions:
-
\Samples\Samples.sln
: includes all of the samples and ATF framework. -
\Test\Everything.sln
: includes ATF 3 and ATF 2 framework and samples, unit tests, functional tests, and development tools. (ATF 2 is not on GitHub.)
bin
folder.
The sample applications build on each other, from the simplest functionality of FileExplorer's file hierarchy display to the more complex DiagramEditor, which combines several sample applications to show how multiple applications can share one application shell.
Click each sample's link to view a description. Also, it may be helpful to view the Technology and Samples Matrix, showing where key technologies are used in sample applications.
For information about how the samples are programmed, see ATF Code Samples Discussions.
Code Sample | Purpose |
---|---|
CircuitEditor |
This sample is an editor for circuits, consisting of modules with input and output pins and
connections between them. It uses an XML schema to define the data file format, reads and writes XML
circuit files, and allows circuits to be edited using a graphical representation of modules and
connections. It uses the AdaptableControl to display and edit the circuit. Multiple documents can be
edited simultaneously. CircuitEditor uses several ATF Editor components to implement standard editing
commands. CircuitEditor also demonstrates: * Prototyping: you can create a custom set of circuit fragments that can be inserted into documents. * Layering: you can assign diagram components to layers which can be turned on and off (visible and invisible). |
CodeEditor | This sample is a code editor that uses the ActiproSoftare SyntaxEditor to provide an editing Control. It provides language syntax sensitive editing for plain text, C#, Lua, Squirrel, Python, XML, COLLADA and Cg files. |
DiagramEditor | This sample editor combines the Circuit, Finite State Machine, and State Chart editors into a single application to show how multiple editors can share an application shell and editor components. Note that not all of the related features of each of the other editors are included, so if you are mainly interested in circuits, for example, take a look at the ATF Circuit Editor Sample. |
DOMTreeEditor | This sample is an editor that operates on simple User interface definition files. The UI data is hierarchical and DomTreeEditor displays is in a TreeControl. You can select and edit UI elements in the tree, and you can edit the properties on the selected elements. |
FileExplorer | This sample shows how to build a simple Windows® Explorer-like application to view the contents of your hard drive. It demonstrates ATF features including the use of MEF to put applications together and develop a file view, use of the application shell framework, use of controls such as TreeControl, use of ATF list components to list files in the selected file folder, use of the UserFeedbackService for bug reporting, and use of the VersionUpdateService for upgrading to the latest SHIP version of the application. |
FsmEditor | This sample is a finite state machine editor. You can drag states from a palette onto a canvas and connect the states with transitions. A list or grid property editor allows you to edit states and transitions. You can create prototypes from selected states and transitions. |
ModelViewer | This model viewer shows how to use the ATF's ATGI and Collada file loaders and OpenGL® rendering. |
DOMPropertyEditor | This sample app demonstrates property editing, with a large variety of property editing controls and property descriptors. The values of the properties are stored in the DOM (Document Object Model). |
SimpleDOMEditor | This sample editor demonstrates the use of the DOM (Document Object Model), including defining a data model. It shows how to implement IDocumentClient and use the document framework to manage multiple documents, how to implement File menu items and more. It shows how to implement a UI parts palette and how to display editable lists of events and resources, how to adapt data to a list, and how to use ContextRegistry to track the active editing context. It also demonstrates how to adapt data so that ATF command components can be used to get undo/redo, cut/paste, and selection commands, how to enable property editing on selected UI elements, and how to implement a standard Help/About dialog. |
SimpleDOMEditorWPF | This sample is very similar to the SimpleDomEditor sample, but it is implemented using ATF's WPF framework. It demonstrates the use of the DOM (Document Object Model) with data containing a sequence of events, which can contain resources. Each event sequence file displays in a WPF Grid containing a ListView control, which shows all events and resources that can be selected and edited, as well as the properties on the selected items to be edited. The Resources editor tracks the last selected event and displays its resources in another ListView control in a Grid. |
SimpleDOMNoXMLEditor | This sample editor is very similar to the SimpleDOMEditor sample, but does not use XML. It demonstrates the use of the DOM (Document Object Model), but does not use an XML schema for its data model. It shows how to implement IDocumentClient and use the document framework to manage multiple documents, how to implement File menu items and more. It shows how to implement a UI parts palette and how to display editable lists of events and resources, how to adapt data to a list, and how to use ContextRegistry to track the active editing context. It also demonstrates how to adapt data so that ATF command components can be used to get undo/redo, cut/paste, and selection commands, how to enable property editing on selected UI elements, and how to implement a standard Help/About dialog. |
StateChartEditor | This sample is an editor for statecharts. It uses an XML schema to define the data file format, reads and writes XML statechart files, and allows them to be edited using a graphical representation of states and transitions. It uses the AdaptableControl to display and edit the statechart. Annotations, which are comments pasted on to the document canvas, can be added. Multiple documents can be edited simultaneously. Many ATF Editor components are used to implement standard editing commands. StatechartEditor also demonstrates prototyping: how the user can create a custom set of statechart fragments that can be inserted into documents. |
TargetManager | This sample shows how to use the TargetEnumerationService to discover, add, configure and select targets, which are network endpoints, such as TCP/IP addresses, PS3™ DevKits (to be added) or PlayStation®Vita DevKits. It demonstrates ATF features, such as using the application shell framework and target plugins. |
TimelineEditor | This sample is a relatively full-featured timeline editor whose components have been used in real production tools. It shows how to use MEF to put an application together using optional components, use of the application shell framework, how to use the timeline manipulators and a manipulator architecture that allows adding or removing a TimelineControl's functionality without modifying the TimelineControl, how to use the Palette as a parts depot for timeline objects, use of the property and grid property editors, sub-document support, how to enable opening multiple documents simultaneously, and copy and paste within and between documents. |
TreeListControl | This sample demonstrates the usage of TreeListControl/TreeListItemRenderer classes to display and edit hierarchical data in a tree view with details in columns. |
TreeListEditor | This sample editor shows how to create and add entries to various kinds of Tree lists, including a hierarchical list to display selected folders' underlying folders and files. It demonstrates ATF features such as using the application shell framework, use of controls such as TreeListView and use of the SettingsService to persist list column widths. The sample shows adding and removing list items and notifying the user of these events. |
UsingDirect2D | This sample application demonstrates how to use Direct2D and ATF classes that support Direct2D. It does not use MEF. |
UsingDom | This sample application is a simple demo of basic DOM use. It has no UI, running in a command prompt window. |
- Home
- Getting Started
- Features & Benefits
- Requirements & Dependencies
- Gallery
- Technology & Samples
- Adoption
- News
- Release Notes
- ATF Community
- Searching Documentation
- Using Documentation
- Videos
- Tutorials
- How To
- Programmer's Guide
- Reference
- Code Samples
- Documentation Files
© 2014-2015, Sony Computer Entertainment America LLC