|
gmsh-TingyuanDoc
0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
|
#include <VertexArray.h>
Public Member Functions | |
| VertexArray (int numVerticesPerElement, int numElements) | |
| ~VertexArray () | |
| int | getNumVertices () |
| int | getNumVerticesPerElement () |
| int | getNumElementPointers () |
| float * | getVertexArray (int i=0) |
| std::vector< float >::iterator | firstVertex () |
| std::vector< float >::iterator | lastVertex () |
| normal_type * | getNormalArray (int i=0) |
| std::vector< normal_type >::iterator | firstNormal () |
| std::vector< normal_type >::iterator | lastNormal () |
| unsigned char * | getColorArray (int i=0) |
| std::vector< unsigned char >::iterator | firstColor () |
| std::vector< unsigned char >::iterator | lastColor () |
| MElement ** | getElementPointerArray (int i=0) |
| std::vector< MElement * >::iterator | firstElementPointer () |
| std::vector< MElement * >::iterator | lastElementPointer () |
| void | add (double *x, double *y, double *z, SVector3 *n, unsigned int *col, MElement *ele=nullptr, bool unique=true, bool boundary=false) |
| void | add (double *x, double *y, double *z, SVector3 *n, unsigned char *r=nullptr, unsigned char *g=nullptr, unsigned char *b=nullptr, unsigned char *a=nullptr, MElement *ele=nullptr, bool unique=true, bool boundary=false) |
| void | finalize () |
| void | sort (double x, double y, double z) |
| double | getMemoryInMb () |
| char * | toChar (int num, const std::string &name, int type, double min, double max, int numsteps, double time, const SBoundingBox3d &bbox, int &len) |
| void | fromChar (int length, const char *bytes, int swap) |
| void | merge (VertexArray *va) |
Static Public Member Functions | |
| static int | decodeHeader (int length, const char *bytes, int swap, std::string &name, int &tag, int &type, double &min, double &max, int &numSteps, double &time, double &xmin, double &ymin, double &zmin, double &xmax, double &ymax, double &zmax) |
Private Member Functions | |
| void | _addVertex (float x, float y, float z) |
| void | _addNormal (float nx, float ny, float nz) |
| void | _addColor (unsigned char r, unsigned char g, unsigned char b, unsigned char a) |
| void | _addElement (MElement *ele) |
Private Attributes | |
| int | _numVerticesPerElement |
| std::vector< float > | _vertices |
| std::vector< normal_type > | _normals |
| std::vector< unsigned char > | _colors |
| std::vector< MElement * > | _elements |
| std::set< ElementData< 3 >, ElementDataLessThan< 3 > > | _data3 |
| std::set< Barycenter, BarycenterLessThan > | _barycenters |
Definition at line 151 of file VertexArray.h.
| VertexArray::VertexArray | ( | int | numVerticesPerElement, |
| int | numElements | ||
| ) |
|
inline |
Definition at line 172 of file VertexArray.h.
|
private |
Definition at line 67 of file VertexArray.cpp.
Referenced by add(), and finalize().

|
private |
Definition at line 76 of file VertexArray.cpp.
Referenced by add(), and finalize().


|
private |
Definition at line 49 of file VertexArray.cpp.
Referenced by add(), and finalize().


|
private |
Definition at line 42 of file VertexArray.cpp.
Referenced by add(), and finalize().

| void VertexArray::add | ( | double * | x, |
| double * | y, | ||
| double * | z, | ||
| SVector3 * | n, | ||
| unsigned int * | col, | ||
| MElement * | ele = nullptr, |
||
| bool | unique = true, |
||
| bool | boundary = false |
||
| ) |
Definition at line 81 of file VertexArray.cpp.
Referenced by addElementsInArrays(), addOutlineLine(), addOutlinePoint(), addOutlineQuadrangle(), addOutlineTriangle(), addScalarLine(), addScalarPoint(), addScalarTetrahedron(), addScalarTriangle(), addTensorElement(), addTriangle(), addVectorElement(), and GFace::fillVertexArray().


|
static |
Definition at line 273 of file VertexArray.cpp.
Referenced by PView::fillVertexArray(), and fromChar().


