Detailed report on module TerrainPage

MetricTagOverallPer Function
Lines of CodeLOC 203******
McCabe's Cyclomatic NumberMVG 36******
Lines of CommentCOM 782********
LOC/COML_C 0.260 
MVG/COMM_C 0.046 
Weighted Methods per Class (  weighting = unity )WMC1 26 
Weighted Methods per Class (  weighting = visible )WMCv 0 
Depth of Inheritance TreeDIT 0 
Number of ChildrenNOC 0 
Coupling between objectsCBO 17 
Information Flow measure (  inclusive )IF4 4356********
Information Flow measure (  visible )IF4v 4356********
Information Flow measure (  concrete )IF4c 0********

Definitions and Declarations

DescriptionLOCMVGCOML_CM_C
declaration   ./components/ogre/terrain/TerrainPageSurface.h:42
1 0 0------------
declaration   ./components/ogre/terrain/TerrainPageShadow.h:30
1 0 0------------
declaration   ./components/ogre/terrain/TerrainPageSurfaceCompiler.h:33
1 0 0------------
declaration   ./components/ogre/SceneManagers/EmberPagingSceneManager/include/EmberPagingLandScapeData2D_HeightField.h:34
1 0 0------------

Functions

Function prototypeLOCMVGCOML_CM_C
TerrainPage(  TerrainPosition,  const map,  TerrainGenerator * )
definition   ./components/ogre/terrain/TerrainPage.cpp:71

5 0 2------------
addShader(  TerrainShader * )
definition   ./components/ogre/terrain/TerrainPage.cpp:621

9 0 8------------
createHeightData(  Real * )
definition   ./components/ogre/terrain/TerrainPage.cpp:292

19 2 2------------
createShadow(  const Vector3 & )
definition   ./components/ogre/terrain/TerrainPage.cpp:171

5 0 17------------
destroyFoliage(   )
definition   ./components/ogre/terrain/TerrainPage.cpp:495

8 2 0------------
generateTerrainMaterials(   )
definition   ./components/ogre/terrain/TerrainPage.cpp:202

4 1 42------------
getAlphaMapScale(   )
definition   ./components/ogre/terrain/TerrainPage.cpp:278

10 3 1------------
getMaterial(   )
definition   ./components/ogre/terrain/TerrainPage.cpp:272

4 1 1------------
getMaxHeight(   )
definition   ./components/ogre/terrain/TerrainPage.cpp:133

8 2 0------------
getMinHeight(   )
definition   ./components/ogre/terrain/TerrainPage.cpp:142

8 2 0------------
getNumberOfSegmentsPerAxis(   )
definition   ./components/ogre/terrain/TerrainPage.cpp:128

4 1 0------------
getPageSize(   )
definition   ./components/ogre/terrain/TerrainPage.cpp:122

4 1 0------------
getSegment(  int,  int )
definition   ./components/ogre/terrain/TerrainPage.cpp:107

8 1 4------------
getValidSegments(   )
definition   ./components/ogre/terrain/TerrainPage.cpp:251

4 1 0------------
getVerticeCount(   )
definition   ./components/ogre/terrain/TerrainPage.cpp:261

4 1 4------------
getWFPosition(   )
definition   ./components/ogre/terrain/TerrainPage.cpp:266

4 1 0------------
hideFoliage(   )
definition   ./components/ogre/terrain/TerrainPage.cpp:487

7 2 0------------
populateSurfaces(   )
definition   ./components/ogre/terrain/TerrainPage.cpp:1044

6 1 402------------
prepareFoliage(   )
definition   ./components/ogre/terrain/TerrainPage.cpp:506

27 9 82 0.329 0.110
setupShadowTechnique(   )
definition   ./components/ogre/terrain/TerrainPage.cpp:162

8 1 0------------
showFoliage(   )
definition   ./components/ogre/terrain/TerrainPage.cpp:477

9 2 147------------
update(   )
definition   ./components/ogre/terrain/TerrainPage.cpp:151

7 0 0------------
updateAllShaderTextures(   )
definition   ./components/ogre/terrain/TerrainPage.cpp:1057

8 1 1------------
updateShaderTexture(  TerrainShader * )
definition   ./components/ogre/terrain/TerrainPage.cpp:1068

