32 #ifndef Extrusions_INCLUDE_ONCE 33 #define Extrusions_INCLUDE_ONCE 63 VL_DEBUG_SET_OBJECT_NAME()
74 void setSilhouettes(
const std::vector<unsigned int>& silhouettes) { mSilhouettes = silhouettes; }
76 const std::vector<unsigned int>&
silhouettes()
const {
return mSilhouettes; }
78 std::vector<unsigned int>&
silhouettes() {
return mSilhouettes;}
81 void setSilhouette(
const std::vector<vl::fvec2>& silhouette) { mSilhouette = silhouette; }
83 const std::vector<vl::fvec2>&
silhouette()
const {
return mSilhouette; }
85 std::vector<vl::fvec2>&
silhouette() {
return mSilhouette; }
95 bool smooth()
const {
return mSmooth; }
109 const std::vector<vl::fvec3>&
positionPath()
const {
return mPositionPath; }
116 const std::vector<float>&
scalingPath()
const {
return mScalingPath; }
124 const std::vector<float>&
rotationPath()
const {
return mRotationPath; }
132 const std::vector<vl::fvec4>&
colorPath()
const {
return mColorPath; }
136 std::vector<vl::fvec4>&
colorPath() {
return mColorPath; }
const std::vector< vl::fvec3 > & positionPath() const
The path along which the silhouette is extruded.
const std::vector< float > & scalingPath() const
The scaling to be applied along the extrusion.
bool fillBottom() const
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.
void setFillTop(bool fill)
Whether a set of triangles should be generated to fill the ending of the extrusion (default is true)...
std::vector< float > & rotationPath()
The rotation to be applied along the extrusion.
const std::vector< vl::fvec4 > & colorPath() const
The color to be applied to the extrusion.
std::vector< unsigned int > mSilhouettes
#define VL_INSTRUMENT_CLASS(ClassName, BaseClass)
void setSilhouette(const std::vector< vl::fvec2 > &silhouette)
Sets the silhouette to be extruded.
Visualization Library main namespace.
void setSmooth(bool smooth)
If true the normals of the geometry are smoothed.
const std::vector< vl::fvec2 > & silhouette() const
Returns the silhouette to be extruded.
std::vector< float > mRotationPath
std::vector< unsigned int > & silhouettes()
Return the number of points in each silhouette.
The base class for all the reference counted objects.
void setSilhouetteMode(ESilhouetteMode mode)
Wether the silhouette is considered closed, i.e. a line-loop, or open.
ESilhouetteMode silhouetteMode() const
Wether the silhouette is considered closed, i.e. a line-loop, or open.
ESilhouetteMode mSilhouetteMode
void setFillBottom(bool fill)
Whether a set of triangles should be generated to fill the beginning of the extrusion (default is tru...
void setSilhouettes(const std::vector< unsigned int > &silhouettes)
Sets the number of points in each silhouette.
std::vector< float > & scalingPath()
The scaling to be applied along the extrusion.
#define VLGRAPHICS_EXPORT
const std::vector< unsigned int > & silhouettes() const
Return the number of points in each silhouette.
std::vector< vl::fvec3 > mPositionPath
The Extrusions class generates a Geometry extruding a silhouette along a path.
std::vector< vl::fvec3 > & positionPath()
The path along which the silhouette is extruded.
std::vector< vl::fvec2 > mSilhouette
std::vector< float > mScalingPath
bool fillTop() const
Whether a set of triangles should be generated to fill the ending of the extrusion (default is true)...
std::vector< vl::fvec4 > mColorPath
std::vector< vl::fvec2 > & silhouette()
Returns the silhouette to be extruded.
const std::vector< float > & rotationPath() const
The rotation to be applied along the extrusion.
std::vector< vl::fvec4 > & colorPath()
The color to be applied to the extrusion.