VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtInstanceDofProcessor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <vrvOsg/vrvOsg.h>
14 
15 namespace makVrv
16 {
20  {
21  public:
24 
26  virtual ~DtInstanceDofProcessor();
27 
29  virtual void processRange(unsigned int instanceStride, unsigned int instanceOffset, unsigned int instanceCount);
30 
31  protected:
32 
35  {
36  InstanceMatrixVal matTmp[16];
37  osg::Quat quat;
38  osg::Quat quatTemp;
40  std::vector<InstanceMatrix> matStack;
41  std::vector<unsigned int> childCountStack;
42  };
43 
45  void updateDofRange(unsigned int instanceStride, unsigned int instanceOffset, unsigned int instanceCount);
46 
48  bool isRangeVisible(unsigned int offset, unsigned int count);
49 
53  void updateDofs(DofUpdateStorage& localStorage, InstanceMatrix& baseSpatial,
54  unsigned int templateIx, const ArrayRange& dofRange, unsigned int drawableOffset);
55 
56  protected:
58  };
59 }

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)