NDEVR
API Documentation
QuickVisualization.h
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/Buffer.h>
4#include <NDEVR/String.h>
5#include <NDEVR/Vertex.h>
6namespace NDEVR
7{
8 class Model;
60}
The equivelent of std::vector but with a bit more control.
Definition Buffer.hpp:58
A core class that represents a node on model hierarchy.
Definition Model.h:292
Allows for the creation of Models that represent points or linework quickly and efficiently.
static void SetupCoordinateModel(Model &model, const VertexVisualizationOptions &options)
Populates a Model with geometry representing the given vertices as coordinate markers or connected li...
A point in N-dimensional space, used primarily for spatial location information.
Definition Vertex.hpp:44
The primary namespace for the NDEVR SDK.
float fltp04
Defines an alias representing a 4 byte floating-point number Bit layout is as follows: -Sign: 1 bit a...
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Options controlling how a set of 3D vertices is visualized as coordinate markers or connected linewor...
Buffer< String > labels
Optional text labels applied to groups of vertices.
fltp04 extra_reserve_factor
Multiplier for pre-allocating extra buffer capacity (1.0 = exact fit).
Buffer< Vertex< 3, fltp08 > > vertices
The 3D positions of the vertices to visualize.
bool connect_linework
Whether to connect vertices with lines rather than showing isolated points.
VertexVisualizationOptions(const Buffer< Vertex< 3, fltp08 > > &vertices, const Buffer< String > &labels)
Constructs vertex visualization options with the given vertices and labels.
VertexVisualizationOptions()
Constructs default vertex visualization options with no vertices or labels.
uint04 index_per_label
The number of vertices each label covers.
uint04 start_index
The starting index into the vertex buffer for visualization.
VertexVisualizationOptions(const Buffer< Vertex< 3, fltp08 > > &vertices)
Constructs vertex visualization options with the given vertices and no labels.