BBTK_INPUT(ColorLayerImageView,lstRangeForColorBar,"??? EED ",std::vector<double>,"");
- BBTK_INPUT(ColorLayerImageView,PlainOrGradientColor,"Choose between Plain (true) or Gradient (false) colors. Default is false.",bool,"");
+ BBTK_INPUT(ColorLayerImageView,PlainOrGradientColor,"true=Plane false=Gradient (Default false)",bool,"");
BBTK_INPUT(ColorLayerImageView,FittingMode,"Choose the fitting mode between the images, the transformation can be either by Dimension (1), by Spacing (2) or by Pixel (3). If you want to make the choice through a dialog box, choose (-1). Default is by Pixel (3).",int,"");
BBTK_END_DESCRIBE_BLACK_BOX(ColorLayerImageView);
//=====
_currentpathColorsFuntion = "";
#ifdef WIN32
_currentpathColorsFuntion = crea::System::GetDllAppPath("bbcreaMaracasVisu");
+ _currentpathColorsFuntion.append("/data/");
#endif
#ifdef LINUX
_currentpathColorsFuntion = crea::System::GetExecutablePath();
{
item = new HistogramDialogComboBoxItem();
}else if((int)(line.find("<greyValue>"))!=-1) {
- int pos1=line.find(">");
+ int pos1=line.find(">");
int pos2=line.find("<",pos1+1);
std::string x=line.substr(pos1+1,pos2-pos1-1);
gvtransfer=atof(x.c_str());
greyvecttransfunct.push_back(gvtransfer);
}else if((int)(line.find("<intensity>"))!=-1) {
- int pos1=line.find(">");
+ int pos1=line.find(">");
int pos2=line.find("<",pos1+1);
std::string x=line.substr(pos1+1,pos2-pos1-1);
intensity=atof(x.c_str());
**/
void HistogramDialogComboBox::GetValuesPointsFunction(std::vector<double>& greylevel,std::vector<double>& value)
{
- for(int i = 0; i < _greyvecttransfer.size();i++) {
+ for(int i = 0; i < _greyvecttransfer.size();i++)
+ {
greylevel.push_back(_greyvecttransfer[i]*_maxgreyvalue);
value.push_back(_value[i]);
- }
+ } // for i
}
/**
std::vector<double>& green,
std::vector<double>& blue)
{
- for(int i = 0; i < _greyvect.size();i++) {
+ for(int i = 0; i < _greyvect.size();i++)
+ {
greylevel.push_back(_greyvect[i]*_maxgreyvalue);
red.push_back(_redvect[i]);
green.push_back(_greenvect[i]);
blue.push_back(_bluevect[i]);
- }
+ } // for i
}
+