The D major arpeggio uses 3 notes from the D major scale. The first note D, the third note F#, and the fifth note A. These same 3 notes create the D major chord or triad when played in unison.
The red dots of the diagram represent the root notes.
These diagrams break the D Major Arpeggio down into 5 patterns.