You.i Engine
YiAssetViewTemplate.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. All rights reserved.
2 #ifndef _YI_ASSET_VIEW_TEMPLATE_H_
3 #define _YI_ASSET_VIEW_TEMPLATE_H_
4 
5 #include "asset/YiAsset.h"
6 #include "utility/YiRtti.h"
7 
13 class CYISceneManager;
14 class CYISceneView;
15 class CYIViewTemplate;
16 
22 {
24 
25 public:
28 
29  virtual ~CYIAssetViewTemplate();
30 
34  const std::shared_ptr<CYIViewTemplate> &GetTemplate();
35 
49  std::unique_ptr<CYISceneView> BuildView(CYISceneManager *pSceneManager);
50 
51 protected:
52  virtual void OnUnload() override;
53  void SetTemplate(const std::shared_ptr<CYIViewTemplate> &pViewTemplate);
54 
55 private:
56  std::shared_ptr<CYIViewTemplate> m_pViewTemplate;
57 
59 };
60 
63 #endif // _YI_ASSET_VIEW_TEMPLATE_H_
Scene trees composed of CYISceneNode objects are registered with the scene manager in order for them ...
Definition: YiSceneManager.h:75
The base class for all view types. Views are containers of renderable elements that often define inte...
Definition: YiSceneView.h:47
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:36
PathType
Definition: YiAsset.h:42
virtual ~CYIAssetViewTemplate()
std::unique_ptr< CYISceneView > BuildView(CYISceneManager *pSceneManager)
A view template defines information about a view, so it can be built automatically.
Definition: YiViewTemplate.h:29
ViewTemplate asset. Wrapper around a CYIViewTemplate.
Definition: YiAssetViewTemplate.h:21
virtual void OnUnload() override
Base class for any asset. An asset provides functions for dynamically loading and unloading itself an...
Definition: YiAsset.h:32
#define YI_TYPE_BASES(CLASS, BASES...)
Definition: YiRtti.h:257
This file contains the classes and macros used to implement RTTI in You.i Engine. ...
Asset decoder for view templates from After Effects; these typically have a ".layout" file extension...
Definition: YiAssetDecoderTemplate.h:26
const std::shared_ptr< CYIViewTemplate > & GetTemplate()
void SetTemplate(const std::shared_ptr< CYIViewTemplate > &pViewTemplate)