VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtBackgroundLoadAsyncTask.h
Go to the documentation of this file.
1 /*****************************************************************************
2 * Copyright (c) 2020 MAK Technologies, Inc.
3 * All rights reserved.
4 *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
13 
14 #include <tbb/task.h>
15 
16 #include <vector>
17 
18 namespace makVrv
19 {
20  class DtDe;
21  class DtBackgroundLoader;
22  struct DtLoaderHandle;
23 
26  class DT_DLL_VRVCORE DtBackgroundLoadAsyncTask : public tbb::task
27  {
28  public:
30 
32  void addModel(DtLoaderHandle* model);
33 
35 
37  virtual tbb::task* execute();
38 
39  protected:
41  std::vector<DtLoaderHandle*> myModels;
43  };
44 }
std::vector< DtLoaderHandle * > myModels
Definition: DtBackgroundLoadAsyncTask.h:41
async task that loads a DtModel in the background
Definition: DtBackgroundLoadAsyncTask.h:26
core singleton that manages loading for all the various DtModel subclasses
Definition: DtBackgroundLoader.h:39
DtDe & myDe
Definition: DtBackgroundLoadAsyncTask.h:40
DtBackgroundLoader * myLoader
Definition: DtBackgroundLoadAsyncTask.h:42
virtual ~DtBackgroundLoadAsyncTask()
Definition: DtBackgroundLoadAsyncTask.h:34
wrapper object that insulates the loader from other threads destroying an object
Definition: DtLoaderHandle.h:23
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
Contains DLL export macros.

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)