From Bob Kuehne, reworked code to use a marco instead of duplicated code, done as measure for reducing the risk of copy and paste errors.
From Bob Kuehne, reworked code to use a marco instead of duplicated code,
done as measure for reducing the risk of copy and paste errors.


git-svn-id: 23b6355f2bb369032457de4eb5f713ee134f73a8@2861 16af8721-9629-0410-8352-f15c8da7e697

joevandyk/osg,joevandyk/osg,joevandyk/osg,joevandyk/osg,joevandyk/osg