VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
organizedManagedObjectList.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
13 
14 class DtLocalObject;
16 
18 {
19 private:
25 
26 public:
29  const DtVrfObjectPredicate& predicate, bool reevaluateEveryBegin = false);
30 
32 
33  typedef std::vector<DtSimObjectReference>::iterator iterator;
34  typedef std::vector<DtSimObjectReference>::const_iterator const_iterator;
35 
40  virtual iterator begin();
41  virtual const_iterator begin() const;
42  virtual iterator end();
43  virtual const_iterator end() const;
44  virtual const_iterator find(const DtUUID& entity) const;
45  virtual size_t size() const;
47 
48 protected:
49  virtual void processSubordinateChanged(const DtUUID&);
50  virtual void init(const DtSubordinateManager*);
51  virtual void populateList();
52 
53 protected:
54  boost::signals2::scoped_connection mySubordinateAddedConnection;
55  boost::signals2::scoped_connection mySubordinateRemovedConnection;
58  std::vector<DtSimObjectReference> myFilteredObjectList;
61 };
62 
UUID is a unique ID wrapper class.
Definition: rwUUID.h:229
Objects may contain a collection of other objects, such as overlays or pseudo-aggregate entities...
Definition: subordinateManager.h:43
Definition: organizedManagedObjectList.h:17
DtVrfObjectPredicate * myPredicate
Definition: organizedManagedObjectList.h:59
voidpf void uLong size
Definition: ioapi.h:39
boost::signals2::scoped_connection mySubordinateRemovedConnection
Definition: organizedManagedObjectList.h:55
std::vector< DtSimObjectReference > myFilteredObjectList
Definition: organizedManagedObjectList.h:58
Contains the DtVrfObjectPredicate class declaration.
Definition: vrfObjectPredicate.h:20
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
std::vector< DtSimObjectReference >::iterator iterator
Definition: organizedManagedObjectList.h:33
boost::signals2::scoped_connection mySubordinateAddedConnection
Definition: organizedManagedObjectList.h:54
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
bool myNeedsListUpdate
Definition: organizedManagedObjectList.h:56
bool myReevaluateEveryBegin
Definition: organizedManagedObjectList.h:57
const DtSubordinateManager * mySubordinateManager
Definition: organizedManagedObjectList.h:60
std::vector< DtSimObjectReference >::const_iterator const_iterator
Definition: organizedManagedObjectList.h:34
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)