BELFEM
0.9.0
Berkeley Lab Finite Element Framework
Toggle main menu visibility
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
19
namespace
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
cl_Matrix.hpp
belfem::Matrix< real >
belfem::vtk::Curve::~Curve
~Curve()=default
belfem::vtk::Curve::Curve
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
belfem::vtk::Curve::set_color
void set_color(real aRed, real aGreen, real aBlue)
Set the line color (RGB components in [0,1]).
Definition
cl_VTK_Curve.cpp:74
belfem::vtk::Curve::actor
Actor actor()
The VTK actor; ownership stays with this wrapper.
Definition
cl_VTK_Curve.hpp:54
belfem::vtk
Definition
vtktools.cpp:21
belfem::vtk::Actor
void Actor
Definition
vtktypes.hpp:52
belfem::vtk::Points
void Points
Definition
vtktypes.hpp:59
belfem::vtk::Mapper
void Mapper
Definition
vtktypes.hpp:57
belfem::vtk::PolyData
void PolyData
Definition
vtktypes.hpp:55
belfem
USER GUIDES:
Definition
cl_Capacitor.cpp:16
belfem::real
double real
Definition
typedefs.hpp:36
typedefs.hpp
vtktypes.hpp
src
visualizer
cl_VTK_Curve.hpp
Generated by
1.18.0