save the work
This commit is contained in:
parent
cc14324c33
commit
ce09bb9ad5
@ -437,10 +437,20 @@ void ScaLBL_GreyscaleColorModel::DensityField_Init(){
|
|||||||
|
|
||||||
size_t NLABELS=0;
|
size_t NLABELS=0;
|
||||||
signed char VALUE=0;
|
signed char VALUE=0;
|
||||||
//Read all greyscale node labels and their conrresponding initial saturaiton
|
|
||||||
//TODO make something default, LabelList=1,2, SwList=0.0, 1.0
|
if (greyscaleColor_db->keyExists( "GreyNodeLabels" )){
|
||||||
auto LabelList = greyscaleColor_db->getVector<int>( "GreyNodeLabels" );
|
auto LabelList = greyscaleColor_db->getVector<int>( "GreyNodeLabels" );
|
||||||
auto SwList = greyscaleColor_db->getVector<double>( "GreyNodeSw" );
|
}
|
||||||
|
else{
|
||||||
|
vector<int> LabelList{1,2};
|
||||||
|
}
|
||||||
|
if (greyscaleColor_db->keyExists( "GreyNodeSw" )){
|
||||||
|
auto SwList = greyscaleColor_db->getVector<double>( "GreyNodeSw" );
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
vector<double> SwList{0.0,1.0};
|
||||||
|
}
|
||||||
|
|
||||||
NLABELS=LabelList.size();
|
NLABELS=LabelList.size();
|
||||||
if (NLABELS != SwList.size()){
|
if (NLABELS != SwList.size()){
|
||||||
ERROR("Error: GreyNodeLabels and GreyNodeSw must be the same length! \n");
|
ERROR("Error: GreyNodeLabels and GreyNodeSw must be the same length! \n");
|
||||||
|
Loading…
Reference in New Issue
Block a user