VR-Forces 4.1.1 Class Documentation
terrainDrawer.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2006 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: terrainDrawer.h,v $ $Revision: 1.1 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef TERRAINDRAWER_H
13 #define TERRAINDRAWER_H
14 
16 
17 class DtPrimitiveDrawer;
18 class DtViewportExtents;
19 class DtTerrainDatabase;
20 class DtExtent;
22 class DtAllTypesPolygon;
23 class DtPoint;
24 
29 {
30 public:
33 
34  virtual ~DtTerrainDrawer();
35 
36  DtTerrainDrawer& operator=(const DtTerrainDrawer&);
37 
40  virtual void draw(const DtTerrainDatabase*, const DtViewportExtents*, DtPrimitiveDrawer* painter);
41 
42 public:
45  void setDrawingEnabled(bool);
46  bool drawingEnabled() const;
47 
48 protected:
50  virtual void internalDraw(const DtTerrainDatabase*, const DtViewportExtents*, DtPrimitiveDrawer* painter) = 0;
51 
52 protected:
54  virtual void drawExtent(const DtExtent& extent,
55  const DtHomogeneousTransfMatrix &mtx, const DtViewportExtents* v, DtPrimitiveDrawer* painter);
56 
57  virtual void drawFilledPoly(const DtAllTypesPolygon *polygon,
58  const DtHomogeneousTransfMatrix &mtx, const DtViewportExtents* v, DtPrimitiveDrawer* painter);
59 
60  virtual void drawLine(const DtPoint& gdp0,
61  const DtPoint& gdp1, const DtViewportExtents* view, DtPrimitiveDrawer* painter);
62 
63  virtual void drawWireframePoly(const DtAllTypesPolygon *polygon,
64  const DtHomogeneousTransfMatrix &mtx, const DtViewportExtents* v, DtPrimitiveDrawer* painter);
65 
66 protected:
68 };
69 
71 {
72  myDrawingEnabled = b;
73 }
74 
76 {
77  return myDrawingEnabled;
78 }
79 
80 #endif

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)