SetScalarMeshName(theMeshName);
int anEntity = theEntity;
SetScalarEntity(VISU::TEntity(anEntity));
- SetScalarField(myScalarMeshName.c_str(),myScalarFieldName.c_str(),myScalarIteration,myScalarEntity);
+ SetCScalarField(myScalarMeshName,myScalarFieldName,myScalarIteration,myScalarEntity);
return aRes;
}
SetScalarMeshName(VISU::Storable::FindValue(theMap,"myScalarMeshName"));
SetScalarIteration(VISU::Storable::FindValue(theMap,"myScalarIteration").toInt());
SetScalarEntity(VISU::TEntity(VISU::Storable::FindValue(theMap,"myScalarEntity").toInt()));
- SetScalarField(GetScalarMeshName().c_str(),
- GetScalarFieldName().c_str(),
- GetScalarIteration(),
- GetScalarEntity());
+ SetCScalarField(GetScalarMeshName(),
+ GetScalarFieldName(),
+ GetScalarIteration(),
+ GetScalarEntity());
SetScale(VISU::Storable::FindValue(theMap,"myFactor").toDouble());
myIsColored = VISU::Storable::FindValue(theMap,"myIsColored").toInt();
if(const ScalarMapOnDeformedShape_i* aPrs3d = dynamic_cast<const ScalarMapOnDeformedShape_i*>(theOrigin)){
ScalarMapOnDeformedShape_i* anOrigin = const_cast<ScalarMapOnDeformedShape_i*>(aPrs3d);
- this->SetScalarField(anOrigin->GetScalarMeshName().c_str(),
- anOrigin->GetScalarFieldName().c_str(),
- theScalarIter,
- anOrigin->GetScalarEntity());
+ this->SetCScalarField(anOrigin->GetScalarMeshName(),
+ anOrigin->GetScalarFieldName(),
+ theScalarIter,
+ anOrigin->GetScalarEntity());
Update();
}
}
//---------------------------------------------------------------
void
VISU::ScalarMapOnDeformedShape_i
-::SetScalarField(const std::string& theMeshName,
- const std::string& theFieldName,
- int theIteration,
- VISU::TEntity theEntity)
+::SetCScalarField(const std::string& theMeshName,
+ const std::string& theFieldName,
+ int theIteration,
+ VISU::TEntity theEntity)
{
VISU::Result_i::TInput* anInput = GetCResult()->GetInput();
SetField(anInput->GetField(theMeshName,theEntity,theFieldName));
CORBA::Long theIteration,
VISU::Entity theEntity)
{
- this->SetScalarField(theMeshName,theFieldName,(int)theIteration,VISU::TEntity(theEntity));
+ this->SetCScalarField(theMeshName,theFieldName,(int)theIteration,VISU::TEntity(theEntity));
}