| Metric | Tag | Overall | Per Function |
|---|---|---|---|
| Lines of Code | LOC | 232 | ****** |
| McCabe's Cyclomatic Number | MVG | 34 | ****** |
| Lines of Comment | COM | 45 | ******** |
| LOC/COM | L_C | 5.156 | |
| MVG/COM | M_C | 0.756 | |
| Weighted Methods per Class ( weighting = unity ) | WMC1 | 18 | |
| Weighted Methods per Class ( weighting = visible ) | WMCv | 0 | |
| Depth of Inheritance Tree | DIT | 1 | |
| Number of Children | NOC | 0 | |
| Coupling between objects | CBO | 16 | |
| Information Flow measure ( inclusive ) | IF4 | 784 | ******** |
| Information Flow measure ( visible ) | IF4v | 784 | ******** |
| Information Flow measure ( concrete ) | IF4c | 0 | ******** |
| Description | LOC | MVG | COM | L_C | M_C |
|---|---|---|---|---|---|
definition
./components/ogre/environment/Sun.h:42 |
16 | 0 | 12 | ------ | ------ |
declaration
./components/ogre/environment/CaelumEnvironment.h:35 |
1 | 0 | 0 | ------ | ------ |
| Function prototype | LOC | MVG | COM | L_C | M_C |
|---|---|---|---|---|---|
| Sun( Camera *, SceneManager * ) declaration ./components/ogre/environment/Sun.h:47definition ./components/ogre/environment/Sun.cpp:35 | 2 | 0 | 0 | ------ | ------ |
| Sun( SceneManager * ) definition ./components/ogre/environment/caelum/src/Sun.cpp:8 | 25 | 2 | 3 | 8.333 | ------ |
| createSunMaterial( ) definition ./components/ogre/environment/caelum/src/Sun.cpp:167 | 25 | 1 | 1 | 25.000 | ------ |
| destroySunMaterial( ) definition ./components/ogre/environment/caelum/src/Sun.cpp:196 | 8 | 1 | 0 | ------ | ------ |
| frameEnded( const FrameEvent & ) declaration ./components/ogre/environment/Sun.h:99definition ./components/ogre/environment/Sun.cpp:133 | 6 | 1 | 0 | ------ | ------ |
| getSunColour( ) definition ./components/ogre/environment/caelum/src/Sun.cpp:163 | 3 | 1 | 0 | ------ | ------ |
| getSunDirection( ) definition ./components/ogre/environment/caelum/src/Sun.cpp:124 | 3 | 1 | 0 | ------ | ------ |
| getSunPositionModel( ) definition ./components/ogre/environment/caelum/src/Sun.cpp:120 | 3 | 1 | 0 | ------ | ------ |
| notifyCameraChanged( Camera * ) definition ./components/ogre/environment/caelum/src/Sun.cpp:62 | 15 | 2 | 2 | ------ | ------ |
| runCommand( const string &, const string & ) declaration ./components/ogre/environment/Sun.h:56definition ./components/ogre/environment/Sun.cpp:84 | 44 | 15 | 5 | 8.800 | 3.000 |
| setAmbientLight( const ColourValue & ) declaration ./components/ogre/environment/Sun.h:96definition ./components/ogre/environment/Sun.cpp:157 | 5 | 0 | 4 | ------ | ------ |
| setFarRadius( float ) definition ./components/ogre/environment/caelum/src/Sun.cpp:80 | 9 | 1 | 0 | ------ | ------ |
| setSunColour( ColourValue ) definition ./components/ogre/environment/caelum/src/Sun.cpp:146 | 8 | 0 | 6 | ------ | ------ |
| setSunColour( const ColourValue & ) declaration ./components/ogre/environment/Sun.h:89definition ./components/ogre/environment/Sun.cpp:150 | 7 | 0 | 4 | ------ | ------ |
| setSunPosition( const Vector3 & ) declaration ./components/ogre/environment/Sun.h:82definition ./components/ogre/environment/Sun.cpp:141 | 8 | 0 | 5 | ------ | ------ |
| setSunPositionModel( SunPositionModel * ) definition ./components/ogre/environment/caelum/src/Sun.cpp:112 | 5 | 1 | 0 | ------ | ------ |
| update( const float ) definition ./components/ogre/environment/caelum/src/Sun.cpp:90 | 15 | 3 | 3 | ------ | ------ |
| ~Sun( ) definition ./components/ogre/environment/caelum/src/Sun.cpp:39declaration ./components/ogre/environment/Sun.h:49definition ./components/ogre/environment/Sun.cpp:78 | 24 | 4 | 0 | ****** | ------ |