if(!isStdOrMode)
tr=new MEDStdTimeReq((int)zeTimeId);
else
- tr=new MEDModeTimeReq(tk.getTheVectOfBool());
+ tr=new MEDModeTimeReq(tk.getTheVectOfBool(),tk.getPostProcessedTime());
vtkDataSet *ret(leaf.buildVTKInstanceNoTimeInterpolation(tr,_fields,_ms));
delete tr;
return ret;
///////////
-MEDModeTimeReq::MEDModeTimeReq(const std::vector<bool>& v):_v(v),_it(0),_sz(0)
+MEDModeTimeReq::MEDModeTimeReq(const std::vector<bool>& v, const std::vector<double>& ts):_v(v),_ts(ts),_it(0),_sz(0)
{
}
oss2.width(len);
oss2.fill('0'); oss2 << _it;
//
- oss << oss2.str() << "]";
+ oss << oss2.str() << "]";
+ if(_it<(int)_ts.size())
+ oss << " - " << _ts[_it];
return oss.str();
}
class MEDModeTimeReq : public MEDTimeReq
{
public:
- MEDModeTimeReq(const std::vector<bool>& v);
+ MEDModeTimeReq(const std::vector<bool>& v, const std::vector<double>& ts);
~MEDModeTimeReq();
int size() const;
int getCurrent() const;
void operator++() const;
private:
std::vector<bool> _v;
+ std::vector<double> _ts;
mutable int _it;
mutable int _sz;
};