VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSpeedTreeSettingsWidget.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvStQt/vrvStQt.h>
12 
13 #include "DtSpeedTreeSettingsWidgetUI.hpp"
15 
16 #include <QtWidgets/QWidget>
17 
18 namespace makVrv
19 {
20  class DtUnicode;
24  : public QWidget
25  , public Ui::DtSpeedTreeSettingsWidgetUI
27  { Q_OBJECT;
28  public:
29 
31  DtSpeedTreeSettingsWidget( QWidget* parent = 0,
32  Qt::WindowFlags f = Qt::Widget );
33 
36 
38  virtual void setUnitsLabel( const DtUnicode& label );
39 
41  virtual void setUnitsDecimals( int decimals );
42 
44  virtual void setUnitsMaxRange( float range);
45 
47  virtual void enableTrees( bool enable );
48  virtual void enableBillboards( bool enable );
49  virtual void enableTreeMeshes( bool enable );
50 
52  virtual void setTreeClippingPlane( float farClip );
53 
55  virtual void setTree3DLodDistances( float fNear, float fFar );
56 
57  virtual void setTreeBillboardDistances( float fStart, float fEnd );
58 
60  virtual void setBillboardFadeOutRange(float range);
61 
62  virtual void setAmbientScalar(float val);
63  virtual void setDiffuseScalar(float val);
64  virtual void setSpecularScalar(float val);
65 
66  virtual void setReceiveShadows(bool enable);
67 
68  public slots:
69 
70  void toggleTreesEnabled( int enabled );
71  void toggleBillboardsEnabled( int enabled );
72  void toggleTreeMeshesEnabled( int enabled );
73  void onClippingPlaneChanged();
74  void on3DLodDistancesChanged();
75  void onBillboardDistancesChanged();
76 
77  void onBillboardFadeOutRangeChanged();
78 
79  void onAmbientScalarSet();
80  void onDiffuseScalarSet();
81  void onSpecularScalarSet();
82  void toggleTreesReceiveShadows( int enabled );
83  };
84 
85 }
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
The DtSpeedTreeSettingsInterface provides the interface of the GUI to the speedtree settings logic...
Definition: DtSpeedTreeSettingsInterface.h:20
#define DT_DLL_VRVSTQT
Definition: vrvStQt.h:20
Contains DLL export macros.
The widget for editing SpeedTree settings.
Definition: DtSpeedTreeSettingsWidget.h:23
Contains makVrv::DtSpeedTreeSettingsInterface class.

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)