VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
uiArtPartElement.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 #pragma once
11 
14 
15 class DtArtPartManager;
17 
22 {
23 public:
24 
27 
29  virtual ~DtUiArtPartElement() override;
30 
31  virtual DtString artPartCategory() const;
32  virtual void setArtPartCategory(const DtString& cat);
33 
34  virtual int artPartNumber() const;
35  virtual void setArtPartNumber(int num);
36 
37  virtual bool artPartNumberConflicted() const;
38  virtual void setArtPartNumberConflicted(bool confl);
39 
40  virtual void setFromSystemParameterData(
41  const DtSystemParameterData* data, const DtComponentSystemDefinition*) override;
42 
43  virtual void processUiEvent(const DtUiElementEvent&) override;
44 
46  virtual void aboutToShow() override;
47 
49 
50  static DtArtPartManager* artPartManager();
51 
52 protected:
53  virtual void createControls(QWidget*) override;
54 
55  virtual void setWidgetValue(int val);
56 
57  virtual void setWidgetConflicted(bool conflicted);
58 
59 protected:
60  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw) override;
61 
62 protected:
66  std::vector<DtArtPartType> myOrigArtPartTypes;
67 
69 
72 
74 
75  static const int theMixedVal;
76 };
const DtSystemParameterData * myLastParamData
Definition: uiArtPartElement.h:70
virtual void createControls(QWidget *parent)
If additional widgets or connections need to be made do it here. The parent is the myWidget member...
virtual void setFromParameters(DtReaderWriter *parentRw)
Calls setFromParameters with std::vector of parameter.
Element for managing an Articulated Part number variable. It hooks to the DtArtPartManager to auto-as...
Definition: uiArtPartElement.h:21
virtual void processUiEvent(const DtUiElementEvent &)
Process ui event. Default does nothing.
Definition: uiElement.h:236
boost::function< DtUiElement *(makVrv::DtDe &)> CreatorFunction
Definition: uiElement.h:190
Instances of DtSimArtPartDescriptorList are lists of DtSimArtPartDescriptors. This is an optional par...
Definition: simArtPartDescriptorList.h:16
static DtArtPartManager * theArtPartManager
Definition: uiArtPartElement.h:73
DtComponentSystemDefinition.
Definition: componentSystemDefinition.h:27
static const int theMixedVal
Definition: uiArtPartElement.h:75
virtual void aboutToShow()
Called when about to show as part of a properties dialog. Default is no-op.
DtString mySystemName
Definition: uiArtPartElement.h:65
std::vector< DtArtPartType > myOrigArtPartTypes
Definition: uiArtPartElement.h:66
DtString myArtPartCategory
Definition: uiArtPartElement.h:63
Base class for RW objects that describe a system parameter. This data is used by the entity editor to...
Definition: systemParameterData.h:30
Definition: artPartManager.h:23
The DtUiElement class is the base for which all UI elements are defined. If you wish to create a new ...
Definition: uiElement.h:97
DtSimArtPartDescriptorList * myArtPartDescriptors
Definition: uiArtPartElement.h:68
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:76
bool myArtPartNumConflicted
Definition: uiArtPartElement.h:64
#define DT_DLL_simulationObjectEditorimpl
This file is used to determine how to build.
Definition: simulationObjectEditorImplDefines.h:33
Base class of the ui element class chain. Properties available through designer for all ui elements a...
Definition: uiElement.h:185
const DtComponentSystemDefinition * myLastDef
Definition: uiArtPartElement.h:71
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 Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)