VR-Forces 4.3 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) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtSpeedTreeProfile.h,v $ $Revision: 1.8 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 
16 #include <vrvSt/vrvSt.h>
17 
18 namespace makOsgSpeedTree
19 {
20  class Core;
21 }
22 
23 namespace makVrv
24 {
26  {
27  public:
28  static DtSpeedTreeCore& instance(DtDe& de);
29 
30  static void registerInstance(DtDe& de, DtSpeedTreeCore* anInstance);
31 
32  DtSpeedTreeCore(DtDe& de);
33  virtual ~DtSpeedTreeCore();
34 
35  makOsgSpeedTree::Core* getSpeedTreeCore(void){return mySpeedTreeCore;}
36 
37  // fHighDetail3dDistance -> distance at which LOD transition from highest lod to lower lods begins
38  // fLowDetail3dDistance -> distance at which the lowest 3D level is sustained
39  void set3DLodDistances(float fHighDetail3dDistance, float fLowDetail3dDistance);
40 
41  // distance at which the billboard begins to fade in and 3D fade out
42  // distance at which the billboard is fully visible and 3D is completely gone
43  void setBillboardStartEndDistances(float fBillboardStartDistance, float fBillboardEndDistance);
44 
45  void setTreesEnabled(bool enabled);
46 
47  void setAmbientScalar(float val);
48  void setDiffuseScalar(float val);
49  void setSpecularScalar(float val);
50  void setTransmissionScalar(float val);
51  void setAlphaScalar(float val);
54  void setVertexUserFunctionFileName(std::string vertexUserFunctionFilename);
55 
58  void setFragmentUserFunctionFileName(std::string fragmentUserFunctionFilename);
59 
61  std::string getVertexUserFunctionFileName();
62 
64  std::string getFragmentUserFunctionFileName();
65 
66 
67  private:
69 
70  makOsgSpeedTree::Core* mySpeedTreeCore;
71 
74 
75  void connectSignals(void);
76  void disconnectSignals(void);
77  };
78 }

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)