32 #ifndef Extrusion_INCLUDE_ONCE 33 #define Extrusion_INCLUDE_ONCE 61 VL_DEBUG_SET_OBJECT_NAME()
72 void setSilhouette(
const std::vector<vl::fvec2>& silhouette) { mSilhouette = silhouette; }
74 const std::vector<vl::fvec2>&
silhouette()
const {
return mSilhouette; }
76 std::vector<vl::fvec2>&
silhouette() {
return mSilhouette; }
86 bool smooth()
const {
return mSmooth; }
100 const std::vector<vl::fvec3>&
positionPath()
const {
return mPositionPath; }
107 const std::vector<float>&
scalingPath()
const {
return mScalingPath; }
115 const std::vector<float>&
rotationPath()
const {
return mRotationPath; }
123 const std::vector<vl::fvec4>&
colorPath()
const {
return mColorPath; }
127 std::vector<vl::fvec4>&
colorPath() {
return mColorPath; }
const std::vector< vl::fvec4 > & colorPath() const
The color to be applied to the extrusion.
ESilhouetteMode silhouetteMode() const
Wether the silhouette is considered closed, i.e. a line-loop, or open.
std::vector< float > mRotationPath
void setSmooth(bool smooth)
If true the normals of the geometry are smoothed.
std::vector< vl::fvec4 > & colorPath()
The color to be applied to the extrusion.
void setSilhouetteMode(ESilhouetteMode mode)
Wether the silhouette is considered closed, i.e. a line-loop, or open.
ESilhouetteMode mSilhouetteMode
std::vector< vl::fvec2 > mSilhouette
The Extrusion class generates a Geometry extruding a silhouette along a path.
std::vector< vl::fvec4 > mColorPath
#define VL_INSTRUMENT_CLASS(ClassName, BaseClass)
std::vector< float > mScalingPath
Visualization Library main namespace.
const std::vector< float > & rotationPath() const
The rotation to be applied along the extrusion.
std::vector< vl::fvec3 > & positionPath()
The path along which the silhouette is extruded.
void setFillBottom(bool fill)
Whether a set of triangles should be generated to fill the beginning of the extrusion (default is tru...
bool smooth() const
If true the normals of the geometry are smoothed.
The base class for all the reference counted objects.
bool fillBottom() const
Whether a set of triangles should be generated to fill the beginning of the extrusion (default is tru...
std::vector< vl::fvec3 > mPositionPath
#define VLGRAPHICS_EXPORT
std::vector< float > & rotationPath()
The rotation to be applied along the extrusion.
std::vector< vl::fvec2 > & silhouette()
Returns the silhouette to be extruded.
void setFillTop(bool fill)
Whether a set of triangles should be generated to fill the ending of the extrusion (default is true)...
bool fillTop() const
Whether a set of triangles should be generated to fill the ending of the extrusion (default is true)...
const std::vector< vl::fvec2 > & silhouette() const
Returns the silhouette to be extruded.
const std::vector< vl::fvec3 > & positionPath() const
The path along which the silhouette is extruded.
std::vector< float > & scalingPath()
The scaling to be applied along the extrusion.
const std::vector< float > & scalingPath() const
The scaling to be applied along the extrusion.
void setSilhouette(const std::vector< vl::fvec2 > &silhouette)
Sets the silhouette to be extruded.