![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2003 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: c7bLinearModel.h,v $ $Revision: 1.8 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00009 // 00010 // File c7bLinearModel 00011 // 00012 // Class: DtC7bLinearModel 00013 // 00014 // The class is public because should not be used but anyone else than 00015 // DtC7b. 00016 // 00017 00018 #ifndef __DtC7bLinearModel 00019 #define __DtC7bLinearModel 00020 00021 #include "ctdb/ctdbDefines.h" 00022 #include <stdio.h> 00023 #include "ctdb/c7NetTypes.h" 00024 00025 class DT_DLL_ctdb DtC7bLinearModel_Little 00026 { 00027 public: 00028 DtC7NetU32 myLinearData1; 00029 DtC7NetU32 myLinearData2; 00030 DtC7NetU16 myWidth; 00031 DtNetU8 myPad; 00032 DtNetU8 myType; 00033 }; 00034 00035 class DT_DLL_ctdb DtC7bLinearModel_Big 00036 { 00037 public: 00038 DtC7NetU32 myLinearData1; 00039 DtC7NetU32 myLinearData2; 00040 DtNetU8 myType; 00041 DtNetU8 myPad; 00042 DtC7NetU16 myWidth; 00043 }; 00044 00045 00046 class DT_DLL_ctdb DtC7bLinearModel 00047 { 00048 public: 00049 00050 DtC7bLinearModel(); 00051 ~DtC7bLinearModel(); 00052 00053 bool read(FILE *f); 00054 00055 int trunkRadius(); 00056 int foliageHeight(); 00057 int fullnessTree(); 00058 int totalHeight(); 00059 int fullnessOpacity(); 00060 float spacing(); 00061 int component(); 00062 00063 const DtC7NetU32& linearData1() const; 00064 const DtC7NetU32& linearData2() const; 00065 const DtNetU8& type() const; 00066 00067 DtC7bLinearModel_Little* myLittle; 00068 DtC7bLinearModel_Big* myBig; 00069 }; 00070 00071 #endif 00072