gmsh-TingyuanDoc
0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
|
Go to the documentation of this file.
23 class localNetworkClient;
45 void _init(
int tag = -1);
53 PView(
PView *ref,
bool copyOptions =
true,
int tag = -1);
55 PView(
const std::string &xname,
const std::string &yname,
56 std::vector<double> &x, std::vector<double> &y);
58 PView(
const std::string &name, std::vector<double> &x, std::vector<double> &y,
59 std::vector<double> &
z, std::vector<double> &v);
61 PView(
const std::string &name,
const std::string &type,
GModel *model,
62 std::map<
int, std::vector<double> > &data,
double time = 0.,
63 int numComp = -1,
int tag = -1);
65 void addStep(
GModel *model,
const std::map<
int, std::vector<double> > &data,
66 double time = 0.,
int numComp = -1);
68 void addStep(std::vector<double> &y);
112 static std::vector<PView *>
list;
116 static void combine(
bool time,
int how,
bool remove,
bool copyOptions);
124 const std::string &fileName =
"");
126 int timeStep = -1,
int partition = -1);
134 static bool readPOS(
const std::string &fileName,
int fileIndex = -1);
135 static bool readMSH(
const std::string &fileName,
int fileIndex = -1,
136 int partitionToRead = -1);
137 static bool readCGNS(
const std::vector<std::vector<MVertex *> > &vertPerZone,
138 const std::vector<std::vector<MElement *> > &eltPerZone,
139 const std::string &fileName);
140 static bool readMED(
const std::string &fileName,
int fileIndex = -1);
141 static bool readPCH(
const std::string &fileName,
int fileIndex = -1);
142 static bool writeX3D(
const std::string &fileName);
144 bool write(
const std::string &fileName,
int format,
bool append =
false);
151 bool writeAdapt(
const std::string &fileName,
int useDefaultName,
152 bool isBinary,
int adaptLev,
double adaptErr,
int npart,
153 bool append =
false);
163 const char *data,
int swap);
181 int numComp,
double **xyz,
double **val);
std::vector< int > indices
static PView * getViewByName(const std::string &name, int timeStep=-1, int partition=-1, const std::string &fileName="")
static bool readPOS(const std::string &fileName, int fileIndex=-1)
void changeCoordinates(PView *p, int ient, int iele, int numNodes, int type, int numComp, double **xyz, double **val)
void setData(PViewData *val)
void setChanged(bool val)
static PView * getViewByTag(int tag, int timeStep=-1, int partition=-1)
std::vector< PViewData * > data
VertexArray * va_ellipses
static void combine(bool time, int how, bool remove, bool copyOptions)
void swap(double &a, double &b)
static bool readCGNS(const std::vector< std::vector< MVertex * > > &vertPerZone, const std::vector< std::vector< MElement * > > &eltPerZone, const std::string &fileName)
PViewData * getData(bool useAdaptiveIfAvailable=false)
static bool writeX3D(const std::string &fileName)
void sendToServer(const std::string &name)
double length(Quaternion &q)
static int getGlobalTag()
bool write(const std::string &fileName, int format, bool append=false)
VertexArray * va_triangles
static bool readMED(const std::string &fileName, int fileIndex=-1)
static bool readMSH(const std::string &fileName, int fileIndex=-1, int partitionToRead=-1)
static bool readPCH(const std::string &fileName, int fileIndex=-1)
void deleteVertexArrays()
PViewOptions * getOptions()
static PView * getViewByFileName(const std::string &fileName, int timeStep=-1, int partition=-1)
static void fillVertexArray(onelab::localNetworkClient *remote, int length, const char *data, int swap)
static void setGlobalTag(int tag)
void addStep(GModel *model, const std::map< int, std::vector< double > > &data, double time=0., int numComp=-1)
static std::vector< PView * > list
bool isElementVisible(PViewOptions *opt, int dim, int numNodes, double **xyz)
void setOptions(PViewOptions *val=nullptr)
bool writeAdapt(const std::string &fileName, int useDefaultName, bool isBinary, int adaptLev, double adaptErr, int npart, bool append=false)