VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
uiPositionElement.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 #include <readerWriter/rwInt.h>
16 #include <readerWriter/rwReal.h>
17 #include <boost/signals2.hpp>
18 #include <matrix/vlVector.h>
19 
22 
24 {
25  Q_OBJECT
26 
27 public:
28 
31 
33  virtual ~DtUiPositionElement();
34 
35  virtual void createControls(QWidget*);
36  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
37 
38  virtual void processUiEvent(const DtUiElementEvent&);
39 
40  virtual const DtString& parameterName() const;
41 
43 
44 protected:
45  virtual void elementChanged();
46 
47  virtual void sendEvent();
48 
50  virtual void setPosition(const DtVector&);
51  virtual DtVector relativePosition(const DtString& relativeTo) const;
52 
53  virtual void aboutToShow();
54 
55 protected:
56 
59 
60  typedef std::map<DtString, DtVector> RelativePositions;
62 
64  boost::signals2::scoped_connection myPostTickConnection;
65 };
static DtUiElement * CreatorFunction(makVrv::DtDe &)
virtual void processUiEvent(const DtUiElementEvent &)
Process ui event. Default does nothing.
Definition: uiElement.h:231
DtString myParameterName
Definition: uiPositionElement.h:58
virtual void createControls(QWidget *)
If additional widgets or connections need to be made do it here. The parent is the myWidget member...
DtComponentSystemDefinition.
Definition: componentSystemDefinition.h:25
UI Element for specifying a body position on an entity. Fills is a DtVector.
Definition: uiPositionElement.h:23
virtual void elementChanged()
std::map< DtString, DtVector > RelativePositions
Definition: uiPositionElement.h:60
virtual void aboutToShow()
Called when about to show as part of a properties dialog. Default is no-op.
boost::signals2::scoped_connection myPostTickConnection
Definition: uiPositionElement.h:64
virtual void setFromParameters(const std::vector< DtReaderWriter * > &parentRw)
Base class for RW objects that describe a system parameter. This data is used by the entity editor to...
Definition: systemParameterData.h:30
RelativePositions myRelativePositions
Definition: uiPositionElement.h:61
Allows the editing of a vector element. Define the property single_row (bool) and check to have all t...
Definition: uiVectorElement.h:32
DtString myRelativeTo
Definition: uiPositionElement.h:57
The DtUiElement class is the base for which all UI elements are defined. If you wish to create a new ...
Definition: uiElement.h:97
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
virtual void sendEvent(const DtUiElementEvent &)
#define DT_DLL_simulationObjectEditorimpl
This file is used to determine how to build.
Definition: simulationObjectEditorImplDefines.h:33
bool mySendingEvent
Definition: uiPositionElement.h:63
Base class of the ui element class chain. Properties available through designer for all ui elements a...
Definition: uiElement.h:180
virtual void setFromSystemParameterData(const DtSystemParameterData *data, const DtComponentSystemDefinition *)
Sets data of this UiElement from the specified system parameter data. Sets things like sourceUnits...

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)