9 #ifndef GEPETTO_VIEWER_LEAFNODEGROUND_HH
10 #define GEPETTO_VIEWER_LEAFNODEGROUND_HH
31 LeafNodeGroundWeakPtr weak_ptr_;
34 ::osg::Vec4ArrayRefPtr colors_array_ptr_;
37 ::osg::GeometryRefPtr grid_geometry_ptr_;
49 LeafNodeGround(
const std::string& name,
const float& length,
const float& width,
50 const float& square_length,
const float& square_width,
const osgVector4& color1,
const osgVector4& color2);
56 void initWeakPtr(
const LeafNodeGroundWeakPtr& other_weak_ptr );
65 static LeafNodeGroundPtr_t create(
const std::string& name,
const float &length,
const float &width);
75 static LeafNodeGroundPtr_t create(
const std::string& name,
const float &length,
const float &width,
76 const float &square_length,
const float &square_width);
78 static LeafNodeGroundPtr_t create(
const std::string& name,
const float &length,
const float &width,
const float &square_length,
const float &square_width,
const osgVector4& color1,
const osgVector4& color2);
80 static LeafNodeGroundPtr_t create(
const std::string& name);
83 static LeafNodeGroundPtr_t createCopy(
const LeafNodeGroundPtr_t &other );
88 virtual LeafNodeGroundPtr_t clone(
void)
const;
94 virtual LeafNodeGroundPtr_t
copy()
const {
return clone(); }
99 LeafNodeGroundPtr_t
self(void)
const;
110 virtual void setColor1(
const osgVector4 &color1);
121 virtual void setColor2(
const osgVector4 &color2);