VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtAttributeGroupObject.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MaK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 #pragma once
6 
11 
12 #include <vlutil/vlString.h>
13 
15 
20 
23 #include <vl/environmentalPointRecord.h>
24 
25 
26 namespace vrvControlToolkit
27 {
28  class DtAttributeGroupTemplateObject;
29 
37  {
38  public:
56  DtAttributeGroupObject(DtExerciseConn* exConn, unsigned id,
58  const DtVdc3DAttachPoint& attachment,
59  const DtVector32& enuOffset = DtVector32::zero(),
60  DtVdcColor color = DtVdcColor::DtVdcWhite, bool flashing = false);
61 
62  // \brief Virtual destructor
63  virtual ~DtAttributeGroupObject();
64 
65  private:
71 
76 
80  DtAttributeGroupObject& operator=(const DtAttributeGroupObject& rhs);
81 
82 
83  public:
89  virtual DtAttributeGroupTemplateObject* attributeGroupTemplate() const;
90 
97  virtual const DtVdc3DAttachPoint& attachment() const;
98 
103  virtual void setAttachment(const DtVdc3DAttachPoint& attachment);
104 
110  virtual const DtVector32& offset() const;
111 
116  virtual void setOffset(const DtVector32& enuOffset);
117 
123  virtual const DtVdcColor& color() const;
124 
130  virtual void setColor (const DtVdcColor& color);
131 
138  virtual bool flashing() const;
139 
146  virtual void setFlashing(bool flashing);
147 
155  virtual DtString bmpAttributeValue(const DtString& attName) const;
156 
166  virtual void setBmpAttributeValue(const DtString& attName, const DtString& filename);
167 
176  virtual double numericAttributeValue(const DtString& attName) const;
177 
187  virtual void setNumericAttributeValue(const DtString& attName, double xVal);
188 
199  virtual double valueBarAttributeValue(const DtString& attName) const;
200 
213  virtual void setValueBarAttributeValue(const DtString& attName, double xVal);
214 
225  virtual double graphAttributeValueX(const DtString& attName) const;
226 
238  virtual void setGraphAttributeValueX(const DtString& attName, double xVal);
239 
248  virtual double graphAttributeValueY(const DtString& attName) const;
249 
259  virtual void setGraphAttributeValueY(const DtString& attName, double yVal);
260 
270  virtual DtVdcAttributeValueMap& attributeValueMap();
271 
272  virtual void setRemoteGraphicSet(const std::string& setName);
273 
282  virtual void update();
283 
284  protected:
285  virtual void createAttributes();
286  virtual void destroyAttributes();
287  virtual void copyAttributes(const DtVdcAttributeValueMap& valueMap);
288 
289  protected:
290  DtEnvironmentalPointRecord myPointRecord;
293 
295  DtVector32 myEnuOffset;
300  };
301 }
DtEnvironmentalPointRecord myPointRecord
Definition: DtAttributeGroupObject.h:290
DtDrawControlObject.h contains the class definition for DtDrawControlObject, the base class from whic...
Definition: attributeStateRecord.h:28
DtVdcColor myColor
Definition: DtAttributeGroupObject.h:296
Contains the Dt3DGraphicalObjectStateRecord class declaration.
DtVdc3DAttachPoint myAttachment
Definition: DtAttributeGroupObject.h:294
An instance of an attribute group (and corresponding attribute values)
Definition: DtAttributeGroupObject.h:36
Dt3DGraphicalObjectStateRecord myGraphicObjectStateRecord
Definition: DtAttributeGroupObject.h:291
static const DtVdcColor DtVdcWhite
Constant for the color White.
Definition: DtVdcColor.h:186
std::map< DtString, DtVdcAttributeValue * > DtVdcAttributeValueMap
Definition: DtAttributeValue.h:85
DtVector32 myEnuOffset
Definition: DtAttributeGroupObject.h:295
DtAttributeStateRecord myAttributeStateRecord
Definition: DtAttributeGroupObject.h:292
DtAttributeValue.h contains the class definition for DtAttributeValue, which is a container for an at...
DtVdcAttributeValueMap myValueMap
Definition: DtAttributeGroupObject.h:299
DtVdcColor represents colors for Draw Control Objects.
Definition: DtVdcColor.h:21
DtDrawControlObject is the base class from which all Draw Control Objects are derived.
Definition: DtDrawControlObject.h:35
bool myFlashing
Definition: DtAttributeGroupObject.h:297
#define DT_DLL_VRVDRAWCONTROL
Definition: vrvDrawControl.h:15
Contains the DtAttributeStateRecord class declaration.
Dt3DGraphicalObjectStateRecord implements the 3d graphical object state record for the remote graphic...
Definition: 3dGraphicalObjectStateRecord.h:42
DtVdc3DAttachPoint.h contains the class definition for DtVdc3DAttachPoint, which functions as a discr...
An Attribute Group Template.
Definition: DtAttributeGroupTemplateObject.h:38
voidpf uLong offset
Definition: ioapi.h:42
DtAttributeGroupTemplateObject * myAttributeGroupTemplate
Definition: DtAttributeGroupObject.h:298
DtVdcColor.h contains the class definition for DtVdcColor, which is used to represent colors for all ...
DtVdc3DAttachPoint represents the 3 methods for attaching a 3D draw control object in 3-space...
Definition: DtVdc3DAttachPoint.h:33

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)