VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtTranslateOperator.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
14 #include <osg/CopyOp>
15 #include <osg/Object>
16 #include <osg/Vec3>
17 
18 #include <osgParticle/Operator>
19 
20 
21 namespace osgParticle {
22  class Particle;
23  class ParticleSystem;
24  class Program;
25 }
26 
27 
28 namespace makVrv
29 {
30 
43  class DT_DLL_VRVOSG DtTranslateOperator : public osgParticle::Operator
44  {
45  public:
46 
50  DtTranslateOperator( const osg::Vec3& vec = osg::Vec3(0.0f, 0.0f, 0.0f) );
51 
56  const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY );
57 
58  META_Object( makVrv, DtTranslateOperator );
59 
62  inline osg::Vec3& vector();
63  inline const osg::Vec3& vector() const;
64 
68  inline void setVector( const osg::Vec3& vec );
69 
74  inline void operate( osgParticle::Particle* ptcl, double dt );
75 
79  inline void beginOperate( osgParticle::Program *prg );
80 
81  protected:
83  virtual ~DtTranslateOperator();
84 
85  private:
87  DtTranslateOperator &operator=(const DtTranslateOperator &);
88 
89  private:
90  osg::Vec3 myVector;
91  osg::Vec3 myXfVector;
92  };
93 
94 }
95 
96 
97 #define DtTranslateOperator_INL_
98 #include <vrvOsg/DtTranslateOperator.inl>
99 #undef DtTranslateOperator_INL_

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)