| void VertexArray::finalize | ( | ) |
Definition at line 138 of file VertexArray.cpp.
Referenced by GFace::fillVertexArray(), initMeshGEdge::operator()(), initMeshGRegion::operator()(), and initPView::operator()().


|
inline |
Definition at line 193 of file VertexArray.h.
Referenced by merge().

|
inline |
Definition at line 198 of file VertexArray.h.
Referenced by merge().

|
inline |
Definition at line 188 of file VertexArray.h.
Referenced by merge().

|
inline |
Definition at line 183 of file VertexArray.h.
Referenced by merge().

| void VertexArray::fromChar | ( | int | length, |
| const char * | bytes, | ||
| int | swap | ||
| ) |
Definition at line 313 of file VertexArray.cpp.
Referenced by PView::fillVertexArray().


|
inline |
Definition at line 192 of file VertexArray.h.
Referenced by drawGFace::_drawVertexArray(), drawArrays(), drawEllipseArray(), drawVectorArray(), and PView::writeX3D().

|
inline |
Definition at line 197 of file VertexArray.h.
Referenced by getElement().

| double VertexArray::getMemoryInMb | ( | ) |
Definition at line 34 of file VertexArray.cpp.
Referenced by PView::getMemoryInMb(), and initPView::operator()().

|
inline |
Definition at line 187 of file VertexArray.h.
Referenced by drawGFace::_drawVertexArray(), and drawArrays().

|
inline |
Definition at line 178 of file VertexArray.h.
Referenced by drawArrays(), and getElement().

|
inline |
Definition at line 174 of file VertexArray.h.
Referenced by drawGFace::_drawVertexArray(), drawArrays(), drawEllipseArray(), drawVectorArray(), merge(), drawPView::operator()(), initPView::operator()(), sort(), and PView::writeX3D().

|
inline |
Definition at line 176 of file VertexArray.h.
Referenced by add(), drawArrays(), drawEllipseArray(), drawVectorArray(), and sort().

|
inline |
Definition at line 182 of file VertexArray.h.
Referenced by drawGFace::_drawVertexArray(), drawArrays(), drawEllipseArray(), drawVectorArray(), and PView::writeX3D().

|
inline |
Definition at line 194 of file VertexArray.h.
Referenced by merge().

|
inline |
Definition at line 202 of file VertexArray.h.
Referenced by merge().

|
inline |
Definition at line 189 of file VertexArray.h.
Referenced by merge().

|
inline |
Definition at line 184 of file VertexArray.h.
Referenced by merge().

| void VertexArray::merge | ( | VertexArray * | va | ) |
| void VertexArray::sort | ( | double | x, |
| double | y, | ||
| double | z | ||
| ) |
Definition at line 185 of file VertexArray.cpp.
Referenced by drawPView::operator()().


| char * VertexArray::toChar | ( | int | num, |
| const std::string & | name, | ||
| int | type, | ||
| double | min, | ||
| double | max, | ||
| int | numsteps, | ||
| double | time, | ||
| const SBoundingBox3d & | bbox, | ||
| int & | len | ||
| ) |
|
private |
Definition at line 159 of file VertexArray.h.
Referenced by add(), and finalize().
|
private |
Definition at line 156 of file VertexArray.h.
Referenced by _addColor(), firstColor(), fromChar(), getColorArray(), getMemoryInMb(), lastColor(), merge(), sort(), toChar(), and VertexArray().
|
private |
Definition at line 158 of file VertexArray.h.
Referenced by add(), and finalize().
|
private |
Definition at line 157 of file VertexArray.h.
Referenced by _addElement(), firstElementPointer(), getElementPointerArray(), getNumElementPointers(), lastElementPointer(), and merge().
|
private |
Definition at line 155 of file VertexArray.h.
Referenced by _addNormal(), firstNormal(), fromChar(), getMemoryInMb(), getNormalArray(), lastNormal(), merge(), sort(), toChar(), and VertexArray().
|
private |
Definition at line 153 of file VertexArray.h.
Referenced by getNumVerticesPerElement(), and VertexArray().
|
private |
Definition at line 154 of file VertexArray.h.
Referenced by _addVertex(), firstVertex(), fromChar(), getMemoryInMb(), getNumVertices(), getVertexArray(), lastVertex(), merge(), sort(), toChar(), and VertexArray().