![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtSpeedTreeProfile.h,v $ $Revision: 1.8 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #pragma once 00014 #include <vrvSt/vrvSt.h> 00015 #include <vrvSt/DtSpeedTreeDrawable.h> 00016 00017 namespace makVrv 00018 { 00024 class DT_DLL_VRVST DtSpeedTreeProfile 00025 { 00026 public: 00027 00028 DtSpeedTreeProfile(); 00029 00030 virtual ~DtSpeedTreeProfile(); 00031 00032 struct DisplayParameters 00033 { 00034 float time; 00035 bool wireframe; 00036 00037 float fogStart; 00038 float fogEnd; 00039 float fogColor[3]; 00040 00041 float lightDir[3]; 00042 float lightDiffuse[3]; 00043 float lightScale; 00044 double cameraMagnification; 00045 }; 00046 00047 virtual void display( const DisplayParameters& params, 00048 float afCameraPos[3], 00049 float afProjectionMatrix[16], 00050 float afModelviewMatrix[16]) = 0; 00051 00052 virtual void addTree( 00053 const DtSpeedTreeDrawable::TreeInstanceRecord& record) = 0; 00054 virtual void setLodDistances(float fnear, float ffar) = 0; 00055 virtual void setFarDistance(float ffar) = 0; 00056 virtual void rebuildForest() = 0; 00057 virtual void clearForests() = 0; 00058 00059 }; 00060 }