⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 istripchart.hpp

📁 Iocomp Ultra Pack v3.0.2 Sources.For.Delphi 数据显示编程插件,可用于工业控制
💻 HPP
📖 第 1 页 / 共 3 页
字号:
	void __fastcall AddChannel(AnsiString Title, Graphics::TColor AColor, Itypes::TiChannelLineStyle LineStyle, int LineWidth);
	void __fastcall RemoveChannel(int Index);
	void __fastcall RemoveAllChannels(void);
	__property int ChannelCount = {read=GetChannelCount, nodefault};
	__property AnsiString ChannelTitle[int Index] = {read=GetChannelTitle, write=SetChannelTitle};
	__property Graphics::TColor ChannelColor[int Index] = {read=GetChannelColor, write=SetChannelColor};
	__property Itypes::TiChannelLineStyle ChannelLineStyle[int Index] = {read=GetChannelLineStyle, write=SetChannelLineStyle};
	__property int ChannelLineWidth[int Index] = {read=GetChannelLineWidth, write=SetChannelLineWidth};
	__property bool ChannelVisible[int Index] = {read=GetChannelVisible, write=SetChannelVisible};
	__property bool ChannelVisibleInLegend[int Index] = {read=GetChannelVisibleInLegend, write=SetChannelVisibleInLegend};
	__property bool ChannelUseFixedAxis[int Index] = {read=GetChannelUseFixedAxis, write=SetChannelUseFixedAxis};
	__property double ChannelMin[int Index] = {read=GetChannelMin};
	__property double ChannelMax[int Index] = {read=GetChannelMax};
	__property double ChannelMean[int Index] = {read=GetChannelMean};
	__property double ChannelData[int Channel][int Index] = {read=GetChannelData, write=SetChannelData};
	void __fastcall AddLabelChannel(double YPosition);
	void __fastcall RemoveLabelChannel(int Index);
	void __fastcall RemoveAllLabelChannels(void);
	__property int LabelChannelCount = {read=GetLabelChannelCount, nodefault};
	__property AnsiString LabelChannelText[int Channel][int Index] = {read=GetLabelChannelText, write=SetLabelChannelText};
	__property double LabelChannelYPosition[int Index] = {read=GetLabelYPosition, write=SetLabelYPosition};
	__property AnsiString LabelChannelFontName[int Index] = {read=GetLabelChannelFontName, write=SetLabelChannelFontName};
	__property int LabelChannelFontSize[int Index] = {read=GetLabelChannelFontSize, write=SetLabelChannelFontSize};
	__property Graphics::TColor LabelChannelFontColor[int Index] = {read=GetLabelChannelFontColor, write=SetLabelChannelFontColor};
	__property bool LabelChannelFontBold[int Index] = {read=GetLabelChannelFontBold, write=SetLabelChannelFontBold};
	__property bool LabelChannelFontItalic[int Index] = {read=GetLabelChannelFontItalic, write=SetLabelChannelFontItalic};
	__property bool LabelChannelFontUnderLine[int Index] = {read=GetLabelChannelFontUnderLine, write=SetLabelChannelFontUnderLine};
	__property bool LabelChannelFontStrikeOut[int Index] = {read=GetLabelChannelFontStrikeOut, write=SetLabelChannelFontStrikeOut};
	__property int CursorIndex = {read=FCursorIndex, write=SetCursorIndex, nodefault};
	virtual void __fastcall EndUpdate(void);
	void __fastcall ClearData(void);
	void __fastcall SetBufferSize(int Value);
	void __fastcall SetRingBufferSize(int Value);
	void __fastcall SetChannelControlLimits(int Channel, bool ShowUpper, double UpperValue, Itypes::TiChannelLineStyle UpperLineStyle, bool ShowLower, double LowerValue, Itypes::TiChannelLineStyle LowerLineStyle);
	void __fastcall SetChannelWarningLimits(int Channel, bool ShowUpper, double UpperValue, Itypes::TiChannelLineStyle UpperLineStyle, bool ShowLower, double LowerValue, Itypes::TiChannelLineStyle LowerLineStyle);
	void __fastcall SetLimitLinesOnTop(const bool Value);
	void __fastcall SetGridLinesOnTop(const bool Value);
	__property System::TDateTime ElapsedStartTime = {read=FElapsedStartTime, write=FElapsedStartTime};
	__property bool ChannelControlLimitUpperShow[int Index] = {read=GetChannelControlLimitUpperShow, write=SetChannelControlLimitUpperShow};
	__property double ChannelControlLimitUpperValue[int Index] = {read=GetChannelControlLimitUpperValue, write=SetChannelControlLimitUpperValue};
	__property Graphics::TColor ChannelControlLimitUpperColor[int Index] = {read=GetChannelControlLimitUpperColor, write=SetChannelControlLimitUpperColor};
	__property Itypes::TiChannelLineStyle ChannelControlLimitUpperLineStyle[int Index] = {read=GetChannelControlLimitUpperLineStyle, write=SetChannelControlLimitUpperLineStyle};
	__property int ChannelControlLimitUpperLineWidth[int Index] = {read=GetChannelControlLimitUpperLineWidth, write=SetChannelControlLimitUpperLineWidth};
	__property bool ChannelControlLimitLowerShow[int Index] = {read=GetChannelControlLimitLowerShow, write=SetChannelControlLimitLowerShow};
	__property double ChannelControlLimitLowerValue[int Index] = {read=GetChannelControlLimitLowerValue, write=SetChannelControlLimitLowerValue};
	__property Graphics::TColor ChannelControlLimitLowerColor[int Index] = {read=GetChannelControlLimitLowerColor, write=SetChannelControlLimitLowerColor};
	__property Itypes::TiChannelLineStyle ChannelControlLimitLowerLineStyle[int Index] = {read=GetChannelControlLimitLowerLineStyle, write=SetChannelControlLimitLowerLineStyle};
	__property int ChannelControlLimitLowerLineWidth[int Index] = {read=GetChannelControlLimitLowerLineWidth, write=SetChannelControlLimitLowerLineWidth};
	__property bool ChannelWarningLimitUpperShow[int Index] = {read=GetChannelWarningLimitUpperShow, write=SetChannelWarningLimitUpperShow};
	__property double ChannelWarningLimitUpperValue[int Index] = {read=GetChannelWarningLimitUpperValue, write=SetChannelWarningLimitUpperValue};
	__property Graphics::TColor ChannelWarningLimitUpperColor[int Index] = {read=GetChannelWarningLimitUpperColor, write=SetChannelWarningLimitUpperColor};
	__property Itypes::TiChannelLineStyle ChannelWarningLimitUpperLineStyle[int Index] = {read=GetChannelWarningLimitUpperLineStyle, write=SetChannelWarningLimitUpperLineStyle};
	__property int ChannelWarningLimitUpperLineWidth[int Index] = {read=GetChannelWarningLimitUpperLineWidth, write=SetChannelWarningLimitUpperLineWidth};
	__property bool ChannelWarningLimitLowerShow[int Index] = {read=GetChannelWarningLimitLowerShow, write=SetChannelWarningLimitLowerShow};
	__property double ChannelWarningLimitLowerValue[int Index] = {read=GetChannelWarningLimitLowerValue, write=SetChannelWarningLimitLowerValue};
	__property Graphics::TColor ChannelWarningLimitLowerColor[int Index] = {read=GetChannelWarningLimitLowerColor, write=SetChannelWarningLimitLowerColor};
	__property Itypes::TiChannelLineStyle ChannelWarningLimitLowerLineStyle[int Index] = {read=GetChannelWarningLimitLowerLineStyle, write=SetChannelWarningLimitLowerLineStyle};
	__property int ChannelWarningLimitLowerLineWidth[int Index] = {read=GetChannelWarningLimitLowerLineWidth, write=SetChannelWarningLimitLowerLineWidth};
	void __fastcall SetChannelsData(int Index, const Variant &Data);
	void __fastcall AddData(double Interval, const Variant &Data);
	void __fastcall SetChannelDataNull(int Channel, int Index);
	bool __fastcall GetChannelDataIsNull(int Channel, int Index, double &Data);
	Itypes::TiChannelDataSatus __fastcall GetChannelDataStatus(int Channel, int Index);
	void __fastcall AddVerticalLine(double Position, Graphics::TColor Color, int Width, Itypes::TiChannelLineStyle Style);
	void __fastcall RemoveAllVerticalLines(void);
	Graphics::TColor __fastcall GetNextChannelColor(void);
	double __fastcall GetNow(void);
	int __fastcall AddIndexTime(double Time);
	int __fastcall AddIndexTimeNow(void);
	int __fastcall AddIndexTimeElapsedNow(void);
	__property double IndexTime[int Index] = {read=GetIndexTime};
	__property int IndexCount = {read=GetIndexCount, nodefault};
	__property double MinXAxisData = {read=FMinXAxisData};
	__property double MaxXAxisData = {read=FMaxXAxisData};
	__property double MinYAxisData = {read=FMinYAxisData};
	__property double MaxYAxisData = {read=FMaxYAxisData};
	__property int DisplayStartIndex = {read=FPlotStartIndex, nodefault};
	__property int DisplayStopIndex = {read=FPlotStopIndex, nodefault};
	__property Graphics::TPicture* SnapShotPicture = {read=GetSnapShotPicture};
	void __fastcall CopyToClipBoard(void);
	void __fastcall SaveToMetaFile(AnsiString FileName);
	void __fastcall SaveToBitmap(AnsiString FileName);
	void __fastcall SaveToXMLFile(AnsiString FileName);
	void __fastcall LoadFromXMLFile(AnsiString FileName);
	void __fastcall ClearAllXMLComments(void);
	void __fastcall AddXMLComment(AnsiString ElementName, AnsiString ElementValue);
	void __fastcall ResetElapsedStartTime(void);
	void __fastcall PrintChart(void);
	void __fastcall PrinterClearCommentLines(void);
	void __fastcall PrinterAddCommentLine(AnsiString Value);
	void __fastcall ScrollXAxis(double Value);
	void __fastcall ScrollYAxis(double Value);
	void __fastcall SetXAxisMinMax(double Min, double Max);
	void __fastcall SetYAxisMinMax(double Min, double Max);
	void __fastcall ZoomXAxis(double Value);
	void __fastcall ZoomYAxis(double Value);
	
