gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
PView Class Reference

#include <PView.h>

Collaboration diagram for PView:

Public Member Functions

 PView (int tag=-1)
 
 PView (PViewData *data, int tag=-1)
 
 PView (PView *ref, bool copyOptions=true, int tag=-1)
 
 PView (const std::string &xname, const std::string &yname, std::vector< double > &x, std::vector< double > &y)
 
 PView (const std::string &name, std::vector< double > &x, std::vector< double > &y, std::vector< double > &z, std::vector< double > &v)
 
 PView (const std::string &name, const std::string &type, GModel *model, std::map< int, std::vector< double > > &data, double time=0., int numComp=-1, int tag=-1)
 
void addStep (GModel *model, const std::map< int, std::vector< double > > &data, double time=0., int numComp=-1)
 
void addStep (std::vector< double > &y)
 
 ~PView ()
 
void deleteVertexArrays ()
 
PViewOptions * getOptions ()
 
void setOptions (PViewOptions *val=nullptr)
 
PViewData * getData (bool useAdaptiveIfAvailable=false)
 
void setData (PViewData *val)
 
int getTag ()
 
int getIndex ()
 
void setIndex (int val)
 
bool & getChanged ()
 
void setChanged (bool val)
 
int getAliasOf ()
 
SPoint3 & getEye ()
 
void setEye (SPoint3 &p)
 
double getMemoryInMb ()
 
bool write (const std::string &fileName, int format, bool append=false)
 
void sendToServer (const std::string &name)
 
bool writeAdapt (const std::string &fileName, int useDefaultName, bool isBinary, int adaptLev, double adaptErr, int npart, bool append=false)
 
bool fillVertexArrays ()
 

Static Public Member Functions

static int getGlobalTag ()
 
static void setGlobalTag (int tag)
 
static void combine (bool time, int how, bool remove, bool copyOptions)
 
static PView * getViewByName (const std::string &name, int timeStep=-1, int partition=-1, const std::string &fileName="")
 
static PView * getViewByFileName (const std::string &fileName, int timeStep=-1, int partition=-1)
 
static PView * getViewByTag (int tag, int timeStep=-1, int partition=-1)
 
static void sortByName ()
 
static bool readPOS (const std::string &fileName, int fileIndex=-1)
 
static bool readMSH (const std::string &fileName, int fileIndex=-1, int partitionToRead=-1)
 
static bool readCGNS (const std::vector< std::vector< MVertex * > > &vertPerZone, const std::vector< std::vector< MElement * > > &eltPerZone, const std::string &fileName)
 
static bool readMED (const std::string &fileName, int fileIndex=-1)
 
static bool readPCH (const std::string &fileName, int fileIndex=-1)
 
static bool writeX3D (const std::string &fileName)
 
static void fillVertexArray (onelab::localNetworkClient *remote, int length, const char *data, int swap)
 

Public Attributes

VertexArray * va_points
 
VertexArray * va_lines
 
VertexArray * va_triangles
 
VertexArray * va_vectors
 
VertexArray * va_ellipses
 
smooth_normals * normals
 

Static Public Attributes

static std::vector< PView * > list
 

Private Member Functions

void _init (int tag=-1)
 

Private Attributes

int _tag
 
int _index
 
bool _changed
 
int _aliasOf
 
SPoint3 _eye
 
PViewOptions * _options
 
PViewData * _data
 

Static Private Attributes

static int _globalTag = 1
 

Detailed Description

Definition at line 27 of file PView.h.

Constructor & Destructor Documentation

◆ PView() [1/6]

PView::PView ( int  tag = -1)

Definition at line 53 of file PView.cpp.

Referenced by combine(), fillVertexArray(), readMSH(), readPCH(), and readPOS().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PView() [2/6]

PView::PView ( PViewData *  data,
int  tag = -1 
)

Definition at line 63 of file PView.cpp.

Here is the call graph for this function:

◆ PView() [3/6]

PView::PView ( PView *  ref,
bool  copyOptions = true,
int  tag = -1 
)

Definition at line 73 of file PView.cpp.

Here is the call graph for this function:

◆ PView() [4/6]

PView::PView ( const std::string &  xname,
const std::string &  yname,
std::vector< double > &  x,
std::vector< double > &  y 
)

Definition at line 99 of file PView.cpp.

Here is the call graph for this function:

◆ PView() [5/6]

PView::PView ( const std::string &  name,
std::vector< double > &  x,
std::vector< double > &  y,
std::vector< double > &  z,
std::vector< double > &  v 
)

Definition at line 124 of file PView.cpp.

Here is the call graph for this function:

◆ PView() [6/6]

PView::PView ( const std::string &  name,
const std::string &  type,
GModel *  model,
std::map< int, std::vector< double > > &  data,
double  time = 0.,
int  numComp = -1,
int  tag = -1 
)

Definition at line 139 of file PView.cpp.

Here is the call graph for this function:

◆ ~PView()

PView::~PView ( )

Definition at line 179 of file PView.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ _init()

void PView::_init ( int  tag = -1)
private

Definition at line 20 of file PView.cpp.

Referenced by PView().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addStep() [1/2]

void PView::addStep ( GModel *  model,
const std::map< int, std::vector< double > > &  data,
double  time = 0.,
int  numComp = -1 
)

Definition at line 168 of file PView.cpp.

Referenced by GMSH_FieldFromAmplitudePhasePlugin::execute().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addStep() [2/2]

void PView::addStep ( std::vector< double > &  y)

Definition at line 115 of file PView.cpp.

Here is the call graph for this function:

◆ combine()

void PView::combine ( bool  time,
int  how,
bool  remove,
bool  copyOptions 
)
static

Definition at line 249 of file PView.cpp.

Referenced by GmshFLTK().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ deleteVertexArrays()

void PView::deleteVertexArrays ( )

Definition at line 210 of file PView.cpp.

Referenced by initPView::operator()(), and ~PView().

Here is the caller graph for this function:

◆ fillVertexArray()

void PView::fillVertexArray ( onelab::localNetworkClient *  remote,
int  length,
const char *  data,
int  swap 
)
static

Definition at line 1574 of file PViewVertexArrays.cpp.

Here is the call graph for this function:

◆ fillVertexArrays()

bool PView::fillVertexArrays ( )

Definition at line 1568 of file PViewVertexArrays.cpp.

◆ getAliasOf()

int PView::getAliasOf ( )
inline

Definition at line 100 of file PView.h.

Referenced by PView(), and ~PView().

Here is the caller graph for this function:

◆ getChanged()

bool& PView::getChanged ( )
inline

Definition at line 96 of file PView.h.

Referenced by initPView::operator()().

Here is the caller graph for this function:

◆ getData()

PViewData * PView::getData ( bool  useAdaptiveIfAvailable = false)

Definition at line 233 of file PView.cpp.

Referenced by _addModelData(), initPView::_estimateNumEllipses(), initPView::_estimateNumLines(), initPView::_estimateNumPoints(), initPView::_estimateNumTriangles(), initPView::_estimateNumVectors(), addElementsInArrays(), addVectorElement(), combine(), drawGlyphs(), drawGraph(), drawGraphAxes(), drawScale(), drawScaleLabel(), drawContext::drawScales(), GMSH_LongituteLatitudePlugin::execute(), GMSH_MinMaxPlugin::execute(), GMSH_SmoothPlugin::execute(), GMSH_SphericalRaisePlugin::execute(), GMSH_ModulusPhasePlugin::execute(), GMSH_NearestNeighborPlugin::execute(), GMSH_HarmonicToTimePlugin::execute(), GMSH_TransformPlugin::execute(), GMSH_ProbePlugin::execute(), GMSH_ModifyComponentsPlugin::execute(), GMSH_Scal2VecPlugin::execute(), GMSH_FieldFromAmplitudePhasePlugin::execute(), GMSH_Scal2TensPlugin::execute(), GMSH_LevelsetPlugin::execute(), GMSH_AnnotatePlugin::execute(), GMSH_NearToFarFieldPlugin::execute(), GMSH_PostPlugin::executeRemote(), frameSolver2d::exportFrameData(), fillVertexArray(), GMSH_PostPlugin::getDataList(), getExternalValues(), getGraphData(), getLineNormal(), getMemoryInMb(), GMSH_PostPlugin::getPossiblyAdaptiveData(), getViewByFileName(), getViewByName(), getViewByTag(), gmshViewGetModelData(), OctreePost::OctreePost(), PViewEvaluator::operator()(), PViewLessThanName::operator()(), drawPView::operator()(), drawPViewBoundingBox::operator()(), initPView::operator()(), PView(), readMSH(), GModel::readPLY(), writeX3D(), writeX3DScale(), and writeX3DScaleLabel().

