Go to the documentation of this file.
6 #ifndef CNOID_UTIL_SCENE_EFFECTS_H
7 #define CNOID_UTIL_SCENE_EFFECTS_H
10 #include "exportdecl.h"
27 const Vector4f&
edgeColor()
const {
return edgeColor_; }
43 Vector4f vertexColor_;
72 SgFog(
int polymorhicId);
78 const Vector3f&
color()
const {
return color_; }
79 template<
typename Derived>
void setColor(
const Eigen::MatrixBase<Derived>& c) {
80 color_ = c.template cast<Vector3f::Scalar>(); }
89 float visibilityRange_;
103 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
107 virtual const Vector3f& color()
const = 0;
108 virtual void setColor(
const Vector3f& color) = 0;
109 virtual float lineWidth()
const = 0;
110 virtual void setLineWidth(
float width) = 0;
119 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
125 virtual const Vector3f& color()
const override;
126 virtual void setColor(
const Vector3f& color)
override;
127 virtual float lineWidth()
const override;
128 virtual void setLineWidth(
float width)
override;
133 virtual int numChildObjects()
const override;
134 virtual SgObject* childObject(
int index)
override;
143 void initializeLineSet();
152 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
157 virtual const Vector3f& color()
const override;
158 virtual void setColor(
const Vector3f& color)
override;
159 virtual float lineWidth()
const override;
160 virtual void setLineWidth(
float width)
override;
const Vector4f & edgeColor() const
Definition: SceneEffects.h:27
Definition: SceneEffects.h:116
Definition: SceneGraph.h:220
Definition: SceneDrawables.h:660
Definition: SceneGraph.h:595
ref_ptr< SgFog > SgFogPtr
Definition: SceneEffects.h:93
ref_ptr< SgTransparentGroup > SgTransparentGroupPtr
Definition: SceneEffects.h:66
Definition: SceneUpdate.h:73
void setVertexColor(const Vector4f &c)
Definition: SceneEffects.h:32
float visibilityRange() const
Definition: SceneEffects.h:82
void setVisibilityRange(float r)
Definition: SceneEffects.h:81
Definition: SceneEffects.h:14
void setPolygonElements(int elementFlags)
Definition: SceneEffects.h:25
float vertexSize() const
Definition: SceneEffects.h:33
float edgeWidth() const
Definition: SceneEffects.h:29
void setColor(const Eigen::MatrixBase< Derived > &c)
Definition: SceneEffects.h:79
PolygonElement
Definition: SceneEffects.h:20
Definition: SceneEffects.h:50
Definition: SceneEffects.h:149
Definition: SceneEffects.h:69
void setVertexSize(float s)
Definition: SceneEffects.h:34
Definition: AbstractSceneLoader.h:11
void setEdgeColor(const Vector4f &c)
Definition: SceneEffects.h:28
int polygonElements() const
Definition: SceneEffects.h:26
Definition: CloneMap.h:13
ref_ptr< SgLightweightRenderingGroup > SgLightweightRenderingGroupPtr
Definition: SceneEffects.h:182
Definition: SceneEffects.h:173
const Vector3f & color() const
Definition: SceneEffects.h:78
float transparency() const
Definition: SceneEffects.h:56
const SgLineSet * lineSet() const
Definition: SceneEffects.h:130
ref_ptr< SgOutline > SgOutlinePtr
Definition: SceneEffects.h:170
Definition: Referenced.h:54
const Vector4f & vertexColor() const
Definition: SceneEffects.h:31
ref_ptr< SgHighlight > SgHighlightPtr
Definition: SceneEffects.h:113
Definition: SceneEffects.h:96
void setEdgeWidth(float w)
Definition: SceneEffects.h:30
Definition: SceneGraph.h:28
void setTransparency(float t)
Definition: SceneEffects.h:57
ref_ptr< SgPolygonDrawStyle > SgPolygonDrawStylePtr
Definition: SceneEffects.h:47
Definition: BoundingBox.h:17
ref_ptr< SgBoundingBox > SgBoundingBoxPtr
Definition: SceneEffects.h:146