VR-Forces 4.2 Class Documentation
terrainContourLinesDrawer.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2006 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: terrainContourLinesDrawer.h,v $ $Revision: 1.2 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef TERRAINCONTOURLINESDRAWER_H
13 #define TERRAINCONTOURLINESDRAWER_H
14 
17 #include <QtGui/QColor>
18 
19 class DtPrimitiveDrawer;
20 class DtViewportExtents;
21 class DtTerrainDatabase;
22 class DtExtent;
23 class DtHomogeneousTransfMatrix;
24 class DtGdbNode;
25 class DtBaseCoordinateSystem;
26 
29 {
30 public:
33 
34  virtual ~DtTerrainContourLinesDrawer();
35 
37 
38  void setContourLineColor(const QColor& c);
39  const QColor& contourLineColor() const;
40 
41  void setContourLineInterval(int);
42  int contourLineInterval() const;
43 
44  static DtTerrainContourLinesDrawer* create();
45 
46 protected:
47  virtual void internalDraw(const DtTerrainDatabase*, const DtViewportExtents*, DtPrimitiveDrawer* painter);
48 
49  virtual void drawContourLines(const double& z0, const double& z1,
50  const DtTerrainDatabase* db, const DtViewportExtents* v, DtPrimitiveDrawer* painter);
51 
52  virtual void drawContourLinesOnNode(const DtGdbNode* node,
53  const double& zMin, const double& zMax, const double& zInterval,
54  const DtHomogeneousTransfMatrix& matrix, const DtViewportExtents* v, DtPrimitiveDrawer* painter);
55 
56  virtual void drawContourLinesOnPolygon(const DtAllTypesPolygon* polygon,
57  const double& zMin, const double& zMax, const double& zInterval,
58  const DtHomogeneousTransfMatrix& mtx, const DtViewportExtents* v, DtPrimitiveDrawer* painter);
59 
60  virtual void drawContourLinesOnCoordinateSystem(
61  const DtBaseCoordinateSystem* cs, const double& zMin, const double& zMax,
62  const double& zInterval, const DtHomogeneousTransfMatrix& matrix, const DtViewportExtents* v, DtPrimitiveDrawer* painter);
63 
64 protected:
67 };
68 
70 {
72 }
73 
75 {
76  return myContourLineColor;
77 }
78 
80 {
82 }
83 
85 {
86  return myContourLineInterval;
87 }
88 
89 #endif

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)