VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simFeaturesVisualizationController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
14 #include "features/featureSet.h"
15 
16 #include <tbb/atomic.h>
17 
20 {
21 public:
22 
26  DtVrfObject* owner,
27  DtSimManager* simManager,
28  DtComponentDescriptor* desc = 0,
29  DtReaderWriterRegistry* parentRegistry = 0);
30 
33 
36  virtual const char* type() const;
37 
38  virtual bool init();
39 
40  virtual void preFirstTickInit();
41 
42  virtual bool taskVisualizationsActive() const;
43 
45  virtual void tick();
46 
47  virtual bool changed() const;
48 
52  static DtSimComponent * creator(const DtString& name,
53  DtVrfObject* owner,
54  DtSimManager* simManager,
55  DtComponentDescriptor* desc = 0,
56  DtReaderWriterRegistry* parentRegistry = 0);
57 
58 protected:
59  virtual void newFilterArea();
60 
61  virtual void featureAdded(const MAKVRinTerra::DtFeature&);
62 
63  static void verticesChangedCallback(DtVrfObject* object, void* usr);
64  virtual void processVerticesChanged(DtVrfObject* object);
65 
66  void setColor(DtTaskVisualization&, unsigned rmix, unsigned gmix, unsigned bmix);
67 
68 private:
70 
75 
76 protected:
84 
85  tbb::atomic<bool> myChangedFlag;
86  tbb::atomic<unsigned> myNumFeatures;
87  unsigned myVisId;
88 
89  boost::scoped_ptr<MAKVRinTerra::DtFeatureSet> myFeatureSet;
91 
92  mutable tbb::spin_mutex myMutex;
93 
94  std::vector< boost::shared_ptr<MAKVRinTerra::DtFeature> > myPendingPageInFeatures;
95 };
96 

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)