VertexRenderer class
Renders vertices as a circular points.
Contents
- Reference
Base classes
Public functions
- auto create(float size, bool sizeIsInPixels, int minSize, Color color, float opacity, bool drawOnTop) -> std::shared_ptr<VertexRenderer>
- Create instance.
-
auto addInputConnection(DataChannel::
pointer port) -> uint override -
auto addInputConnection(DataChannel::
pointer port, Color color, float size) -> uint -
auto addInputData(DataObject::
pointer data) -> uint override -
auto addInputData(Mesh::
pointer data, Color color, float size) -> uint - void setDefaultColor(Color color)
- void setDefaultSize(float size)
- void setDefaultDrawOnTop(bool drawOnTop)
- void setDrawOnTop(uint inputNr, bool drawOnTop)
- void setColor(uint inputNr, Color color)
- void setSize(uint inputNr, float size)
- void setOpacity(float opacity)
- void draw(Matrix4f perspectiveMatrix, Matrix4f viewingMatrix, float zNear, float zFar, bool mode2D, int viewWidth, int viewHeight) virtual
Function documentation
std::shared_ptr<VertexRenderer> fast:: VertexRenderer:: create(float size,
bool sizeIsInPixels,
int minSize,
Color color,
float opacity,
bool drawOnTop)
Create instance.
| Parameters | |
|---|---|
| size | Vertex point size (can be in pixels or millimeters, see sizeIsInPixels parameter) |
| sizeIsInPixels | Whether size is given in pixels or millimeters |
| minSize | Minimum size in pixels, used when sizeInPixels = false |
| color | Override color stored for each vertex |
| opacity | Opacity of vertices: 1 = no transparency, 0 = fully transparent |
| drawOnTop | Disable depth testing and always draw vertices on top |
| Returns | instance |
uint fast:: VertexRenderer:: addInputConnection(DataChannel:: pointer port) override
| Parameters | |
|---|---|
| port | |
| Returns | the input nr of the new connection |
Adds a new input connection
uint fast:: VertexRenderer:: addInputData(DataObject:: pointer data) override
| Parameters | |
|---|---|
| data | |
| Returns | the input nr of the new connection |
Adds a new input connection to a specific data object