setScalarBarData( myScalarMap->GetNbColors(), myScalarMap->GetLabels() );
// Update myModeCombo
- int aNbComp = myScalarMap->GetField()->myNbComp;
+ const VISU::PField& aField = myScalarMap->GetScalarField();
+ const VISU::TNames& aCompNames = aField->myCompNames;
+ const VISU::TNames& aUnitNames = aField->myUnitNames;
+ int aNbComp = aField->myNbComp;
bool isScalarMode = (aNbComp > 1);
myModeCombo->clear();
myModeCombo->insertItem("<Modulus>");
- const VISU::PField& aField = myScalarMap->GetField();
- const VISU::TNames& aCompNames = aField->myCompNames;
- const VISU::TNames& aUnitNames = aField->myUnitNames;
for(int i = 0; i < aNbComp; i++){
QString aComponent = QString(aCompNames[i].c_str()).simplifyWhiteSpace();
if(aComponent.isNull() || aComponent == "")
//----------------------------------------------------------------------------
-VISU::PValForTime
+const VISU::PField&
VISU::ColoredPrs3d_i
-::GetScalarValForTime() const
-{
- VISU::TValField& aValField = GetField()->myValField;
- PValForTime aValForTime;
- VISU::TValField::iterator anIter = aValField.find(myTimeStampNumber);
- if(anIter != aValField.end())
- aValForTime = anIter->second;
- return aValForTime;
+::GetScalarField() const
+{
+ return myField;
+}
+
+
+//----------------------------------------------------------------------------
+CORBA::Long
+VISU::ColoredPrs3d_i
+::GetScalarTimeStampNumber() const
+{
+ return myTimeStampNumber;
}
VISU::ColoredPrs3d_i
::SetTitle(const char* theTitle)
{
- if(VISU::PValForTime aValForTime = GetScalarValForTime()){
+ VISU::PValForTime aValForTime;
+ VISU::TValField& aValField = GetScalarField()->myValField;
+ VISU::TValField::iterator anIter = aValField.find(GetScalarTimeStampNumber());
+ if (anIter != aValField.end())
+ aValForTime = anIter->second;
+
+ if (aValForTime) {
std::strstream aStream;
const VISU::TTime& aTime = aValForTime->myTime;
aStream<<theTitle<<" "<<VISU_Convertor::GenerateName(aTime)<<std::ends;
GetTimeStampIndexByNumber( CORBA::Long theNumber );
virtual
- VISU::PValForTime
- GetScalarValForTime() const;
+ const VISU::PField&
+ GetScalarField() const;
+
+ virtual
+ CORBA::Long
+ GetScalarTimeStampNumber() const;
virtual
VISU::ColoredPrs3d::TimeStampsRange*
}
-//----------------------------------------------------------------------------
-VISU::PValForTime
+//---------------------------------------------------------------
+const VISU::PField&
VISU::ScalarMapOnDeformedShape_i
-::GetScalarValForTime() const
-{
- VISU::TValField& aValField = myScalarField->myValField;
- PValForTime aValForTime;
- VISU::TValField::iterator anIter = aValField.find(myScalarTimeStampNumber);
- if(anIter != aValField.end())
- aValForTime = anIter->second;
- return aValForTime;
+::GetScalarField() const
+{
+ return myScalarField;
+}
+
+
+//---------------------------------------------------------------
+CORBA::Long
+VISU::ScalarMapOnDeformedShape_i
+::GetScalarTimeStampNumber() const
+{
+ return myScalarTimeStampNumber;
}
GetScalarLIteration();
virtual
- VISU::PValForTime
- GetScalarValForTime() const;
+ const VISU::PField&
+ GetScalarField() const;
+
+ virtual
+ CORBA::Long
+ GetScalarTimeStampNumber() const;
private:
VISU_ScalarMapOnDeformedShapePL *myScalarMapOnDeformedShapePL;