6#ifndef graphDataMatlab_hh
7#define graphDataMatlab_hh
19#include "function/vector.hh"
28#define Matlab2Constr_D 0
57 std::ofstream* ofs2, std::ofstream* ofs3,
74 void write(std::ofstream** ofsmsh, std::ofstream** ofs1,
75 std::ofstream** ofs2, std::ofstream** ofs3);
82 Real offset()
const {
return offset_;}
83 Real range()
const {
return range_;}
86 uint dim()
const {
return dim_;}
87 Real scale()
const {
return scl_;}
95 std::ofstream *ofsmsh_, *ofs1_, *ofs2_, *ofs3_;
106 std::unique_ptr<concepts::DynArray<uint> > map_;
138 uint dim = 2, Real scl = 1.0);
148 void createStreams_(std::string filename);
150 void closeStreams_();
157 std::unique_ptr<std::ofstream> ofsmsh_;
159 std::unique_ptr<std::ofstream> ofs1_, ofs2_, ofs3_;
163 std::unique_ptr<DataMatlabCell> mtlb_;
const concepts::Array< Real > & coeff() const
Returns the coefficients of the elements shape functions.
const concepts::Vector< Real > * solution() const
Returns pointer to vector to plot.
uint & count()
Number of points written to the files, used for mesh representation.
DataMatlabCell(std::ofstream *ofs, uint dim, Real scl)
virtual void operator()(const concepts::Element< Real > &elm)
void write(std::ofstream **ofsmsh, std::ofstream **ofs1, std::ofstream **ofs2, std::ofstream **ofs3)
Returns the streams to write the data to.
void setVec(const concepts::Vector< Real > *sol)
Sets the vector of the variable to plot.
virtual void operator()(const concepts::Cell &cell)
not operational
DataMatlabCell(std::ofstream *ofsmsh, std::ofstream *ofs1, std::ofstream *ofs2, std::ofstream *ofs3, uint dim, Real scl)
void operator()(const concepts::Vector< Real > &sol)
DataMatlab(concepts::Space< Real > &spc, const std::string filename, uint dim=2, Real scl=1.0)