__published:
	__property Graphics::TColor AxisGridColor = {read=FAxisGridColor, write=SetAxisGridColor, default=32768};
	__property AnsiString TitleText = {read=FTitleText, write=SetTitleText};
	__property int TitleMargin = {read=FTitleMargin, write=SetTitleMargin, default=0};
	__property Graphics::TFont* TitleFont = {read=FTitleFont, write=SetTitleFont};
	__property bool XAxisShow = {read=FXAxisShow, write=SetXAxisShow, default=1};
	__property double XAxisMin = {read=FXAxisMin, write=SetXAxisMin};
	__property double XAxisMax = {read=FXAxisMax, write=SetXAxisMax};
	__property bool XAxisDateTimeEnabled = {read=FXAxisDateTimeEnabled, write=SetXAxisDateTimeEnabled, default=0};
	__property AnsiString XAxisDateTimeFormatString = {read=FXAxisDateTimeFormatString, write=SetXAxisDateTimeFormatString};
	__property int XAxisMargin = {read=FXAxisMargin, write=SetXAxisMargin, default=5};
	__property int XAxisLabelMargin = {read=FXAxisLabelMargin, write=SetXAxisLabelMargin, default=5};
	__property Graphics::TFont* XAxisLabelFont = {read=FXAxisLabelFont, write=SetXAxisLabelFont};
	__property int XAxisLabelPrecision = {read=FXAxisLabelPrecision, write=SetXAxisLabelPrecision, default=2};
	__property AnsiString XAxisTitle = {read=FXAxisTitle, write=SetXAxisTitle};
	__property int XAxisTitleMargin = {read=FXAxisTitleMargin, write=SetXAxisTitleMargin, default=0};
	__property Graphics::TFont* XAxisTitleFont = {read=FXAxisTitleFont, write=SetXAxisTitleFont};
	__property int XAxisTickMajorCount = {read=FXAxisTickMajorCount, write=SetXAxisTickMajorCount, default=11};
	__property int XAxisTickMajorLength = {read=FXAxisTickMajorLength, write=SetXAxisTickMajorLength, default=7};
	__property Graphics::TColor XAxisTickMajorColor = {read=FXAxisTickMajorColor, write=SetXAxisTickMajorColor, default=16777215};
	__property int XAxisTickMinorCount = {read=FXAxisTickMinorCount, write=SetXAxisTickMinorCount, default=4};
	__property int XAxisTickMinorLength = {read=FXAxisTickMinorLength, write=SetXAxisTickMinorLength, default=3};
	__property Graphics::TColor XAxisTickMinorColor = {read=FXAxisTickMinorColor, write=SetXAxisTickMinorColor, default=16777215};
	__property bool YAxisShow = {read=FYAxisShow, write=SetYAxisShow, default=1};
	__property double YAxisMin = {read=FYAxisMin, write=SetYAxisMin};
	__property double YAxisMax = {read=FYAxisMax, write=SetYAxisMax};
	__property int YAxisMargin = {read=FYAxisMargin, write=SetYAxisMargin, default=5};
	__property int YAxisLabelMargin = {read=FYAxisLabelMargin, write=SetYAxisLabelMargin, default=5};
	__property Graphics::TFont* YAxisLabelFont = {read=FYAxisLabelFont, write=SetYAxisLabelFont};
	__property int YAxisLabelPrecision = {read=FYAxisLabelPrecision, write=SetYAxisLabelPrecision, default=3};
	__property AnsiString YAxisTitle = {read=FYAxisTitle, write=SetYAxisTitle};
	__property int YAxisTitleMargin = {read=FYAxisTitleMargin, write=SetYAxisTitleMargin, default=0};
	__property Graphics::TFont* YAxisTitleFont = {read=FYAxisTitleFont, write=SetYAxisTitleFont};
	__property int YAxisTickMajorCount = {read=FYAxisTickMajorCount, write=SetYAxisTickMajorCount, default=6};
	__property int YAxisTickMajorLength = {read=FYAxisTickMajorLength, write=SetYAxisTickMajorLength, default=7};
	__property Graphics::TColor YAxisTickMajorColor = {read=FYAxisTickMajorColor, write=SetYAxisTickMajorColor, default=16777215};
	__property int YAxisTickMinorCount = {read=FYAxisTickMinorCount, write=SetYAxisTickMinorCount, default=4};
	__property int YAxisTickMinorLength = {read=FYAxisTickMinorLength, write=SetYAxisTickMinorLength, default=3};
	__property Graphics::TColor YAxisTickMinorColor = {read=FYAxisTickMinorColor, write=SetYAxisTickMinorColor, default=16777215};
	__property int YAxisLabelWidth = {read=FYAxisLabelWidth, write=SetYAxisLabelWidth, default=20};
	__property bool YAxisLabelWidthFixed = {read=FYAxisLabelWidthFixed, write=SetYAxisLabelWidthFixed, default=0};
	__property bool YAxisReverseScale = {read=FYAxisReverseScale, write=SetYAxisReverseScale, default=0};
	__property Itypes::TiChannelLineStyle GridLineStyle = {read=FGridLineStyle, write=SetGridLineStyle, default=0};
	__property Graphics::TColor GridBackGroundColor = {read=FGridBackGroundColor, write=SetGridBackGroundColor, default=0};
	__property int OuterMarginLeft = {read=FOuterMarginLeft, write=SetOuterMarginLeft, default=10};
	__property int OuterMarginTop = {read=FOuterMarginTop, write=SetOuterMarginTop, default=10};
	__property int OuterMarginRight = {read=FOuterMarginRight, write=SetOuterMarginRight, default=10};
	__property int OuterMarginBottom = {read=FOuterMarginBottom, write=SetOuterMarginBottom, default=10};
	__property int LegendWidth = {read=FLegendWidth, write=SetLegendWidth, default=80};
	__property int LegendMargin = {read=FLegendMargin, write=SetLegendMargin, default=10};
	__property Graphics::TFont* LegendFont = {read=FLegendFont, write=SetLegendFont};
	__property bool ShowGrid = {read=FShowGrid, write=SetShowGrid, default=1};
	__property bool ShowLegend = {read=FShowLegend, write=SetShowLegend, default=1};
	__property bool ShowToolBar = {read=FShowToolBar, write=SetShowToolBar, default=1};
	__property bool AutoScrollEnabled = {read=FAutoScrollEnabled, write=SetAutoScrollEnabled, default=1};
	__property TiAutoScroll AutoScrollType = {read=FAutoScrollType, write=SetAutoScrollType, default=0};
	__property double AutoScrollStepSize = {read=FAutoScrollStepSize, write=SetAutoScrollStepSize};
	__property TiAutoScrollFirstStyle AutoScrollFirstStyle = {read=FAutoScrollFirstStyle, write=FAutoScrollFirstStyle, default=0};
	__property bool AutoScaleEnabled = {read=FAutoScaleEnabled, write=SetAutoScaleEnabled, default=1};
	__property double AutoScaleHysterisis = {read=FAutoScaleHysterisis, write=SetAutoScaleHysterisis};
	__property bool AutoScaleMinAdjustEnabled = {read=FAutoScaleMinAdjustEnabled, write=SetAutoScaleMinAdjustEnabled, default=1};
	__property bool AutoScaleMaxAdjustEnabled = {read=FAutoScaleMaxAdjustEnabled, write=SetAutoScaleMaxAdjustEnabled, default=1};
	__property Graphics::TFont* ToolBarActiveModeFont = {read=FToolBarActiveModeFont, write=SetToolBarActiveModeFont};
	__property Graphics::TFont* ToolBarInactiveModeFont = {read=FToolBarInactiveModeFont, write=SetToolBarInactiveModeFont};
	__property TiStripChartMode ToolBarMode = {read=FToolBarMode, write=SetToolBarMode, default=0};
	__property int CursorChannel = {read=FCursorChannel, write=SetCursorChannel, default=0};
	__property Graphics::TColor CursorColor = {read=FCursorColor, write=SetCursorColor, default=65535};
	__property Graphics::TColor CursorChannelBackGroundColor = {read=FCursorChannelBackGroundColor, write=SetCursorChannelBackGroundColor, default=65535};
	__property Graphics::TColor CursorChannelFontColor = {read=FCursorChannelFontColor, write=SetCursorChannelFontColor, default=0};
	__property bool CursorHideAllOtherChannels = {read=FCursorHideAllOtherChannels, write=SetCursorHideAllOtherChannels, default=0};
	__property Classes::TNotifyEvent OnModeChange = {read=FOnModeChange, write=FOnModeChange};
	__property Classes::TNotifyEvent OnDataUpdate = {read=FOnDataUpdate, write=FOnDataUpdate};
	__property Classes::TNotifyEvent OnCursorChange = {read=FOnCursorChange, write=FOnCursorChange};
	__property Classes::TNotifyEvent OnCursorIndexChange = {read=FOnCursorIndexChange, write=FOnCursorIndexChange};
	__property Classes::TNotifyEvent OnXAxisMaxChange = {read=FOnXAxisMaxChange, write=FOnXAxisMaxChange};
	__property Classes::TNotifyEvent OnXAxisMinChange = {read=FOnXAxisMinChange, write=FOnXAxisMinChange};
	__property Classes::TNotifyEvent OnYAxisMaxChange = {read=FOnYAxisMaxChange, write=FOnYAxisMaxChange};
	__property Classes::TNotifyEvent OnYAxisMinChange = {read=FOnYAxisMinChange, write=FOnYAxisMinChange};
	__property Printers::TPrinterOrientation PrinterOrientation = {read=FPrinterOrientation, write=FPrinterOrientation, default=0};
	__property double PrinterMarginLeft = {read=FPrinterMarginLeft, write=FPrinterMarginLeft};
	__property double PrinterMarginTop = {read=FPrinterMarginTop, write=FPrinterMarginTop};
	__property double PrinterMarginRight = {read=FPrinterMarginRight, write=FPrinterMarginRight};
	__property double PrinterMarginBottom = {read=FPrinterMarginBottom, write=FPrinterMarginBottom};
	__property bool PrinterShowDialog = {read=FPrinterShowDialog, write=FPrinterShowDialog, default=1};
	__property int MaxBufferSize = {read=FMaxBufferSize, write=SetMaxBufferSize, default=0};
	__property int MinBufferSize = {read=FMinBufferSize, write=SetMinBufferSize, default=0};
	__property bool RestoreXYAxisOnPlotMode = {read=FRestoreXYAxisOnPlotMode, write=FRestoreXYAxisOnPlotMode, default=1};
	__property bool EnableDataDrawMinMax = {read=FEnableDataDrawMinMax, write=SetEnableDataDrawMinMax, default=1};
	__property bool DiscontinuousDataEnabled = {read=FDiscontinuousDataEnabled, write=SetDiscontinuousDataEnabled, default=0};
	__property Itypes::TiPrecisionStyle PrecisionStyle = {read=FPrecisionStyle, write=SetPrecisionStyle, default=0};
	__property bool InterpolateMissingDataPoints = {read=FInterpolateMissingDataPoints, write=SetInterpolateMissingDataPoints, default=1};
	__property Graphics::TFont* PrinterCommentLinesFont = {read=FPrinterCommentLinesFont, write=SetPrinterCommentLinesFont};
	__property double PrinterCommentLineSpacing = {read=FPrinterCommentLineSpacing, write=FPrinterCommentLineSpacing};
	__property double AddYChannel1Now = {read=GetAddYChannel1Now, write=SetAddYChannel1Now, stored=false};
	__property BorderStyle  = {default=2};
	__property BackGroundColor  = {default=0};
	__property Align  = {default=0};
	__property Width  = {default=500};
	__property Height  = {default=250};
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TiStripChart(HWND ParentWindow) : Icustomcomponent::TiCustomComponent(ParentWindow) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------
static const Extended TIME_HOUR = 4.166667E-02;
static const Extended TIME_MINUTE = 6.944444E-04;
static const Extended TIME_SECOND = 1.157407E-05;

}	/* namespace Istripchart */
using namespace Istripchart;
#pragma option pop	// -w-
#pragma option pop	// -Vx

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// iStripChart

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -