9 #ifndef GEPETTO_VIEWER_LEAFNODEGROUND_HH 10 #define GEPETTO_VIEWER_LEAFNODEGROUND_HH 31 LeafNodeGroundWeakPtr weak_ptr_;
34 ::osg::Vec3ArrayRefPtr vertices_array_ptr_;
35 ::osg::Vec4ArrayRefPtr colors_array_ptr_;
38 ::osg::GeometryRefPtr grid_geometry_ptr_;
39 ::osg::ref_ptr< ::osg::DrawArrays > draw_array_ptr_;
44 void updateVertices();
57 void initWeakPtr(
const LeafNodeGroundWeakPtr& other_weak_ptr );
70 static LeafNodeGroundPtr_t create(
const std::string& name,
int nX,
int nY,
71 float square_length,
float square_width);
73 static LeafNodeGroundPtr_t create(
const std::string& name,
int nX,
int nY,
float square_length,
float square_width,
const osgVector4& color1,
const osgVector4& color2);
75 static LeafNodeGroundPtr_t create(
const std::string& name);
81 LeafNodeGroundPtr_t
self(void)
const;
92 virtual void setColor1(
const osgVector4 &color1);
103 virtual void setColor2(
const osgVector4 &color2);
Definition: leaf-node-ground.h:18
::osg::Vec4f osgVector4
Definition: config-osg.h:110
Definition: action-search-bar.hh:27
const osgVector4 & getColor2() const
Definition: leaf-node-ground.h:105
#define DEF_CLASS_SMART_PTR(className)
Definition: macros.h:50
const osgVector4 & getColor1() const
Definition: leaf-node-ground.h:94
Abstract base class of 3D objects in a scene.
Definition: node.h:28
SCENE_VIEWER_ACCEPT_VISITOR
Virtual method for setting the shadow mode of the object : receive, cast, both or no shadow...
Definition: leaf-node-ground.h:124