vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Weather.h
Go to the documentation of this file.
1 #pragma once
2 #include <vrecko\Ability.h>
3 #include <osgParticle\PrecipitationEffect>
4 #include <osg\MatrixTransform>
5 #include <vreckoAP\Export>
6 #include <iostream>
7 
8 namespace APWeather
9 {
10  class AP_EXPORT Weather : public vrecko::Ability
11  {
12  public:
13  Weather();
14  virtual bool initialize(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *parameters = NULL);
15 
16  bool addToScene();
17  bool removeFromScene();
18  inline osgParticle::PrecipitationEffect* getEffect() { return _effect; }
19 
20  protected:
21  osg::ref_ptr<osgParticle::PrecipitationEffect> _effect;
22  osg::ref_ptr<osg::MatrixTransform> _transformNode;
23  };
24 }
25