vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PolyhedraSculpture.h
Go to the documentation of this file.
1 
8 #pragma once
9 
10 #include "poa.h"
11 
12 
13 #include "PS_Layer.h"
14 
15 
16 namespace APDYNAMICART
17 {
18 
19 class PolyhedraSculpture : public PoA
20 {
21 public:
22  PolyhedraSculpture(Controller* controller, const string& polyhedronName);
23 
24  void addLayer( const string& polyhedronName );
25  void addAndSwitchLayer( const string& polyhedronName );
26 
28  virtual void createMenuStructure( osg::ref_ptr<vreckoUtils::MenuBase> parentMenu ) const;
29  virtual int load( XERCES_CPP_NAMESPACE_QUALIFIER DOMNode* PoANode );
30  virtual void save( XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument* Document, XERCES_CPP_NAMESPACE_QUALIFIER DOMNode* poaNode );
31  virtual void GUIItemClicked( const char* itemID );
32  virtual void GUISliderChanged( const char* sliderID, float sliderPos );
33 
34  virtual void pointed( bool pointed ) { dbgPS(__FUNCTION__); /*_highlight->setHighlighting(pointed); */ }
35 
36  virtual void update();
37  void switchToLayer( unsigned int number );
42 protected:
44 
47 
49  std::vector<PS_LayerPtr> _layers;
50 
53 
54 
55 };
56 
57 typedef osg::ref_ptr<PolyhedraSculpture> PolyhedraSculpturePtr;
58 
59 }