Commit 67483be5 authored by aderam's avatar aderam
Browse files

FIXED: MML component: no more random colors for metrics visualisation when...

FIXED: MML component: no more random colors for metrics visualisation when there is no data on atoms (data at 0 by default)

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@200 ec899d31-69d1-42ba-9299-647d76f65fb3
parent 8a443162
...@@ -70,6 +70,14 @@ void Colors::update() ...@@ -70,6 +70,14 @@ void Colors::update()
double range = max - min; double range = max - min;
AtomDC* adc; AtomDC* adc;
//in case some nodes are not displayed set all values to 0 (blue color for everyone)
StructuralComponent* sc=pmMgr->getPhysicalModel()->getAtoms();
for ( unsigned int i = 0; i<sc->getNumberOfStructures() ;i++ ){
adc = pmMgr->getDC ((Atom*)(sc->getStructure(i)));
adc -> updatePointData (1.0);
}
for ( unsigned int i = 0; i <monitor->getNumberOfIndex();i++ ) { for ( unsigned int i = 0; i <monitor->getNumberOfIndex();i++ ) {
val =monitor->getValue(i); val =monitor->getValue(i);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment