myTextDlg->setTitleText(QString(thePrs->GetTitle()));
vtkFloatingPointType R, G, B;
- thePrs->GetTitleColor(&R, &G, &B);
+ thePrs->GetTitleColor(R, G, B);
myBarDlg->setLabelsFormat(thePrs->GetLabelsFormat());
myBarDlg->setUnitsVisible(thePrs->IsUnitsVisible());
thePrs->IsShadowTitle());
// "Labels"
- thePrs->GetLabelColor(&R, &G, &B);
+ thePrs->GetLabelColor(R, G, B);
myTextDlg->myLabelFont->SetData(QColor((int)(R*255.), (int)(G*255.), (int)(B*255.)),
thePrs->GetLblFontType(),
myTextDlg->setTitleText(aTitle.in());
myTitle = aTitle.in();
- vtkFloatingPointType R, G, B;
- myScalarMap->GetTitleColor(&R, &G, &B);
-
setPosAndSize( myScalarMap->GetPosX(),
myScalarMap->GetPosY(),
myScalarMap->GetWidth(),
myBarDlg->setLabelsFormat(myScalarMap->GetLabelsFormat());
myBarDlg->setUnitsVisible(myScalarMap->IsUnitsVisible());
- myTextDlg->myTitleFont->SetData(QColor((int)(R*255.), (int)(G*255.), (int)(B*255.)),
+ vtkFloatingPointType R, G, B;
+ myScalarMap->GetTitleColor(R, G, B);
+
+ QColor aTextColor = QColor((int)(R*255.), (int)(G*255.), (int)(B*255.));
+
+ myTextDlg->myTitleFont->SetData(aTextColor,
myScalarMap->GetTitFontType(),
myScalarMap->IsBoldTitle(),
myScalarMap->IsItalicTitle(),
myScalarMap->IsShadowTitle());
// "Labels"
- myScalarMap->GetLabelColor(&R, &G, &B);
+ myScalarMap->GetLabelColor(R, G, B);
+
+ QColor aLabelColor = QColor((int)(R*255.), (int)(G*255.), (int)(B*255.));
- myTextDlg->myLabelFont->SetData(QColor((int)(R*255.), (int)(G*255.), (int)(B*255.)),
+ myTextDlg->myLabelFont->SetData(aLabelColor,
myScalarMap->GetLblFontType(),
myScalarMap->IsBoldLabel(),
myScalarMap->IsItalicLabel(),
myScalarMap->SetShadowTitle(isTitleShadow);
myScalarMap->SetTitFontType(aTitleFontFamily);
myScalarMap->SetTitleColor(aTitColor.red()/255.,
- aTitColor.green()/255.,
- aTitColor.blue()/255.);
+ aTitColor.green()/255.,
+ aTitColor.blue()/255.);
// "Label"
QColor aLblColor (255, 255, 255);
myTitle = aTitle.in();
vtkFloatingPointType R, G, B;
- myBarPrs->GetTitleColor(&R, &G, &B);
+ myBarPrs->GetTitleColor(R, G, B);
setPosAndSize( myBarPrs->GetPosX(),
myBarPrs->GetPosY(),
myBarPrs->IsShadowTitle());
// "Labels"
- myBarPrs->GetLabelColor(&R, &G, &B);
+ myBarPrs->GetLabelColor(R, G, B);
myTextDlg->myLabelFont->SetData(QColor((int)(R*255.), (int)(G*255.), (int)(B*255.)),
myBarPrs->GetLblFontType(),
SetShadowTitle(anOrigin->IsShadowTitle());
SetTitFontType(anOrigin->GetTitFontType());
vtkFloatingPointType r,g,b;
- anOrigin->GetTitleColor(&r,&g,&b);
+ anOrigin->GetTitleColor(r,g,b);
SetTitleColor(r,g,b);
SetBoldLabel(anOrigin->IsBoldLabel());
SetItalicLabel(anOrigin->IsItalicLabel());
SetShadowLabel(anOrigin->IsShadowLabel());
SetLblFontType(anOrigin->GetLblFontType());
- anOrigin->GetLabelColor(&r,&g,&b);
+ anOrigin->GetLabelColor(r,g,b);
SetLabelColor(r,g,b);
myIsTimeStampFixed = anOrigin->IsTimeStampFixed();
//----------------------------------------------------------------------------
void
VISU::ColoredPrs3d_i
-::GetTitleColor(vtkFloatingPointType* theR,
- vtkFloatingPointType* theG,
- vtkFloatingPointType* theB)
+::GetTitleColor(vtkFloatingPointType& theR,
+ vtkFloatingPointType& theG,
+ vtkFloatingPointType& theB)
{
- *theR = myTitleColor[0];
- *theG = myTitleColor[1];
- *theB = myTitleColor[2];
+ theR = myTitleColor[0];
+ theG = myTitleColor[1];
+ theB = myTitleColor[2];
}
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
void
VISU::ColoredPrs3d_i
-::GetLabelColor(vtkFloatingPointType* theR,
- vtkFloatingPointType* theG,
- vtkFloatingPointType* theB)
+::GetLabelColor(vtkFloatingPointType& theR,
+ vtkFloatingPointType& theG,
+ vtkFloatingPointType& theB)
{
- *theR = myLabelColor[0];
- *theG = myLabelColor[1];
- *theB = myLabelColor[2];
+ theR = myLabelColor[0];
+ theG = myLabelColor[1];
+ theB = myLabelColor[2];
}
//----------------------------------------------------------------------------
QColor aTextColor = aResourceMgr->colorValue( "VISU", "scalar_bar_title_color", QColor( 255, 255, 255 ) );
- myTitleColor[0] = aTextColor.red() / 255;
- myTitleColor[1] = aTextColor.green() / 255;
- myTitleColor[2] = aTextColor.blue() / 255;
+ SetTitleColor(aTextColor.red()/255., aTextColor.green()/255., aTextColor.blue()/255.);
+
+ myTitleColor[0] = aTextColor.red() / 255.;
+ myTitleColor[1] = aTextColor.green() / 255.;
+ myTitleColor[2] = aTextColor.blue() / 255.;
myIsBoldLabel = myIsItalicLabel = myIsShadowLabel = true;
myLblFontType = VTK_ARIAL;
QColor aLabelColor = aResourceMgr->colorValue( "VISU", "scalar_bar_label_color", QColor( 255, 255, 255 ) );
- myLabelColor[0] = aLabelColor.red() / 255;
- myLabelColor[1] = aLabelColor.green() / 255;
- myLabelColor[2] = aLabelColor.blue() / 255;
+ SetLabelColor(aLabelColor.red()/255., aLabelColor.green()/255., aLabelColor.blue()/255.);
+
+ myLabelColor[0] = aLabelColor.red() / 255.;
+ myLabelColor[1] = aLabelColor.green() / 255.;
+ myLabelColor[2] = aLabelColor.blue() / 255.;
return this;
}
virtual
void
- GetTitleColor(vtkFloatingPointType* theR,
- vtkFloatingPointType* theG,
- vtkFloatingPointType* theB);
+ GetTitleColor(vtkFloatingPointType& theR,
+ vtkFloatingPointType& theG,
+ vtkFloatingPointType& theB);
virtual
void
virtual
void
- GetLabelColor(vtkFloatingPointType* theR,
- vtkFloatingPointType* theG,
- vtkFloatingPointType* theB);
+ GetLabelColor(vtkFloatingPointType& theR,
+ vtkFloatingPointType& theG,
+ vtkFloatingPointType& theB);
virtual
void
vtkTextProperty* aTitleProp = theScalarBar->GetTitleTextProperty();
aTitleProp->SetFontFamily(GetTitFontType());
- GetTitleColor(&anRGB[0],&anRGB[1],&anRGB[2]);
+ GetTitleColor(anRGB[0],anRGB[1],anRGB[2]);
aTitleProp->SetColor(anRGB[0],anRGB[1],anRGB[2]);
IsBoldTitle()? aTitleProp->BoldOn() : aTitleProp->BoldOff();
vtkTextProperty* aLabelProp = theScalarBar->GetLabelTextProperty();
aLabelProp->SetFontFamily(GetLblFontType());
- GetLabelColor(&anRGB[0],&anRGB[1],&anRGB[2]);
+ GetLabelColor(anRGB[0],anRGB[1],anRGB[2]);
aLabelProp->SetColor(anRGB[0],anRGB[1],anRGB[2]);
IsBoldLabel()? aLabelProp->BoldOn() : aLabelProp->BoldOff();
vtkTextProperty* aTitleProp = aScalarBar->GetTitleTextProperty();
aTitleProp->SetFontFamily(GetTitFontType());
- GetTitleColor(&anRGB[0],&anRGB[1],&anRGB[2]);
+ GetTitleColor(anRGB[0],anRGB[1],anRGB[2]);
aTitleProp->SetColor(anRGB[0],anRGB[1],anRGB[2]);
IsBoldTitle()? aTitleProp->BoldOn() : aTitleProp->BoldOff();
vtkTextProperty* aLabelProp = aScalarBar->GetLabelTextProperty();
aLabelProp->SetFontFamily(GetLblFontType());
- GetLabelColor(&anRGB[0],&anRGB[1],&anRGB[2]);
+ GetLabelColor(anRGB[0],anRGB[1],anRGB[2]);
aLabelProp->SetColor(anRGB[0],anRGB[1],anRGB[2]);
IsBoldLabel()? aLabelProp->BoldOn() : aLabelProp->BoldOff();
}
//----------------------------------------------------------------------------
-void VISU::PointMap3d_i::GetTitleColor(vtkFloatingPointType* theR,
- vtkFloatingPointType* theG,
- vtkFloatingPointType* theB)
+void VISU::PointMap3d_i::GetTitleColor(vtkFloatingPointType& theR,
+ vtkFloatingPointType& theG,
+ vtkFloatingPointType& theB)
{
- *theR = myTitleColor[0];
- *theG = myTitleColor[1];
- *theB = myTitleColor[2];
+ theR = myTitleColor[0];
+ theG = myTitleColor[1];
+ theB = myTitleColor[2];
}
//----------------------------------------------------------------------------
}
//----------------------------------------------------------------------------
-void VISU::PointMap3d_i::GetLabelColor(vtkFloatingPointType* theR,
- vtkFloatingPointType* theG,
- vtkFloatingPointType* theB)
+void VISU::PointMap3d_i::GetLabelColor(vtkFloatingPointType& theR,
+ vtkFloatingPointType& theG,
+ vtkFloatingPointType& theB)
{
- *theR = myLabelColor[0];
- *theG = myLabelColor[1];
- *theB = myLabelColor[2];
+ theR = myLabelColor[0];
+ theG = myLabelColor[1];
+ theB = myLabelColor[2];
}
//----------------------------------------------------------------------------
virtual void SetShadowTitle(bool isShadow);
virtual int GetTitFontType();
virtual void SetTitFontType(int theType);
- virtual void GetTitleColor(vtkFloatingPointType* theR,
- vtkFloatingPointType* theG,
- vtkFloatingPointType* theB);
+ virtual void GetTitleColor(vtkFloatingPointType& theR,
+ vtkFloatingPointType& theG,
+ vtkFloatingPointType& theB);
virtual void SetTitleColor(vtkFloatingPointType theR,
vtkFloatingPointType theG,
vtkFloatingPointType theB);
virtual void SetShadowLabel(bool isShadow);
virtual int GetLblFontType();
virtual void SetLblFontType(int theType);
- virtual void GetLabelColor(vtkFloatingPointType* theR,
- vtkFloatingPointType* theG,
- vtkFloatingPointType* theB);
+ virtual void GetLabelColor(vtkFloatingPointType& theR,
+ vtkFloatingPointType& theG,
+ vtkFloatingPointType& theB);
virtual void SetLabelColor(vtkFloatingPointType theR,
vtkFloatingPointType theG,
vtkFloatingPointType theB);
vtkTextProperty* aTitleProp = aScalarBar->GetTitleTextProperty();
aTitleProp->SetFontFamily(GetTitFontType());
- GetTitleColor(&anRGB[0],&anRGB[1],&anRGB[2]);
+ GetTitleColor(anRGB[0],anRGB[1],anRGB[2]);
aTitleProp->SetColor(anRGB[0],anRGB[1],anRGB[2]);
IsBoldTitle()? aTitleProp->BoldOn() : aTitleProp->BoldOff();
vtkTextProperty* aLabelProp = aScalarBar->GetLabelTextProperty();
aLabelProp->SetFontFamily(GetLblFontType());
- GetLabelColor(&anRGB[0],&anRGB[1],&anRGB[2]);
+ GetLabelColor(anRGB[0],anRGB[1],anRGB[2]);
aLabelProp->SetColor(anRGB[0],anRGB[1],anRGB[2]);
IsBoldLabel()? aLabelProp->BoldOn() : aLabelProp->BoldOff();