VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgScalingAlgorithmFactory.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
15 
16 #include <unordered_map>
17 
18 #include <string>
19 
20 namespace makVrv
21 {
22  class DtDe;
23  class DtScalingAlgorithmCreator;
24  class DtScalingAlgorithm;
25 
30  {
31  public:
34 
37 
40  virtual void registerCreator(DtScalingAlgorithmCreator* creator);
41 
44  virtual DtScalingAlgorithm* getOrCreate(const std::string& name);
45 
46  private:
49 
52 
55 
56  protected:
57  typedef std::unordered_map<std::string, DtScalingAlgorithm*> AlgorithmCache;
59  };
60 }
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Contains makVrv::DtScalingAlgorithmFactory class.
std::unordered_map< std::string, DtScalingAlgorithm * > AlgorithmCache
Definition: DtOsgScalingAlgorithmFactory.h:57
Abstract interface for creating instances of scaling algorithm classes. In addition to the more tradi...
Definition: DtScalingAlgorithmCreator.h:26
Provides an algorithm for scaling objects in the scene. It provides a container for the scale factor ...
Definition: DtScalingAlgorithm.h:35
AlgorithmCache myAlgorithmCache
Definition: DtOsgScalingAlgorithmFactory.h:58
DtScalingAlgorithmFactory provides a mechanism to register creators for and create different model sc...
Definition: DtScalingAlgorithmFactory.h:40
Contains DLL export macros.
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:70
This is the vrvOsg-specific implementation of a DtScalingAlgorithmFactory. It implements the register...
Definition: DtOsgScalingAlgorithmFactory.h:29

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)