WAPlots Class: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Template:APIClass|WAPlots Class| }}
{{Template:API}}{{Template:APIBreadcrumb}}
{{Template:WAPlots Class.Cmt}}
 
 
Represents a plot based on a [[CModel Class|cModel]], [[WeibullDataSet Class|WeibullDataSet]], or [[ALTADataSet Class|ALTADataSet]] object.


== Constructors==
== Constructors==
*WAPlots {{APIComment|Creates a new WAPlots object.}}
{| {{APITable}}
|-
| style="width: 180px;"|WAPlots||Creates an instance of the WAPlots class.
|}
 


== Methods  ==
== Methods  ==
*[[WAPlots.AddDataset|AddDataset( WADataSet )]] {{APIComment|{{Template:WAPlots.AddDataSet.Cmt}}}}
{| {{APITable}}
*[[WAPlots.CreatePlot|CreatePlot( WAPlotType, [WAPlotSettings], [Integer], [Integer] )]] {{APIComment|{{Template:WAPlots.CreatePlot.Cmt}}}}
|-
*[[WAPlots.CreatePlotVB6|CreatePlotVB6( WAPlotType, [WAPlotSettings], [Integer], [Integer] )]] {{APIComment|{{Template:WAPlots.CreatePlotVB6.Cmt}}}}
| style="width: 180px;"|[[WAPlots.AddDataset|AddDataset]]||{{:WAPlots.AddDataset}}
*[[WAPlots.Clear|Clear]] {{APIComment|{{Template:WAPlots.Clear.Cmt}}}}
|-
|[[WAPlots.AddModel|AddModel]]||{{:WAPlots.AddModel}}
|-
|[[WAPlots.Clear|Clear]]||{{:WAPlots.Clear}}
|-
|[[WAPlots.CreatePlot|CreatePlot]]||{{:WAPlots.CreatePlot}}
|-
|[[WAPlots.CreatePlotVB6|CreatePlotVB6]]||{{:WAPlots.CreatePlotVB6}}
|}
 


== Properties ==
== Properties ==
*ErrorHappened (as ''boolean'') {{APIComment|Whether an error happened during the creation of the plot.}}
{| {{APITable}}
*ErrorMessage (as ''string'') {{APIComment|The error that happened during the creation of the plot. Set only if ErrorHappened is true.}}
|-
 
| style="width: 180px;"|ErrorHappened||Indicates whether an error occurred during the creation of the plot. '''Boolean'''. Read-only.
== Usage Example ==
|-
{{APIComment|'Create a new Weibull/ALTA Plot instance. See [[WAPlots.CreatePlot|CreatePlot]].}}
|ErrorMessage||Gets the description of the error that occurred during the creation of the plot. Applies only if <code>ErrorHappened</code> is true. '''String'''.
  Dim WeibullALTAPlot As New WAPlots
|}
 
{{APIComment|'Declare a WeibullDataSet. See [[WeibullDataSet Class|WeibullDataSet]].}}
  Dim WDS As New WeibullDataSet
 
{{APIComment|'Add values to the raw data. See [[WeibullDataSet.AddFailure|AddFailure]].}}
  WDS.AddFailure(1, 1)
  WDS.AddFailure(2, 1)
  WDS.AddFailure(3, 1)
 
{{APIComment|'Add the WeibullDataSet to the WAPlots.}}
  WeibullALTAPlot.AddDataset(WDS)
{{APIComment|'Create a Probability plot. See [[WAPlotType Enumeration|WAPlotType]] for plot types.}}
  Dim FinalPlot As Bitmap = WeibullALTAPlot.CreatePlot(WAPlotType.Probability)

Latest revision as of 15:25, 6 July 2016

APIWiki.png


Member of: SynthesisAPI


Represents a plot based on a cModel, WeibullDataSet, or ALTADataSet object.

Constructors

Name Description
WAPlots Creates an instance of the WAPlots class.


Methods

Name Description
AddDataset Adds a WeibullDataSet or ALTADataSet object to the plot.
AddModel Adds a cModel object to the plot.
Clear Removes the object that was added to the plot, which is required before a new object can be added.
CreatePlot Returns a bitmap object that represents the plot. (.NET only)
CreatePlotVB6 Returns a bitmap object that represents the plot. (VBA/VB6 only.)


Properties

Name Description
ErrorHappened Indicates whether an error occurred during the creation of the plot. Boolean. Read-only.
ErrorMessage Gets the description of the error that occurred during the creation of the plot. Applies only if ErrorHappened is true. String.