9 #ifndef _VRECKO_CLOUDS_OSGCLOUDWRAP_H
10 #define _VRECKO_CLOUDS_OSGCLOUDWRAP_H
24 osg::Vec3f cameraPos, cameraView, cameraUp;
34 void setCameraData(
const osg::Vec3f& cameraPos,
const osg::Vec3f& cameraView,
const osg::Vec3f& cameraUp)
36 this->cameraPos = cameraPos;
37 this->cameraView = cameraView;
38 this->cameraUp = cameraUp;
45 osg::Vec3f
getCameraPos(
void) {
return osg::Vec3f(cameraPos.x(), cameraPos.y(), cameraPos.z()); }
50 osg::Vec3f
getCameraView(
void) {
return osg::Vec3f(cameraView.x(), cameraView.y(), cameraView.z()); }
55 osg::Vec3f
getCameraUp(
void) {
return osg::Vec3f(cameraUp.x(), cameraUp.y(), cameraUp.z()); }
75 virtual
void operator() (const osg::Camera& camera)
const
79 std::cout <<
"AllCloudsUpdateCallback dynamic_cast error" << std::endl;