Here is the call graph for this function:

◆ getEye()

SPoint3& PView::getEye ( )
inline

Definition at line 103 of file PView.h.

Referenced by eyeChanged(), and drawPView::operator()().

Here is the caller graph for this function:

◆ getGlobalTag()

int PView::getGlobalTag ( )
static

Definition at line 206 of file PView.cpp.

◆ getIndex()

◆ getMemoryInMb()

double PView::getMemoryInMb ( )

Definition at line 388 of file PView.cpp.

Here is the call graph for this function:

◆ getOptions()

PViewOptions* PView::getOptions ( )
inline

Definition at line 81 of file PView.h.

Referenced by _addModelData(), initPView::_estimateIfClipped(), initPView::_estimateNumEllipses(), initPView::_estimateNumLines(), initPView::_estimateNumPoints(), initPView::_estimateNumTriangles(), initPView::_estimateNumVectors(), addElementsInArrays(), addGraphPoint(), addOutlineElement(), addOutlineQuadrangle(), addOutlineTriangle(), addScalarHexahedron(), addScalarLine(), addScalarPoint(), addScalarPolygon(), addScalarPolyhedron(), addScalarPrism(), addScalarPyramid(), addScalarQuadrangle(), addScalarTetrahedron(), addScalarTriangle(), addTensorElement(), addVectorElement(), applyGeneralRaise(), changeCoordinates(), combine(), drawArrays(), drawEllipseArray(), drawGlyphs(), drawGraph(), drawGraphAxes(), drawGraphCurves(), drawNormalVectorGlyphs(), drawNumberGlyphs(), drawScale(), drawScaleBar(), drawScaleLabel(), drawContext::drawScales(), drawScaleValues(), drawTangentVectorGlyphs(), drawVectorArray(), GMSH_IntegratePlugin::execute(), GMSH_MinMaxPlugin::execute(), GMSH_MeshVolumePlugin::execute(), GMSH_ParticlesPlugin::execute(), GMSH_StreamLinesPlugin::execute(), GMSH_LevelsetPlugin::execute(), GMSH_BoundaryAnglesPlugin::execute(), fillVertexArray(), getExternalValues(), getGraphData(), getLineNormal(), getPointNormal(), GMSH_PostPlugin::getPossiblyAdaptiveData(), drawPView::operator()(), drawPViewBoundingBox::operator()(), initPView::operator()(), PView(), writeX3D(), writeX3DScale(), writeX3DScaleBar(), writeX3DScaleLabel(), and writeX3DScaleValues().

◆ getTag()

int PView::getTag ( )
inline

Definition at line 89 of file PView.h.

Referenced by _init(), GMSH_PostPlugin::executeRemote(), getViewByTag(), PView(), GMSH_PostPlugin::run(), and ~PView().

Here is the caller graph for this function:

◆ getViewByFileName()

PView * PView::getViewByFileName ( const std::string &  fileName,
int  timeStep = -1,
int  partition = -1 
)
static

Definition at line 362 of file PView.cpp.

Here is the call graph for this function:

◆ getViewByName()

PView * PView::getViewByName ( const std::string &  name,
int  timeStep = -1,
int  partition = -1,
const std::string &  fileName = "" 
)
static

Definition at line 347 of file PView.cpp.

Referenced by quadqsCleanup(), and readMSH().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getViewByTag()

PView * PView::getViewByTag ( int  tag,
int  timeStep = -1,
int  partition = -1 
)
static

Definition at line 376 of file PView.cpp.

Referenced by _addModelData(), fillVertexArray(), gmshViewGetModelData(), and PView().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readCGNS()

bool PView::readCGNS ( const std::vector< std::vector< MVertex * > > &  vertPerZone,
const std::vector< std::vector< MElement * > > &  eltPerZone,
const std::string &  fileName 
)
static

Definition at line 179 of file PViewIO_CGNS.cpp.

