BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
belfem::vtk::Curve Class Reference

A polyline VTK actor built from an ordered list of 3D points. More...

#include <cl_VTK_Curve.hpp>

Public Member Functions

 Curve (const Matrix< real > &aPoints, real aLineWidth=2.0, bool aClosed=false)
 Build a polyline actor from a 3 x N point matrix.
 ~Curve ()=default
Actor actor ()
 The VTK actor; ownership stays with this wrapper.
void set_color (real aRed, real aGreen, real aBlue)
 Set the line color (RGB components in [0,1]).

Detailed Description

A polyline VTK actor built from an ordered list of 3D points.

Generic and source-agnostic: it knows nothing about meshes, orbits, or kepler — it just turns points into a polyline. Points are a 3 x N matrix (each column one point, contiguous in BELFEM's column-major storage). Pass aClosed = true to join the last point back to the first (e.g. a closed orbit ellipse). Rendered unlit so the curve reads as a flat overlay rather than a shaded tube.

See also
Visualizer Module Documentation

Constructor & Destructor Documentation

◆ Curve()

belfem::vtk::Curve::Curve ( const Matrix< real > & aPoints,
real aLineWidth = 2.0,
bool aClosed = false )

Build a polyline actor from a 3 x N point matrix.

◆ ~Curve()

belfem::vtk::Curve::~Curve ( )
default

Member Function Documentation

◆ actor()

Actor belfem::vtk::Curve::actor ( )
inline

The VTK actor; ownership stays with this wrapper.

◆ set_color()

void belfem::vtk::Curve::set_color ( real aRed,
real aGreen,
real aBlue )

Set the line color (RGB components in [0,1]).


The documentation for this class was generated from the following files: