VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
uiEntityHealth.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
7 
8 #pragma once
9 
12 
13 class QTreeWidget;
14 class DtUiEntityHealth;
15 
19 {
20 public:
23  virtual ~DtEntityHealthCheck();
24 
27  virtual bool passesCheck(const DtObjectType&, QString& error, bool& continueOn) const = 0;
28 
30  virtual void fix(const DtObjectType&) = 0;
31 };
32 
37 {
38  Q_OBJECT
39 
40 public:
41 
44 
46  virtual ~DtUiEntityHealth();
47 
48  virtual void setObjectTypes(const std::vector<DtObjectType>&);
49  virtual void setFromParameters(const std::vector<DtReaderWriter*>&);
50  virtual bool checkup(QString& toolTip);
51 
52 protected:
53  virtual void cure(DtHealthCheck*);
54 };
virtual void setFromParameters(DtReaderWriter *parentRw)
Calls setFromParameters with std::vector of parameter.
Definition: objectType.h:27
virtual void setObjectTypes(const std::vector< DtObjectType > &)
Sets the object type this element represents.
General class that all health checks must subclass from.
Definition: uiHealthCheck.h:17
virtual bool checkup(QString &toolTip)=0
Fill in tool tip with what to display for overall health if fails.
Definition: asyncJobServer.h:39
This UI element will provide basical functionality for allowing an entity to define rules that can de...
Definition: uiEntityHealth.h:36
This UI element will provide basical functionality for allowing a system to define rules that can det...
Definition: uiHealthCheck.h:40
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
Class that is used to define a health check. Return true if passes, and, if false implement the fix()...
Definition: uiEntityHealth.h:18
#define DT_DLL_simulationObjectEditorimpl
This file is used to determine how to build.
Definition: simulationObjectEditorImplDefines.h:33
virtual void cure(DtHealthCheck *)=0
Attempt to fix the failed health check.

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)