Detailed report on module TerrainGenerator

MetricTagOverallPer Function
Lines of CodeLOC 338******
McCabe's Cyclomatic NumberMVG 63******
Lines of CommentCOM 156********
LOC/COML_C 2.167 
MVG/COMM_C 0.404 
Weighted Methods per Class (  weighting = unity )WMC1 36 
Weighted Methods per Class (  weighting = visible )WMCv 0 
Depth of Inheritance TreeDIT 0 
Number of ChildrenNOC 0 
Coupling between objectsCBO 20 
Information Flow measure (  inclusive )IF4 7056********
Information Flow measure (  visible )IF4v 7056********
Information Flow measure (  concrete )IF4c 0********

Definitions and Declarations

DescriptionLOCMVGCOML_CM_C
declaration   ./components/ogre/WorldEmberEntity.h:31
1 0 0------------
declaration   ./components/ogre/EmberEntityFactory.h:43
1 0 0------------
declaration   ./components/ogre/terrain/TerrainPageShadow.h:31
1 0 0------------
declaration   ./components/ogre/SceneManagers/EmberPagingSceneManager/include/EmberPagingSceneManager.h:34
1 0 0------------

Functions

Function prototypeLOCMVGCOML_CM_C
ConfigService_EventChangedConfigItem(  const string &,  const string & )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:535

8 2 0------------
TerrainArea_Changed(  TerrainArea * )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:240

7 1 2------------
TerrainGenerator(  ISceneManagerAdapter * )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:81

2 0 0------------
addArea(  TerrainArea * )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:211

21 3 16 1.312------
buildHeightmap(   )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:322

18 3 3------------
createPage(  const TerrainPosition & )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:487

17 4 3------------
createShader(  const TerrainLayerDefinition *,  Shader * )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:187

9 1 0------------
frameStarted(  const FrameEvent & )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:255

15 5 5------ 1.000
getAdapter(   )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:182

4 1 0------------
getFoliageShader(   )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:704

4 1 0------------
getHeight(  const TerrainPosition & )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:554

10 3 1------------
getMax(   )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:692

4 1 9------------
getMin(   )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:698

4 1 1------------
getPageSize(   )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:312

4 1 0------------
getSegmentSize(   )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:317

4 1 0------------
getTerrain(   )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:132

4 1 0------------
getTerrainInfo(   )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:732

4 1 0------------
getTerrainPage(  const TerrainPosition & )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:447

8 1 0------------
getTerrainPage(  const Vector2 &,  bool )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:461

16 4 3------------
isFoliageShown(   )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:544

7 4 0------------
isValidTerrainAt(  const TerrainPosition & )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:437

5 2 3------------
loadTerrainOptions(   )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:138

7 0 23------------
markShaderForUpdate(  TerrainShader * )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:250

4 0 0------------
prepareAllSegments(   )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:362

14 0 44------------
prepareSegments(  long,  long,  long,  bool )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:282

3 0 23------------
registerSceneManagerAdapter(  ISceneManagerAdapter * )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:356

4 0 8------------
reloadTerrain(  vector & )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:632

19 4 1------------
runCommand(  const string &,  const string & )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:715

15 2 1------------
setFoliageShader(  TerrainShader * )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:709

4 0 0------------
updateEntityPosition(  EmberEntity *,  const set & )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:674

8 1 0------------
updateEntityPositions(  const set & )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:666

7 1 0------------
updateFoliageVisibilty(   )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:521

12 2 0------------
updateHeightMapAndShaders(  const set & )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:654

9 1 1------------
updateShadows(   )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:570

8 1 0------------
updateTerrain(  const TerrainDefPointStore & )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:581

35 8 8 4.375 1.000
~TerrainGenerator(   )
definition   ./components/ogre/terrain/TerrainGenerator.cpp:115

10 2 1------------

Relationships

ClientsSuppliers
EmberEntityFactory [V]
pass by reference   ./components/ogre/EmberEntityFactory.cpp:74
pass by reference   ./components/ogre/EmberEntityFactory.h:72
has by reference   ./components/ogre/EmberEntityFactory.h:141


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


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


TerrainParser [V]
pass by reference   ./components/ogre/WorldEmberEntity.cpp:124


WorldEmberEntity [V]
pass by reference   ./components/ogre/WorldEmberEntity.h:60
has by reference   ./components/ogre/WorldEmberEntity.h:69
pass by reference   ./components/ogre/WorldEmberEntity.cpp:47


 
EmberEntity [V]
pass by reference   ./components/ogre/terrain/TerrainGenerator.cpp:674


FrameEvent [V]
pass by reference   ./components/ogre/terrain/TerrainGenerator.cpp:255


ISceneManagerAdapter [V]
pass by reference   ./components/ogre/terrain/TerrainGenerator.cpp:81
pass by reference   ./components/ogre/terrain/TerrainGenerator.cpp:356


Shader [V]
pass by reference   ./components/ogre/terrain/TerrainGenerator.cpp:187


TerrainArea [V]
pass by reference   ./components/ogre/terrain/TerrainGenerator.cpp:211
pass by reference   ./components/ogre/terrain/TerrainGenerator.cpp:240


TerrainDefPointStore [V]
pass by reference   ./components/ogre/terrain/TerrainGenerator.cpp:581


TerrainLayerDefinition [V]
pass by reference   ./components/ogre/terrain/TerrainGenerator.cpp:187


TerrainPosition [V]
pass by reference   ./components/ogre/terrain/TerrainGenerator.cpp:437
pass by reference   ./components/ogre/terrain/TerrainGenerator.cpp:447
pass by reference   ./components/ogre/terrain/TerrainGenerator.cpp:487
pass by reference   ./components/ogre/terrain/TerrainGenerator.cpp:554


TerrainShader [V]
pass by reference   ./components/ogre/terrain/TerrainGenerator.cpp:250
pass by reference   ./components/ogre/terrain/TerrainGenerator.cpp:709


Vector2 [V]
pass by reference   ./components/ogre/terrain/TerrainGenerator.cpp:461


bool [CV]
pass by value   ./components/ogre/terrain/TerrainGenerator.cpp:282
pass by value   ./components/ogre/terrain/TerrainGenerator.cpp:461


set [V]
pass by reference   ./components/ogre/terrain/TerrainGenerator.cpp:654
pass by reference   ./components/ogre/terrain/TerrainGenerator.cpp:666
pass by reference   ./components/ogre/terrain/TerrainGenerator.cpp:674


string [V]
pass by reference   ./components/ogre/terrain/TerrainGenerator.cpp:535
pass by reference   ./components/ogre/terrain/TerrainGenerator.cpp:535
pass by reference   ./components/ogre/terrain/TerrainGenerator.cpp:715
pass by reference   ./components/ogre/terrain/TerrainGenerator.cpp:715


vector [V]
pass by reference   ./components/ogre/terrain/TerrainGenerator.cpp:632