VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
terrainProfileSymbol.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
9 #include <vlpi/entityType.h>
10 #include <matrix/vlVector.h>
11 
12 #include <qwt_symbol.h>
13 
14 namespace makVrf
15 {
18  {
19  public:
20  DtTerrainProfileSymbol() : QwtSymbol(), myDestroyed(false) {};
21  DtTerrainProfileSymbol(const QPixmap& pixmap) : QwtSymbol(), myDestroyed(false)
22  { setPixmap(pixmap); setSize(pixmap.size()); };
23 
24  void setDestroyed(bool b) { myDestroyed = b; };
25  bool destroyed() const { return myDestroyed; };
26 
27  void setEntityType(const DtEntityType& t) { myEntityType = t; };
28  const DtEntityType& entityType() const { return myEntityType; };
29 
30  void setLocation(const DtVector& l) { myLocation = l; };
31  const DtVector& location() const { return myLocation; };
32 
33  protected:
34  DtEntityType myEntityType;
37  };
38 }
bool destroyed() const
Definition: terrainProfileSymbol.h:25
void setEntityType(const DtEntityType &t)
Definition: terrainProfileSymbol.h:27
void setDestroyed(bool b)
Definition: terrainProfileSymbol.h:24
Version of the QwtSymbol that allows for drawing of a pixmap.
Definition: terrainProfileSymbol.h:17
bool myDestroyed
Definition: terrainProfileSymbol.h:35
void setLocation(const DtVector &l)
Definition: terrainProfileSymbol.h:30
#define DT_DLL_VRFGUICOMMONQT
Definition: vrfGuiCommonQt.h:22
DtVector myLocation
Definition: terrainProfileSymbol.h:36
const DtEntityType & entityType() const
Definition: terrainProfileSymbol.h:28
DtTerrainProfileSymbol(const QPixmap &pixmap)
Definition: terrainProfileSymbol.h:21
DtTerrainProfileSymbol()
Definition: terrainProfileSymbol.h:20

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)