Easy3D 2.5.3
easy3d::buffer Namespace Reference

Functions for updating render buffers. More...

Functions

Render buffer update for PointCloud
void update (PointCloud *model, PointsDrawable *drawable)
 Update render buffers for the default "vertices" drawable of a point cloud. Coloring determined by the drawable's coloring scheme. More...
 
void update (PointCloud *model, LinesDrawable *drawable, const std::string &field, float scale)
 Update render buffers for a vector field defined on a point cloud. More...
 
Render buffer update for SurfaceMesh
void update (SurfaceMesh *model, PointsDrawable *drawable)
 Update render buffers for the default "vertices" drawable of a surface mesh. Coloring determined by the drawable's coloring scheme. More...
 
void update (SurfaceMesh *model, LinesDrawable *drawable)
 Update render buffers for the default "edges" drawable of a surface mesh. Coloring determined by the drawable's coloring scheme. More...
 
void update (SurfaceMesh *model, LinesDrawable *drawable, const std::string &field, State::Location location, float scale)
 Update render buffers for a vector field defined on a surface mesh. More...
 
void update (SurfaceMesh *model, TrianglesDrawable *drawable)
 Update render buffers for the default "faces" drawable of a surface mesh. Coloring determined by the drawable's coloring scheme. More...
 
Render buffer update for Graph
void update (Graph *model, PointsDrawable *drawable)
 Update render buffers for the default "vertices" drawable of a graph. Coloring determined by the drawable's coloring scheme. More...
 
void update (Graph *model, LinesDrawable *drawable)
 Update render buffers for the default "edges" drawable of a graph. Coloring determined by the drawable's coloring scheme. More...
 
Render buffer update for PolyMesh
void update (PolyMesh *model, PointsDrawable *drawable)
 Update render buffers for the default "vertices" drawable of a polyhedral mesh. Coloring determined by the drawable's coloring scheme. More...
 
void update (PolyMesh *model, LinesDrawable *drawable)
 Update render buffers for the default "edges" drawable of a polyhedral mesh. Coloring determined by the drawable's coloring scheme. More...
 
void update (PolyMesh *model, TrianglesDrawable *drawable, bool border)
 Update render buffers for the default "faces" drawables of a polyhedral mesh. More...
 
void update (PolyMesh *model, LinesDrawable *drawable, const std::string &field, State::Location location, float scale)
 Update render buffers for a vector field defined on a polyhedral mesh. More...
 
The generic API for render buffer update
void update (Model *model, Drawable *drawable)
 Update render buffers of a drawable. Coloring determined by the drawable's coloring scheme. More...
 

Detailed Description

Functions for updating render buffers.

Function Documentation

◆ update() [1/13]

void update ( Graph model,
LinesDrawable drawable 
)

Update render buffers for the default "edges" drawable of a graph. Coloring determined by the drawable's coloring scheme.

Parameters
modelThe model.
drawableThe drawable.

◆ update() [2/13]

void update ( Graph model,
PointsDrawable drawable 
)

Update render buffers for the default "vertices" drawable of a graph. Coloring determined by the drawable's coloring scheme.

Parameters
modelThe model.
drawableThe drawable.

◆ update() [3/13]

void update ( Model model,
Drawable drawable 
)

Update render buffers of a drawable. Coloring determined by the drawable's coloring scheme.

Parameters
modelThe model.
drawableThe drawable.

◆ update() [4/13]

void update ( PointCloud model,
LinesDrawable drawable,
const std::string &  field,
float  scale 
)

Update render buffers for a vector field defined on a point cloud.

Parameters
modelThe model.
drawableThe drawable.
fieldThe name of the vector field.
scaleThe length scale of the vectors is w.r.t. (0.01 * radius) of the model's bounding sphere.

◆ update() [5/13]

void update ( PointCloud model,
PointsDrawable drawable 
)

Update render buffers for the default "vertices" drawable of a point cloud. Coloring determined by the drawable's coloring scheme.

Parameters
modelThe model.
drawableThe drawable.

◆ update() [6/13]

void update ( PolyMesh model,
LinesDrawable drawable 
)

Update render buffers for the default "edges" drawable of a polyhedral mesh. Coloring determined by the drawable's coloring scheme.

Parameters
modelThe model.
drawableThe drawable.

◆ update() [7/13]

void update ( PolyMesh model,
LinesDrawable drawable,
const std::string &  field,
State::Location  location,
float  scale 
)

Update render buffers for a vector field defined on a polyhedral mesh.

Parameters
modelThe model.
drawableThe drawable for visualizing the vector field.
fieldThe name of the vector field.
locationThe location where the vector field is defined.
scaleThe scale of the vector length w.r.t. half of the average edge length of the polyhedral mesh.
Note
Only the vector fields on border faces, border vertices, and border edges are supported.

◆ update() [8/13]

void update ( PolyMesh model,
PointsDrawable drawable 
)

Update render buffers for the default "vertices" drawable of a polyhedral mesh. Coloring determined by the drawable's coloring scheme.

Parameters
modelThe model.
drawableThe drawable.

◆ update() [9/13]

void update ( PolyMesh model,
TrianglesDrawable drawable,
bool  border 
)

Update render buffers for the default "faces" drawables of a polyhedral mesh.

Note
Interior and boundary faces are rendered using two drawables. Thus, this function has an extra parameter to specify for which drawable the renderer buffers are be updated.
Parameters
modelThe model.
drawableThe drawable.
bordertrue for the boundary drawable and false for the interior drawable.

◆ update() [10/13]

void update ( SurfaceMesh model,
LinesDrawable drawable 
)

Update render buffers for the default "edges" drawable of a surface mesh. Coloring determined by the drawable's coloring scheme.

Parameters
modelThe model.
drawableThe drawable.

◆ update() [11/13]

void update ( SurfaceMesh model,
LinesDrawable drawable,
const std::string &  field,
State::Location  location,
float  scale 
)

Update render buffers for a vector field defined on a surface mesh.

Parameters
modelThe model.
drawableThe The drawable for visualizing the vector field.
fieldThe name of the vector field.
locationThe location where the vector field is defined.
scaleThe scale of the vector length w.r.t. half of the average edge length of the surface mesh.

◆ update() [12/13]

void update ( SurfaceMesh model,
PointsDrawable drawable 
)

Update render buffers for the default "vertices" drawable of a surface mesh. Coloring determined by the drawable's coloring scheme.

Parameters
modelThe model.
drawableThe drawable.

◆ update() [13/13]

void update ( SurfaceMesh model,
TrianglesDrawable drawable 
)

Update render buffers for the default "faces" drawable of a surface mesh. Coloring determined by the drawable's coloring scheme.

Parameters
modelThe model.
drawableThe drawable.