fast::VertexRenderer class

Renders vertices as a circular points.

Contents

Base classes

class Renderer
Abstract base class for Renderers.

Public functions

auto create(float size, Color color, 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 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, Color color, bool drawOnTop)

Create instance.

Parameters
size Vertex point size
color
drawOnTop
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