BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
cl_VTK_Curve.hpp
Go to the documentation of this file.
1/*
2 * BELFEM -- The Berkeley Lab Finite Element Framework
3 * Copyright (c) 2026, The Regents of the University of California, through
4 * Lawrence Berkeley National Laboratory (subject to receipt of any required
5 * approvals from the U.S. Dept. of Energy). All rights reserved.
6 *
7 * Developers: Christian Messe, Gregory Giard
8 *
9 * See the top-level LICENSE file for the complete license and disclaimer.
10 */
11
12#ifndef BELFEM_CL_VTK_CURVE_HPP
13#define BELFEM_CL_VTK_CURVE_HPP
14
15#include "vtktypes.hpp"
16#include "typedefs.hpp"
17#include "cl_Matrix.hpp"
18
19namespace belfem
20{
21 namespace vtk
22 {
37 class Curve
38 {
39 Points mPoints ;
40 PolyData mPolyData ;
41 Mapper mMapper ;
42 Actor mActor ;
43
44 public:
45
47 Curve( const Matrix< real > & aPoints,
48 real aLineWidth = 2.0,
49 bool aClosed = false );
50
51 ~Curve() = default;
52
54 inline Actor actor() { return mActor; }
55
57 void set_color( real aRed, real aGreen, real aBlue );
58 };
59 }
60}
61#endif //BELFEM_CL_VTK_CURVE_HPP
Curve(const Matrix< real > &aPoints, real aLineWidth=2.0, bool aClosed=false)
Build a polyline actor from a 3 x N point matrix.
Definition cl_VTK_Curve.cpp:24
void set_color(real aRed, real aGreen, real aBlue)
Set the line color (RGB components in [0,1]).
Definition cl_VTK_Curve.cpp:74
Actor actor()
The VTK actor; ownership stays with this wrapper.
Definition cl_VTK_Curve.hpp:54
Definition vtktools.cpp:21
void Actor
Definition vtktypes.hpp:52
void Points
Definition vtktypes.hpp:59
void Mapper
Definition vtktypes.hpp:57
void PolyData
Definition vtktypes.hpp:55
USER GUIDES:
Definition cl_Capacitor.cpp:16
double real
Definition typedefs.hpp:36