VR-Forces Developer's Guide
 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) 2021 VT-MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
14 #include <vrvMath/DtVector3.h>
15 
16 #include <vrvCore/DtUniqueID.h>
17 
18 #include <string>
19 
20 #include <osg/ref_ptr>
21 
22 namespace makVrv
23 {
24  class DtIndirectEntityGeometry;
25 
26  class DtIndirectEntityManagerInstance;
27 
31  {
32  public:
35  , const DtUniqueID uniqueId
36  , const Vector3_int& newCellId
37  , DtIndirectEntityGeometry* 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:30
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 ...
Definition: featureContext.h:36
const int myInstanceIdInIndirectGeometryNew
Definition: DtIndirectEntityManagerInstanceMoveInfo.h:66
3 dimensional vector
DtIndirectEntityManagerInstanceMoveInfo & operator=(DtIndirectEntityManagerInstanceMoveInfo &rhs)=delete
not allowed
Inherited from DtIndirectGeometry additionally implements: -removal of instances -ability to set/get ...
Definition: DtIndirectEntityGeometry.h:39
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
osg::ref_ptr< DtIndirectEntityGeometry > myNewIndirectGeometry
the indirect geometry to which this instance belongs to Purposely hold a reference to avoid DtIndirec...
Definition: DtIndirectEntityManagerInstanceMoveInfo.h:65

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)