VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtIndirectEntityManagerInstanceMoveInfo.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 VT-MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
15 
16 #include <vrvCore/DtUniqueID.h>
17 
18 #include <string>
19 
20 #include <osg/ref_ptr>
21 
22 namespace makVrv
23 {
24  class DtIndirectGeometry;
25 
26  class DtIndirectEntityManagerInstance;
27 
31  {
32  public:
35  , const DtUniqueID uniqueId
36  , const Vector3_int& newCellId
37  , DtIndirectGeometry* newIndirectGeometry
38  , int instanceIdInIndirectGeometryNew);
41  private:
48  public:
50  virtual bool canBeMoved() const;
52  virtual void move();
53 
54  protected:
56  virtual void cancelMove();
57 
58  public:
67  bool myMoveDone;
68  protected:
70  virtual void copyXFormColorDataUvOffsets();
71  };
72 }
internal structure for mapping a DtOsgArticulatedModel/DtOsgSimpleModel object to a corresponding ins...
Definition: DtIndirectEntityManagerInstance.h:29
DtIndirectEntityManagerInstanceMoveInfo()=delete
not allowed
class to encapsulate moving of instance from one indirect geometry to another in an entity manager/gr...
Definition: DtIndirectEntityManagerInstanceMoveInfo.h:30
virtual void move()
actually move it
virtual void copyXFormColorDataUvOffsets()
copy xform, color, data uv from old indirect geo instance to new indirect geo instance ...
const int myInstanceIdInIndirectGeometryNew
Definition: DtIndirectEntityManagerInstanceMoveInfo.h:66
3 dimensional vector
DtIndirectEntityManagerInstanceMoveInfo & operator=(DtIndirectEntityManagerInstanceMoveInfo &rhs)=delete
not allowed
osg::ref_ptr< DtIndirectGeometry > myNewIndirectGeometry
the indirect geometry to which this instance belongs to Purposely hold a reference to avoid DtIndirec...
Definition: DtIndirectEntityManagerInstanceMoveInfo.h:65
\ ::, which allows us to hook into our indirect engine to render using indirect rendering...
Definition: DtIndirectGeometry.h:102
virtual void cancelMove()
called by the destructor if the move info is being deleted prior to calling move() ...
virtual bool canBeMoved() const
can the instance be moved?
DtIndirectEntityManagerInstance & myEntityManagerInstance
Definition: DtIndirectEntityManagerInstanceMoveInfo.h:59
Vector3_int myNewCellId
Definition: DtIndirectEntityManagerInstanceMoveInfo.h:61
const DtUniqueID myUniqueId
Definition: DtIndirectEntityManagerInstanceMoveInfo.h:60
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
Contains makVrv::DtUniqueID type.
Contains DLL export macros.
bool myMoveDone
Definition: DtIndirectEntityManagerInstanceMoveInfo.h:67

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)