10 1 69------------
updateShadow(  const Vector3 & )
definition   ./components/ogre/terrain/TerrainPage.cpp:195

5 0 0------------
~TerrainPage(   )
definition   ./components/ogre/terrain/TerrainPage.cpp:102

4 0 0------------

Relationships

ClientsSuppliers
EmberPagingLandScapeData2D_HeightField [V]
has by reference   ./components/ogre/SceneManagers/EmberPagingSceneManager/include/EmberPagingLandScapeData2D_HeightField.h:63


ITerrainPageShadowTechnique [V]
pass by reference   ./components/ogre/terrain/TerrainPageShadow.h:36


SimpleTerrainPageShadowTechnique [V]
pass by reference   ./components/ogre/terrain/TerrainPageShadow.h:44
pass by reference   ./components/ogre/terrain/TerrainPageShadow.cpp:39


TerrainPageShadow [V]
pass by reference   ./components/ogre/terrain/TerrainPageShadow.h:55
has by reference   ./components/ogre/terrain/TerrainPageShadow.h:70
pass by reference   ./components/ogre/terrain/TerrainPageShadow.cpp:89


TerrainPageSurface [V]
pass by reference   ./components/ogre/terrain/TerrainPageSurface.cpp:35
pass by reference   ./components/ogre/terrain/TerrainPageSurface.h:51
has by reference   ./components/ogre/terrain/TerrainPageSurface.h:88


TerrainPageSurfaceCompiler [V]
pass by reference   ./components/ogre/terrain/TerrainPageSurfaceCompiler.cpp:50
pass by reference   ./components/ogre/terrain/TerrainPageSurfaceCompiler.cpp:66
pass by reference   ./components/ogre/terrain/TerrainPageSurfaceCompiler.h:54
pass by reference   ./components/ogre/terrain/TerrainPageSurfaceCompiler.h:59


TerrainPageSurfaceCompilerShaderNormalMappedPass [V]
pass by reference   ./components/ogre/terrain/TerrainPageSurfaceCompilerTechniqueShader.h:154
pass by reference   ./components/ogre/terrain/TerrainPageSurfaceCompilerTechniqueShader.cpp:412


TerrainPageSurfaceCompilerShaderPass [V]
pass by reference   ./components/ogre/terrain/TerrainPageSurfaceCompilerTechniqueShader.h:73
has by reference   ./components/ogre/terrain/TerrainPageSurfaceCompilerTechniqueShader.h:108
pass by reference   ./components/ogre/terrain/TerrainPageSurfaceCompilerTechniqueShader.cpp:196


TerrainPageSurfaceCompilerTechnique [V]
pass by reference   ./components/ogre/terrain/TerrainPageSurfaceCompiler.h:40


TerrainPageSurfaceCompilerTechniqueShader [V]
pass by reference   ./components/ogre/terrain/TerrainPageSurfaceCompilerTechniqueShader.h:122
has by reference   ./components/ogre/terrain/TerrainPageSurfaceCompilerTechniqueShader.h:127
pass by reference   ./components/ogre/terrain/TerrainPageSurfaceCompilerTechniqueShader.cpp:358


TerrainPageSurfaceCompilerTechniqueSimple [V]
pass by reference   ./components/ogre/terrain/TerrainPageSurfaceCompilerTechniqueSimple.cpp:77
pass by reference   ./components/ogre/terrain/TerrainPageSurfaceCompilerTechniqueSimple.h:42
has by reference   ./components/ogre/terrain/TerrainPageSurfaceCompilerTechniqueSimple.h:46


 
Real [V]
pass by reference   ./components/ogre/terrain/TerrainPage.cpp:292


TerrainGenerator [V]
pass by reference   ./components/ogre/terrain/TerrainPage.cpp:71


TerrainPosition [CV]
pass by value   ./components/ogre/terrain/TerrainPage.cpp:71


TerrainShader [V]
pass by reference   ./components/ogre/terrain/TerrainPage.cpp:621
pass by reference   ./components/ogre/terrain/TerrainPage.cpp:1068


Vector3 [V]
pass by reference   ./components/ogre/terrain/TerrainPage.cpp:171
pass by reference   ./components/ogre/terrain/TerrainPage.cpp:195


map [CV]
pass by value   ./components/ogre/terrain/TerrainPage.cpp:71