SetScalarMode(anOrigin->GetScalarMode());
SetNbColors(anOrigin->GetNbColors());
- SetScalarBarOrientation(anOrigin->GetScalarBarOrientation());
+ SetBarOrientation(anOrigin->GetBarOrientation());
SetPosition(anOrigin->GetPosX(), anOrigin->GetPosY());
SetSize(anOrigin->GetWidth(), anOrigin->GetHeight());
void
VISU::ColoredPrs3d_i
-::SetScalarBarOrientation(VISU::ColoredPrd3d::ScalarBarOrientation theOrientation)
+::SetBarOrientation(VISU::ScalarMap::Orientation theOrientation)
{
myOrientation = theOrientation;
}
-VISU::ColoredPrd3d::ScalarBarOrientation
+VISU::ScalarMap::Orientation
VISU::ColoredPrs3d_i
-::GetScalarBarOrientation()
+::GetBarOrientation()
{
return myOrientation;
}
// Orientation
int anOrientation = aResourceMgr->integerValue("VISU", "scalar_bar_orientation", 0);
if(anOrientation == 1)
- myOrientation = VISU::ColoredPrd3d::HORIZONTAL;
+ myOrientation = VISU::ScalarMap::HORIZONTAL;
else
- myOrientation = VISU::ColoredPrd3d::VERTICAL;
+ myOrientation = VISU::ScalarMap::VERTICAL;
// Scalar Bar origin
QString propertyName = QString( "scalar_bar_%1_" ).arg( anOrientation == 0 ? "vertical" : "horizontal" );
- float aXorigin = (myOrientation == VISU::ColoredPrd3d::VERTICAL) ? 0.01 : 0.2;
+ float aXorigin = (myOrientation == VISU::ScalarMap::VERTICAL) ? 0.01 : 0.2;
aXorigin = aResourceMgr->doubleValue("VISU", propertyName + "x", aXorigin);
myPosition[0] = aXorigin;
- float aYorigin = (myOrientation == VISU::ColoredPrd3d::VERTICAL) ? 0.1 : 0.012;
+ float aYorigin = (myOrientation == VISU::ScalarMap::VERTICAL) ? 0.1 : 0.012;
aYorigin = aResourceMgr->doubleValue("VISU", propertyName + "y", aYorigin);
myPosition[1] = aYorigin;
// Scalar Bar size
- myWidth = (myOrientation == VISU::ColoredPrd3d::VERTICAL)? 0.1 : 0.6;
+ myWidth = (myOrientation == VISU::ScalarMap::VERTICAL)? 0.1 : 0.6;
myWidth = aResourceMgr->doubleValue("VISU", propertyName + "width", myWidth);
- myHeight = (myOrientation == VISU::ColoredPrd3d::VERTICAL)? 0.8:0.12;
+ myHeight = (myOrientation == VISU::ScalarMap::VERTICAL)? 0.8:0.12;
myHeight = aResourceMgr->doubleValue("VISU", propertyName + "height", myHeight);
// Nb of Labels
SetScalarMode(VISU::Storable::FindValue(theMap,"myScalarMode").toInt());
SetNbColors(VISU::Storable::FindValue(theMap,"myNumberOfColors").toInt());
- SetScalarBarOrientation((VISU::ColoredPrd3d::ScalarBarOrientation)VISU::Storable::FindValue(theMap,"myOrientation").toInt());
+ SetBarOrientation((VISU::ScalarMap::Orientation)VISU::Storable::FindValue(theMap,"myOrientation").toInt());
myMeshName = VISU::Storable::FindValue(theMap,"myMeshName").latin1();
myEntity = (VISU::TEntity)VISU::Storable::FindValue(theMap,"myEntity").toInt();
virtual
void
- SetScalarBarOrientation(VISU::ColoredPrd3d::ScalarBarOrientation theOrientation);
+ SetBarOrientation(VISU::ScalarMap::Orientation theOrientation);
virtual
- VISU::ColoredPrd3d::ScalarBarOrientation
- GetScalarBarOrientation();
+ VISU::ScalarMap::Orientation
+ GetBarOrientation();
virtual
void
//----------------------------------------------------------------------------
protected:
- VISU::ColoredPrd3d::ScalarBarOrientation myOrientation;
+ VISU::ScalarMap::Orientation myOrientation;
std::string myTitle;
int myNumberOfLabels;
float myPosition[2], myWidth, myHeight;