VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSpeedTreeCore.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
13 #include <vrvSt/vrvSt.h>
14 
15 namespace makOsgSpeedTree
16 {
17  class Core;
18  struct SForestRenderInfo;
19 }
20 
21 namespace makVrv
22 {
26  {
27  public:
29  static DtSpeedTreeCore& instance(DtDe& de);
30 
32  static void registerInstance(DtDe& de, DtSpeedTreeCore* anInstance);
33 
35  DtSpeedTreeCore(DtDe& de);
36 
38  virtual ~DtSpeedTreeCore();
39 
42  makOsgSpeedTree::Core* getSpeedTreeCore(void)
43  {
44  return mySpeedTreeCore;
45  }
46 
47 
48  void slot_displayToBeDestroyed(const std::string& displayName, DtDe *de);
49 
54  void set3DLodDistances(float fHighDetail3dDistance,
55  float fLowDetail3dDistance);
56 
60  void setBillboardStartEndDistances(float fBillboardStartDistance,
61  float fBillboardEndDistance);
62 
63  void setTreesEnabled(bool enabled);
64  void enableBillboardRendering(bool enable);
65  void enable3DTreeRendering(bool enable);
66 
67  void setAmbientScalar(float val);
68  void setDiffuseScalar(float val);
69  void setSpecularScalar(float val);
70  void setTransmissionScalar(float val);
71  void setAlphaScalar(float val);
72 
75  void setVertexUserFunctionFileName(
76  const std::string& vertexUserFunctionFilename);
77 
80  void setFragmentUserFunctionFileName(
81  const std::string& fragmentUserFunctionFilename);
82 
84  std::string getVertexUserFunctionFileName();
85 
87  std::string getFragmentUserFunctionFileName();
88 
89  protected:
90 
91  void connectSignals(void);
92  void disconnectSignals(void);
93  protected:
94  static void initRenderInfo(
95  makOsgSpeedTree::SForestRenderInfo& sForestRenderInfo);
96 
97  protected:
99 
100  makOsgSpeedTree::Core* mySpeedTreeCore;
101 
104 
105  };
106 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)