VR-Forces 4.0.4 Class Documentation
include/drawertdb/terrainWireframeDrawer.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2006 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: terrainWireframeDrawer.h,v $ $Revision: 1.3 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef TERRAINWIREFRAMEDRAWER_H
00013 #define TERRAINWIREFRAMEDRAWER_H
00014 
00015 #include "drawertdb/drawertdbDefines.h"
00016 #include "drawertdb/terrainPolygonDrawer.h"
00017 
00019 
00020 class DT_DLL_drawertdb DtTerrainWireframeDrawer : public DtTerrainPolygonDrawer
00021 {
00022 public:
00023    DtTerrainWireframeDrawer();
00024    DtTerrainWireframeDrawer(const DtTerrainWireframeDrawer&);
00025 
00026    virtual ~DtTerrainWireframeDrawer();
00027 
00028    const DtTerrainWireframeDrawer& operator=(const DtTerrainWireframeDrawer&);
00029 
00030    void setWireframeColor(const QColor&);
00031    const QColor& wireframeColor() const;
00032 
00033    static DtTerrainWireframeDrawer* create();
00034 
00036    virtual void drawWireframe(DtAllTypesPolygon* list, const DtViewportExtents* viewport,
00037       DtPrimitiveDrawer* drawer, bool usePolygonColor);
00038 
00039 protected:
00040 
00041    virtual void drawPolygon(const DtAllTypesPolygon *polygon,
00042          const DtHomogeneousTransfMatrix& matrix, const DtViewportExtents* v, DtPrimitiveDrawer* painter);
00043 
00044 protected:
00045    QColor myWireframeColor;
00046 };
00047 
00048 inline void DtTerrainWireframeDrawer::setWireframeColor(const QColor& c)
00049 {
00050    myWireframeColor = c;
00051 }
00052 
00053 inline const QColor& DtTerrainWireframeDrawer::wireframeColor() const
00054 {
00055    return myWireframeColor;
00056 }
00057 
00058 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)