vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PS_Layer.h
Go to the documentation of this file.
1 
8 #pragma once
9 #include "PS_Polyhedron.h"
10 #include "PS_Component.h"
11 
12 namespace APDYNAMICART
13 {
14 
15 class PS_Layer : public osg::Referenced
16 {
17 public:
18  PS_Layer(osg::Group* group, const std::string& polyhedronName);
19 
20  void activate();
21 
22  void deactivate();
23 
24  double getOpacity() const { return _opacity; }
25 
26  void setOpacity(double val) { _opacity = val; }
27 
28 
29 protected:
30 
32  double _opacity;
33 
36 
39 
40  osg::ref_ptr<osg::MatrixTransform> _visuals;
41 
42 };
43 
44 typedef osg::ref_ptr<PS_Layer> PS_LayerPtr;
45 
46 }