60 likes | 230 Views
IMPA – Sistemas Gráficos 3D (2007) Mário de Sá Vera mvera@impa.br. S3D Software Object Oriented Refactoring. S3D OO Refactoring. motivation refactoring strategies API source code documentation conclusion and further works. S3D OO Refactoring. motivation :
E N D
IMPA – Sistemas Gráficos 3D (2007) Mário de Sá Vera mvera@impa.br S3D SoftwareObject Oriented Refactoring
S3D OO Refactoring • motivation • refactoring strategies • API source code documentation • conclusion and further works
S3D OO Refactoring • motivation : • formal object oriented language (C++) implementation • create a SOA through managers concept • source forge style API presentation • colaborative development (?)
S3D OO Refactoring • refactoring strategies : • good C++ practices • strongly typed (no void* or callbacks) • MACROs replaced by generics (templates) • parameters constraints (const and reference) • no global declarations other than Managers • no third party components (STL containers only) • stdio deprecated IO replaced by new iostreams • no change to the algorithms • TODO and NOTE fields in the header files
S3D OO Refactoring • API source code documentation : • Doxygen • must be extended • original code conventions were kept (?) • OO API main features : • semantics : ColorMap , LightCone , AffineTransform • IO : Image , Single/MultiBandRaster • late binding : TextureMapping and Rasterizers/Shaders • control : Managers
S3D OO Refactoring • conclusion • 77 classes so far • unstable code • further works • estabilization of the package • documentation • colaborative development infrastructure • course book re-edition with the OO code (?)