Referenced by MergeFile().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readMED()

bool PView::readMED ( const std::string &  fileName,
int  fileIndex = -1 
)
static

Definition at line 357 of file PViewIO.cpp.

Referenced by MergeFile().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readMSH()

bool PView::readMSH ( const std::string &  fileName,
int  fileIndex = -1,
int  partitionToRead = -1 
)
static

Definition at line 84 of file PViewIO.cpp.

Referenced by MergeFile().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readPCH()

bool PView::readPCH ( const std::string &  fileName,
int  fileIndex = -1 
)
static

Definition at line 366 of file PViewIO.cpp.

Referenced by MergeFile().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readPOS()

bool PView::readPOS ( const std::string &  fileName,
int  fileIndex = -1 
)
static

Definition at line 19 of file PViewIO.cpp.

Referenced by MergeFile().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendToServer()

void PView::sendToServer ( const std::string &  name)

Definition at line 443 of file PViewIO.cpp.

Here is the call graph for this function:

◆ setChanged()

◆ setData()

void PView::setData ( PViewData *  val)
inline

Definition at line 86 of file PView.h.

Referenced by _addModelData().

Here is the caller graph for this function:

◆ setEye()

void PView::setEye ( SPoint3 &  p)
inline

Definition at line 104 of file PView.h.

Referenced by eyeChanged().

Here is the caller graph for this function:

◆ setGlobalTag()

void PView::setGlobalTag ( int  tag)
static

Definition at line 208 of file PView.cpp.

Referenced by DeleteAllModelsAndViews().

Here is the caller graph for this function:

◆ setIndex()

void PView::setIndex ( int  val)
inline

Definition at line 93 of file PView.h.

Referenced by _init(), sortByName(), and ~PView().

Here is the caller graph for this function:

◆ setOptions()

void PView::setOptions ( PViewOptions *  val = nullptr)

Definition at line 224 of file PView.cpp.

Referenced by combine().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sortByName()

void PView::sortByName ( )
static

Definition at line 341 of file PView.cpp.

Here is the call graph for this function:

◆ write()

bool PView::write ( const std::string &  fileName,
int  format,
bool  append = false 
)

Definition at line 378 of file PViewIO.cpp.

Referenced by GMSH_BoundaryAnglesPlugin::execute().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeAdapt()

bool PView::writeAdapt ( const std::string &  fileName,
int  useDefaultName,
bool  isBinary,
int  adaptLev,
double  adaptErr,
int  npart,
bool  append = false 
)

Definition at line 433 of file PViewIO.cpp.

Here is the call graph for this function:

◆ writeX3D()

bool PView::writeX3D ( const std::string &  fileName)
static

Definition at line 72 of file PViewX3D.cpp.

Referenced by write().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _aliasOf

int PView::_aliasOf
private

Definition at line 37 of file PView.h.

Referenced by _init(), getAliasOf(), PView(), and ~PView().

◆ _changed

bool PView::_changed
private

Definition at line 35 of file PView.h.

Referenced by _init(), getChanged(), and setChanged().

◆ _data

PViewData* PView::_data
private

Definition at line 43 of file PView.h.

Referenced by addStep(), getData(), PView(), sendToServer(), setData(), write(), writeAdapt(), and ~PView().

◆ _eye

SPoint3 PView::_eye
private

Definition at line 39 of file PView.h.

Referenced by _init(), getEye(), setChanged(), and setEye().

◆ _globalTag

int PView::_globalTag = 1
staticprivate

Definition at line 29 of file PView.h.

Referenced by _init(), getGlobalTag(), and setGlobalTag().

◆ _index

int PView::_index
private

Definition at line 33 of file PView.h.

Referenced by getIndex(), sendToServer(), setIndex(), and ~PView().

◆ _options

PViewOptions* PView::_options
private

Definition at line 41 of file PView.h.

Referenced by getOptions(), PView(), setOptions(), writeAdapt(), and ~PView().

◆ _tag

int PView::_tag
private

Definition at line 31 of file PView.h.

Referenced by _init(), getTag(), and ~PView().

◆ list

◆ normals

◆ va_ellipses

◆ va_lines

◆ va_points

◆ va_triangles

◆ va_vectors


The documentation for this class was generated from the following files: