![]() |
VR-Forces Developer's Guide
|

Classes | |
| struct | ModifiedData |
| struct | PlotData |
Signals | |
| void | rangeChanged (DtString, double, double) |
| void | dataChanged (DtString, double, double) |
| void | graphDataChanged (const DtUiElementEvent &e) |
| void | switchEquation () |
Signals inherited from DtUiElement | |
| void | uiEvent (const DtUiElementEvent &) |
| void | changed () |
Public Member Functions | |
| DtUiGraphDataWidget (makVrv::DtDe &) | |
| virtual | ~DtUiGraphDataWidget () override |
| virtual void | initControls (QWidget *widget, bool displayMultiRow=false, bool useCustomValues=false, unsigned int startingColorIndex=0) |
| virtual bool | hasRange (const DtString &) const |
| virtual bool | isRangeType () const |
| virtual void | setPlotPenColor (const QColor &) |
| virtual void | createNewRangeTableForSelectedItem (double maxRange, double value) |
| virtual void | createBasicCoefficientTable (const DtString &) |
| virtual void | plotLineSelected (const DtString &) |
| virtual void | plotRemainingItems () |
| virtual void | replotGraph () |
| virtual void | resetGraphData () |
| virtual void | updateDataKey (const QString &displayName, const DtString &key) |
| virtual void | removeDataEntry (const DtString &key) |
| virtual void | addCommonEntry (const DtString &, const std::vector< DtRangeProbEntry * > &, QString &displayName, bool plotCoefficientImmediately=false) |
| virtual DtRangeProbEntry * | getEntry (const DtString &key) |
| virtual DtRangeProbEntry * | cloneEntry (const DtString &existingKey) |
| virtual void | clearGraphData () |
| virtual void | clearAllData () |
| virtual void | clearPlotLines () |
| virtual void | clearDataTypes () |
| virtual void | setupEntriesFrom (const std::vector< DtReaderWriter * > &) |
| virtual bool | replotAllNotAtMaximumRange () |
| virtual void | setupGraphDataFor (const DtString &) |
| virtual void | setupGraphDataFor () |
| virtual QString | graphDataTitle () const |
| virtual void | setGraphDataTitle (const QString &) |
| virtual void | plot (const DtString &, const QString &displayName, DtDetectionPrbRangeLookupEntry *) |
| virtual void | plot (const DtString &, const QString &displayName, DtDetectionPrbRangeCalcEntry *) |
Public Member Functions inherited from DtUiElement | |
| DtUiElement (makVrv::DtDe &) | |
| virtual | ~DtUiElement () override |
| virtual bool | blockSignals (bool) |
| virtual void | init (QWidget *widget, QWidget *label, DtReaderWriter *originalData, DtReaderWriter *backupData, DtElementChangedCallbackFcn=boost::bind(&DtUiElement::theNullFunction, boost::placeholders::_1)) |
| virtual void | init (QWidget *widget, QWidget *label, const std::vector< DtReaderWriter * > &originalData, const std::vector< DtReaderWriter * > &backupData, DtElementChangedCallbackFcn=boost::bind(&DtUiElement::theNullFunction, boost::placeholders::_1)) |
| virtual void | init (QWidget *widget, QWidget *label, const DtEntityType &, const DtString &platformType, DtElementChangedCallbackFcn=boost::bind(&DtUiElement::theNullFunction, boost::placeholders::_1)) |
| virtual DtString | displayUnits () const |
| virtual void | setDisplayUnits (const DtString &units) |
| virtual void | setLabelText (const QString &) |
| virtual DtString | sourceUnits () const |
| virtual void | setSourceUnits (const DtString &units) |
| virtual void | setFromSystemParameterData (const DtSystemParameterData *data, const DtComponentSystemDefinition *) |
| virtual void | objectParametersModified () |
| virtual void | connectedTo (QObject *) |
| virtual void | processUiEvent (const DtUiElementEvent &) |
| virtual void | setModelModified (DtModelSetEntry *) |
| virtual DtString | uniqueName () const |
| virtual bool | supportsSystems () const |
| virtual const DtString & | platformType () const |
| virtual void | setPlatformType (const DtString &) |
| virtual void | setObjectTypes (const std::vector< DtEntityType > &) |
| virtual void | aboutToShow () |
| const std::vector < DtReaderWriter * > & | values () const |
| const std::vector < DtReaderWriter * > & | backupValues () const |
| virtual bool | isModified () const |
| virtual bool | isValid () const |
| virtual void | decorateElement () |
| virtual void | setFromParameters (DtReaderWriter *parentRw) |
| virtual void | setFromParameters (const std::vector< DtComponentSystemDefinition * > &) |
| virtual bool | restoreFromBackup () |
| QHBoxLayout * | findLayoutThatHas (QWidget *w, QBoxLayout *layout) |
| QBoxLayout * | findUsableLayoutFor (QWidget *w) |
| const std::vector< DtEntityType > & | objectTypes () const |
| const std::vector < DtComponentSystemDefinition * > & | systems () const |
| virtual void | sendEvent (const DtUiElementEvent &) |
| virtual bool | allValuesTheSame () const |
| virtual bool | isMixedValue () const |
| virtual bool | enabled () const |
| virtual void | setControllingCheckBox (QCheckBox *) |
| QCheckBox * | controllingCheckBox () |
| virtual void | populateParentValues (std::string elementName) |
Static Public Member Functions | |
| static DtUiElement * | CreatorFunction (makVrv::DtDe &) |
Static Public Member Functions inherited from DtUiElement | |
| static void | registerUiTypes () |
| static DtUiElement * | createUiElement (makVrv::DtDe &, const DtString &type) |
| static bool | hasCreator (const DtString &) |
| static void | theNullFunction (DtUiElement *) |
| static UiElementFactoryMap & | elementFactory () |
| static QString | mixedText () |
| static void | setMixedText (const QString &) |
Public Attributes | |
| QVBoxLayout * | myMainLayout |
| QwtPlot * | myGraph |
| QLabel * | myGraphDataLabel |
| QWidget * | myGraphDataCanvas |
| QTableWidget * | myGraphData |
| QHBoxLayout * | myTopLineLayout |
| QHBoxLayout * | myButtonLayout |
| QVBoxLayout * | myTableLayout |
| QHBoxLayout * | myTableButtons |
| QToolButton * | myAddRange |
| QToolButton * | myEditRange |
| QToolButton * | myRemoveRange |
| QDoubleValidator * | myRangeValidator |
| QDoubleValidator * | myCoefficientValidator |
| QLabel * | myComboLabel |
| QListWidget * | myDataTypes |
| DtPlotPicker * | myPlotPicker |
| QToolButton * | myChangeToCoefficient |
| QToolButton * | myChangeToLookup |
| QWidget * | myButtonLine |
Public Attributes inherited from DtUiElement | |
| QWidget * | myWidget |
| QWidget * | myLabel |
Protected Types | |
| typedef std::map< DtString, PlotData > | RangeLines |
| typedef std::map< DtString, QListWidgetItem * > | ItemsMap |
Protected Slots | |
| virtual void | plotLineSelected () |
| virtual void | sectionDoubleClicked (int) |
| virtual void | legendClicked (const QVariant &, int) |
| virtual void | selectCurve (const QPointF &) |
| virtual void | changeDataValue () |
| virtual void | addRange () |
| virtual void | editRange () |
| virtual void | removeRange () |
| virtual void | graphDataSelectionChanged () |
| virtual void | changeEquationType () |
Protected Slots inherited from DtUiElement | |
| virtual void | elementChanged () |
| virtual void | enableIfChecked () |
| virtual void | disableIfChecked () |
Protected Member Functions | |
| virtual void | createControls (QWidget *parent) override |
| virtual void | sendUpdate () |
| virtual void | setFromParameters (const std::vector< DtReaderWriter * > &parentRw) override |
| virtual QVector< QPointF > | updateDataFor (QLineEdit *, DtDetectionPrbRangeLookupEntry *, std::vector< int > &columns) |
| virtual void | setupGraphDataFor (DtDetectionPrbRangeLookupEntry *, const DtString &key, int row=0) |
| virtual QVector< QPointF > | getPlotPoints (DtDetectionPrbRangeLookupEntry *, std::vector< int > &columns) const |
| virtual double | getProbability (double range, DtRangeProbEntry *entry) const |
| virtual QVector< QPointF > | updateDataFor (QLineEdit *, DtDetectionPrbRangeCalcEntry *) |
| virtual void | setupGraphDataFor (DtDetectionPrbRangeCalcEntry *, const DtString &key, int row=0) |
| virtual QVector< QPointF > | getPlotPoints (DtDetectionPrbRangeCalcEntry *) const |
| virtual void | addNewRangeEntry (double range) |
| virtual void | addNewRangeEntry (PlotData &pd, double range, const DtString &name="probability") |
| virtual QString | newRangeWindowLabel () const |
| virtual double | findMaximumRange () const |
| virtual void | graphLineColorChanged (const QColor &oldColor, const QColor &newColor) |
| virtual void | addPlotLine (const DtString &key, const QString &displayName, const QVector< QPointF > &points, DtRangeProbEntry *entry) |
| virtual double | minimumRange (DtDetectionPrbRangeLookupEntry *entry) const |
| virtual double | maximumRange (DtDetectionPrbRangeCalcEntry *entry) const |
| virtual double | maximumRange (DtDetectionPrbRangeLookupEntry *entry) const |
| virtual int | selectedRow () const |
| virtual void | setupGraphDataFor (const DtString &key, const PlotData &) |
| virtual bool | addNewCoefficientEntry () |
| virtual void | addNewCoefficientEntry (PlotData &pd) |
| virtual bool | addNewRangeEntry () |
| virtual bool | eventFilter (QObject *, QEvent *) override |
| virtual void | cellEntered (QObject *e) |
| virtual void | moveRange () |
| virtual void | wheelMove (double delta) |
| virtual int | changeRangeFor (const DtString &et, double fromRange, double toRange) |
| virtual int | changeRangeFor (PlotData &pd, double fromRange, double toRange) |
| virtual int | changeRangeForColumn (const DtString &et, int column, double toRange) |
| virtual int | changeRangeForColumn (PlotData &pd, int column, double toRange) |
| virtual void | removeRange (PlotData &pd, int currentColumn) |
| virtual QListWidgetItem * | selectedLine () const |
| virtual void | addGraphDataCanvas () |
| virtual void | setEnabled (bool) override |
| virtual bool | multiLinesPerGraph () const |
Protected Member Functions inherited from DtUiElement | |
| virtual double | sourceToDisplayUnits (double) const |
| virtual double | displayToSourceUnits (double) const |
| virtual QString | units () const |
| virtual void | updateLabelTitle () |
| virtual QString | labelTitle () const |
Additional Inherited Members | |
Public Types inherited from DtUiElement | |
| typedef boost::function < DtUiElement *(makVrv::DtDe &)> | CreatorFunction |
| typedef std::map< std::string, CreatorFunction > | UiElementFactoryMap |
Public Slots inherited from DtUiElement | |
| virtual void | toggleDisplayed (bool display) |
Static Protected Attributes inherited from DtUiElement | |
| static UiElementFactoryMap | theFactory |
|
protected |
Lines drawn on the graph.
|
protected |
graph data table row associated with range line
| DtUiGraphDataWidget::DtUiGraphDataWidget | ( | makVrv::DtDe & | ) |
Constructor.
|
overridevirtual |
Destructor.
|
static |
|
virtual |
If creating inside another class call this to get the controls created and provide some customization displayMultiRows shows multiple rows in the graph data, data that should be manipulated together–used for the damage tables currently useCustomValues allows you to have a graph that is not a probability based 0-100 but customized to the needs of the data and finally starting color index is used when there are multiple graphs and changing color of one graph shouldn't affect the other graphs.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Plots coefficent graphs once all data has been entered.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Looks up the currently selected's key to display it's graph data.
|
virtual |
Displays all the rows of the graph data table, not just the currently selected graph line.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
overrideprotectedvirtual |
If additional widgets or connections need to be made do it here. The parent is the myWidget member.
Reimplemented from DtUiElement.
|
protectedvirtual |
|
overrideprotectedvirtual |
Reimplemented from DtUiElement.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
overrideprotectedvirtual |
If this item is not enabled it cannot be modified.
Reimplemented from DtUiElement.
|
protectedvirtual |
|
signal |
|
signal |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
| QVBoxLayout* DtUiGraphDataWidget::myMainLayout |
| QwtPlot* DtUiGraphDataWidget::myGraph |
| QLabel* DtUiGraphDataWidget::myGraphDataLabel |
| QWidget* DtUiGraphDataWidget::myGraphDataCanvas |
| QTableWidget* DtUiGraphDataWidget::myGraphData |
| QHBoxLayout* DtUiGraphDataWidget::myTopLineLayout |
| QHBoxLayout* DtUiGraphDataWidget::myButtonLayout |
| QVBoxLayout* DtUiGraphDataWidget::myTableLayout |
| QHBoxLayout* DtUiGraphDataWidget::myTableButtons |
| QToolButton* DtUiGraphDataWidget::myAddRange |
| QToolButton* DtUiGraphDataWidget::myEditRange |
| QToolButton* DtUiGraphDataWidget::myRemoveRange |
| QDoubleValidator* DtUiGraphDataWidget::myRangeValidator |
| QDoubleValidator* DtUiGraphDataWidget::myCoefficientValidator |
| QLabel* DtUiGraphDataWidget::myComboLabel |
| QListWidget* DtUiGraphDataWidget::myDataTypes |
| DtPlotPicker* DtUiGraphDataWidget::myPlotPicker |
| QToolButton* DtUiGraphDataWidget::myChangeToCoefficient |
| QToolButton* DtUiGraphDataWidget::myChangeToLookup |
| QWidget* DtUiGraphDataWidget::myButtonLine |
|
protected |
Keeps track of changes when user is moving the plot line.
|
protected |
|
protected |
|
protected |
Display multi rows of the graph data table–used for damage widget Default is false most cases you only show the data for the selected plot.
|
protected |
Set this to true if you do not want to display values as a percentage Will display value unmodified. Default is false;.
Set this to something higher than zero to allow for differnt graphs to use different colors. Default is 0.
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |