VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 
51  void set3DLodDistances(float fHighDetail3dDistance,
52  float fLowDetail3dDistance);
53 
57  void setBillboardStartEndDistances(float fBillboardStartDistance,
58  float fBillboardEndDistance);
59 
60  void setTreesEnabled(bool enabled);
61 
62  void setAmbientScalar(float val);
63  void setDiffuseScalar(float val);
64  void setSpecularScalar(float val);
65  void setTransmissionScalar(float val);
66  void setAlphaScalar(float val);
67 
70  void setVertexUserFunctionFileName(
71  std::string vertexUserFunctionFilename);
72 
75  void setFragmentUserFunctionFileName(
76  std::string fragmentUserFunctionFilename);
77 
79  std::string getVertexUserFunctionFileName();
80 
82  std::string getFragmentUserFunctionFileName();
83 
84  protected:
85 
86  void connectSignals(void);
87  void disconnectSignals(void);
88  protected:
89  static void initRenderInfo(
90  makOsgSpeedTree::SForestRenderInfo& sForestRenderInfo);
91 
92  protected:
94 
95  makOsgSpeedTree::Core* mySpeedTreeCore;
96 
99 
100  };
101 }

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)