VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtInstanceNode.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>
12 
13 #include <osg/Transform>
14 #include <osg/View>
15 #include <osg/CopyOp>
16 
17 namespace osgUtil
18 {
19  class NodeVisitor;
20 }
21 
22 namespace makVrv
23 {
24  class DtInstanceManager;
25 
31  class DT_DLL_VRVOSG DtInstanceNode : public osg::Transform
32  {
33  public:
35  DtInstanceNode(DtInstanceManager& instanceManager);
36 
38  ~DtInstanceNode();
39 
41  DtInstanceNode(const DtInstanceNode& ob, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);
42 
44  virtual osg::Object* clone(const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY) const;
45 
47  virtual void traverse(osg::NodeVisitor& nv);
48 
53  virtual bool computeWorldToLocalMatrix(osg::Matrix& matrix, osg::NodeVisitor* nv) const;
54 
56  virtual bool computeLocalToWorldMatrix(osg::Matrix& matrix, osg::NodeVisitor* nv) const;
57 
58  protected:
59  osg::Vec3d myLastEye;
61  };
62 }

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)