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

📄 iplotaxis.hpp

📁 Iocomp Ultra Pack v3.0.2 Sources.For.Delphi 数据显示编程插件,可用于工业控制
💻 HPP
📖 第 1 页 / 共 2 页
字号:
	void __fastcall SetCartesianStyle(const TiPlotCartesianStyle Value);
	void __fastcall SetCartesianChildRefAxisName(const AnsiString Value);
	void __fastcall SetCartesianChildRefValue(const double Value);
	void __fastcall SetAlignRefAxisName(const AnsiString Value);
	void __fastcall SetGridLinesVisible(const bool Value);
	void __fastcall SetCursorDateTimeFormat(const AnsiString Value);
	void __fastcall SetCursorFormatStyle(const TiPlotTextFormat Value);
	void __fastcall SetCursorPrecisionStyle(const Itypes::TiPrecisionStyle Value);
	void __fastcall SetCursorPrecision(const int Value);
	void __fastcall SetCursorUseDefaultFormat(const bool Value);
	void __fastcall SetCursorMinLength(const double Value);
	void __fastcall SetCursorMinLengthAutoAdjust(const bool Value);
	void __fastcall SetLegendUseDefaultFormat(const bool Value);
	void __fastcall SetLegendFormatStyle(const TiPlotTextFormat Value);
	void __fastcall SetLegendDateTimeFormat(const AnsiString Value);
	void __fastcall SetLegendPrecisionStyle(const Itypes::TiPrecisionStyle Value);
	void __fastcall SetLegendPrecision(const int Value);
	void __fastcall SetLegendMinLength(const double Value);
	void __fastcall SetLegendMinLengthAutoAdjust(const bool Value);
	void __fastcall SetTickListCustom(const bool Value);
	int __fastcall GetMinPixels(void);
	int __fastcall GetMaxPixels(void);
	int __fastcall GetTickListCount(void);
	TiPlotTickObject* __fastcall GetTickObject(int Index);
	TiPlotAxis* __fastcall GetCartesianRefAxis(void);
	TiPlotAxis* __fastcall GetAlignRefAxis(void);
	int __fastcall TickDiv(int Count, int Divisor);
	AnsiString __fastcall GetLabelTextAdjust(const double Value);
	AnsiString __fastcall GetTickListItemLabel(int Index);
	double __fastcall GetTickListItemPosition(int Index);
	TiPlotTickType __fastcall GetTickListItemStyle(int Index);
	void __fastcall SetTickListItemLabel(int Index, const AnsiString Value);
	void __fastcall SetTickListItemPosition(int Index, const double Value);
	void __fastcall SetTickListItemStyle(int Index, const TiPlotTickType Value);
	
protected:
	virtual void __fastcall DefineProperties(Classes::TFiler* Filer);
	void __fastcall WriteSpan(Classes::TWriter* Writer);
	void __fastcall ReadSpan(Classes::TReader* Reader);
	void __fastcall WriteLabelSeperation(Classes::TWriter* Writer);
	void __fastcall ReadLabelSeperation(Classes::TReader* Reader);
	void __fastcall WriteTitleMargin(Classes::TWriter* Writer);
	void __fastcall ReadTitleMargin(Classes::TReader* Reader);
	virtual void __fastcall NotificationSetFocus(System::TObject* Sender);
	virtual void __fastcall NotificationRemove(System::TObject* Sender);
	virtual void __fastcall NotificationRename(System::TObject* Sender);
	void __fastcall TrackingEnabledMenuItemClick(System::TObject* Sender);
	void __fastcall UpdateResumeValuesMenuItemClick(System::TObject* Sender);
	void __fastcall ZoomToFitClick(System::TObject* Sender);
	void __fastcall CalcTicks(const Graphics::TCanvas* Canvas);
	void __fastcall CalcTickPixels(void);
	void __fastcall ClearTickList(void);
	void __fastcall CalcScaleRect(const Graphics::TCanvas* Canvas);
	void __fastcall CalcLinearTicks(const Graphics::TCanvas* Canvas, int MaxMajorTicks, int &MajorCount, double &MajorStepValue);
	void __fastcall CalcPrice32Ticks(const Graphics::TCanvas* Canvas, int MaxMajorTicks, int &MajorCount, double &MajorStepValue);
	void __fastcall CalcDateTimeTicks(const Graphics::TCanvas* Canvas, int MaxMajorTicks, int &MajorCount, double &MajorStepValue);
	void __fastcall CalcLog10Ticks(const Graphics::TCanvas* Canvas, int MaxMajorTicks);
	void __fastcall AddTick(double Value, TiPlotTickType Style);
	int __fastcall GetSpanLength(void);
	virtual Controls::TCursor __fastcall GetMousePointer(const Types::TPoint &APoint);
	TiPlotAxisMode __fastcall GetActualMode(void);
	bool __fastcall PointOnScale(double Value);
	virtual void __fastcall Draw(const Graphics::TCanvas* Canvas, const Graphics::TColor BackGroundColor);
	virtual void __fastcall DrawSetup(const Graphics::TCanvas* Canvas);
	void __fastcall DrawLines(const Graphics::TCanvas* Canvas, const Graphics::TColor BackGroundColor);
	void __fastcall DrawScaleLine(Graphics::TCanvas* Canvas);
	void __fastcall DrawTitle(Graphics::TCanvas* Canvas);
	void __fastcall DrawScaleMajorTick(Graphics::TCanvas* Canvas, TiPlotTickObject* iPlotTickObject);
	void __fastcall DrawScaleMinorTick(Graphics::TCanvas* Canvas, TiPlotTickObject* iPlotTickObject);
	void __fastcall DrawScaleTick(Graphics::TCanvas* Canvas, int PositionPixels, int StartOffset, int StopOffset);
	void __fastcall DrawScaleLabel(Graphics::TCanvas* Canvas, TiPlotTickObject* iPlotTickObject);
	void __fastcall DrawGridLines(Graphics::TCanvas* Canvas, const Types::TRect &ARect, bool ShowMajors, bool ShowMinors, TiPlotGridLineStyle MajorStyle, TiPlotGridLineStyle MinorStyle, Graphics::TColor MajorColor, Graphics::TColor MinorColor, int MajorWidth, int MinorWidth);
	virtual void __fastcall AddMenuItems(Menus::TPopupMenu* PopupMenu);
	virtual void __fastcall DoMouseHint(const Iplotobjects::TiPlotMouseData &MouseData, Iplotobjects::TiHintData &HintData);
	virtual void __fastcall DoMouseLeft(const Iplotobjects::TiPlotMouseData &MouseData);
	virtual void __fastcall DoMouseMove(const Iplotobjects::TiPlotMouseData &MouseData);
	virtual void __fastcall DoMouseUp(const Iplotobjects::TiPlotMouseData &MouseData);
	virtual void __fastcall iKeyDown(Word &CharCode, Classes::TShiftState Shift);
	virtual bool __fastcall iMouseWheel(int WheelDelta, Classes::TShiftState Shift, const Types::TPoint &MousePos);
	virtual bool __fastcall iMouseHitTest(const Iplotobjects::TiPlotMouseData &MouseData);
	virtual int __fastcall GetRequiredWidth(const Graphics::TCanvas* Canvas);
	virtual int __fastcall GetRequiredLengthGaurd(const Graphics::TCanvas* Canvas);
	int __fastcall GetRequiredLabelLength(const Graphics::TCanvas* Canvas, Graphics::TFont* AFont);
	int __fastcall GetRequiredLegendLength(const Graphics::TCanvas* Canvas, Graphics::TFont* AFont);
	int __fastcall GetRequiredCursorLength(const Graphics::TCanvas* Canvas, Graphics::TFont* AFont);
	double __fastcall PixelsToPositionDouble(double Value);
	void __fastcall ZoomRect(const Types::TRect &ARect);
	void __fastcall ScrollPercentByReference(double RefMin, double RefSpan, double RefMax, double Percent);
	void __fastcall ZoomPercentByReference(double RefMin, double RefSpan, double RefMax, double Percent);
	__property Types::TRect ScaleRect = {read=FScaleRect};
	__property Types::TRect FocusRect = {read=FFocusRect};
	__property TiPlotAxis* CartesianRefAxis = {read=GetCartesianRefAxis};
	__property TiPlotAxis* AlignRefAxis = {read=GetAlignRefAxis};
	__property TiPlotTickObject* TickObject[int Index] = {read=GetTickObject};
	AnsiString __fastcall GetText(const double Value, const TiPlotTextFormat FormatStyle, const AnsiString DateTimeFormat, const Itypes::TiPrecisionStyle PrecisionStyle, const int Precision, const bool MinLengthAutoAdjust, double &MinLength);
	
public:
	__fastcall virtual TiPlotAxis(System::TObject* AOwner, Classes::TNotifyEvent AOnChange, Classes::TNotifyEvent AOnInsert, Classes::TNotifyEvent AOnRemove, Classes::TNotifyEvent AOnRename);
	__fastcall virtual ~TiPlotAxis(void);
	AnsiString __fastcall GetLabelText(const double Value);
	AnsiString __fastcall GetCursorText(const double Value);
	AnsiString __fastcall GetCursorValueText(const double Value);
	AnsiString __fastcall GetLegendText(const double Value);
	void __fastcall SetMinSpan(double NewMin, double NewSpan);
	void __fastcall NewTrackingData(double Value);
	void __fastcall ResetFirstAlign(void);
	void __fastcall UpdateResumeValues(void);
	void __fastcall Zoom(double Value);
	void __fastcall ZoomToFit(void);
	void __fastcall ZoomToFitFast(void);
	void __fastcall TickListClear(void);
	int __fastcall TickListAdd(double Position, AnsiString ALabel, TiPlotTickType Style);
	__property bool TickListCustom = {read=FTickListCustom, write=SetTickListCustom, nodefault};
	__property int TickListCount = {read=GetTickListCount, nodefault};
	__property AnsiString TickListItemLabel[int Index] = {read=GetTickListItemLabel, write=SetTickListItemLabel};
	__property double TickListItemPosition[int Index] = {read=GetTickListItemPosition, write=SetTickListItemPosition};
	__property TiPlotTickType TickListItemStyle[int Index] = {read=GetTickListItemStyle, write=SetTickListItemStyle};
	int __fastcall PositionToPixels(const double Value);
	int __fastcall WidthToPixels(const double Value);
	double __fastcall PixelsToPosition(const int Value);
	double __fastcall PercentToPosition(const double Value);
	double __fastcall PositionToPercent(const double Value);
	bool __fastcall ValueOnScale(const double Value);
	__property int MinPixels = {read=GetMinPixels, nodefault};
	__property int MaxPixels = {read=GetMaxPixels, nodefault};
	__property TiPlotAxisMode Mode = {read=FMode, write=SetMode, nodefault};
	__property double Max = {read=GetMax};
	
__published:
	__property double Min = {read=FMin, write=SetMin};
	__property double Span = {read=FSpan, write=SetSpan};
	__property double DesiredStart = {read=FDesiredStart, write=SetDesiredStart};
	__property double DesiredIncrement = {read=FDesiredIncrement, write=SetDesiredIncrement};
	__property bool ReverseScale = {read=FReverseScale, write=SetReverseScale, default=0};
	__property int InnerMargin = {read=FInnerMargin, write=SetInnerMargin, default=5};
	__property int OuterMargin = {read=FOuterMargin, write=SetOuterMargin, default=5};
	__property AnsiString Title = {read=FTitle, write=SetTitle};
	__property double TitleMargin = {read=FTitleMargin, write=SetTitleMargin};
	__property Graphics::TFont* TitleFont = {read=FTitleFont, write=SetTitleFont};
	__property bool TitleShow = {read=FTitleShow, write=SetTitleShow, default=0};
	__property bool TitleRotated = {read=FTitleRotated, write=SetTitleRotated, default=0};
	__property int MajorLength = {read=FMajorLength, write=SetMajorLength, default=7};
	__property int MinorLength = {read=FMinorLength, write=SetMinorLength, default=3};
	__property int MinorCount = {read=FMinorCount, write=SetMinorCount, default=1};
	__property bool LabelsVisible = {read=FLabelsVisible, write=SetLabelsVisible, default=1};
	__property double LabelsMargin = {read=FLabelsMargin, write=SetLabelsMargin};
	__property Graphics::TFont* LabelsFont = {read=FLabelsFont, write=SetLabelsFont};
	__property double LabelSeparation = {read=FLabelSeparation, write=SetLabelSeparation};
	__property Itypes::TiRotationAngle LabelsRotation = {read=FLabelsRotation, write=SetLabelsRotation, nodefault};
	__property int LabelsPrecision = {read=FLabelsPrecision, write=SetLabelsPrecision, default=3};
	__property Itypes::TiPrecisionStyle LabelsPrecisionStyle = {read=FLabelsPrecisionStyle, write=SetLabelsPrecisionStyle, default=0};
	__property TiPlotTextFormat LabelsFormatStyle = {read=FLabelsFormatStyle, write=SetLabelsFormatStyle, default=0};
	__property AnsiString DateTimeFormat = {read=FDateTimeFormat, write=SetDateTimeFormat};
	__property double LabelsMinLength = {read=FLabelsMinLength, write=SetLabelsMinLength};
	__property bool LabelsMinLengthAutoAdjust = {read=FLabelsMinLengthAutoAdjust, write=SetLabelsMinLengthAutoAdjust, default=0};
	__property bool ScaleLineShow = {read=FScaleLineShow, write=SetScaleLineShow, nodefault};
	__property bool ScaleLinesShow = {read=FScaleLinesShow, write=SetScaleLinesShow, default=1};
	__property Graphics::TColor ScaleLinesColor = {read=FScaleLinesColor, write=SetScaleLinesColor, default=16777215};
	__property double StackingEndsMargin = {read=FStackingEndsMargin, write=SetStackingEndsMargin};
	__property TiPlotScaleType ScaleType = {read=FScaleType, write=SetScaleType, default=0};
	__property bool TrackingEnabled = {read=FTrackingEnabled, write=SetTrackingEnabled, default=1};
	__property TiPlotTrackingStyle TrackingStyle = {read=FTrackingStyle, write=SetTrackingStyle, nodefault};
	__property TiPlotAlignFirstStyle TrackingAlignFirstStyle = {read=FTrackingAlignFirstStyle, write=SetTrackingAlignFirstStyle, default=0};
	__property double TrackingScrollCompressMax = {read=FTrackingScrollCompressMax, write=SetTrackingScrollCompressMax};
	__property bool CursorUseDefaultFormat = {read=FCursorUseDefaultFormat, write=SetCursorUseDefaultFormat, default=1};
	__property TiPlotTextFormat CursorFormatStyle = {read=FCursorFormatStyle, write=SetCursorFormatStyle, default=0};
	__property AnsiString CursorDateTimeFormat = {read=FCursorDateTimeFormat, write=SetCursorDateTimeFormat};
	__property Itypes::TiPrecisionStyle CursorPrecisionStyle = {read=FCursorPrecisionStyle, write=SetCursorPrecisionStyle, default=0};
	__property int CursorPrecision = {read=FCursorPrecision, write=SetCursorPrecision, nodefault};
	__property double CursorMinLength = {read=FCursorMinLength, write=SetCursorMinLength};
	__property bool CursorMinLengthAutoAdjust = {read=FCursorMinLengthAutoAdjust, write=SetCursorMinLengthAutoAdjust, default=0};
	__property bool LegendUseDefaultFormat = {read=FLegendUseDefaultFormat, write=SetLegendUseDefaultFormat, default=1};
	__property TiPlotTextFormat LegendFormatStyle = {read=FLegendFormatStyle, write=SetLegendFormatStyle, default=0};
	__property AnsiString LegendDateTimeFormat = {read=FLegendDateTimeFormat, write=SetLegendDateTimeFormat};
	__property Itypes::TiPrecisionStyle LegendPrecisionStyle = {read=FLegendPrecisionStyle, write=SetLegendPrecisionStyle, default=0};
	__property int LegendPrecision = {read=FLegendPrecision, write=SetLegendPrecision, nodefault};
	__property double LegendMinLength = {read=FLegendMinLength, write=SetLegendMinLength};
	__property bool LegendMinLengthAutoAdjust = {read=FLegendMinLengthAutoAdjust, write=SetLegendMinLengthAutoAdjust, default=0};
	__property double CursorScaler = {read=FCursorScaler, write=SetCursorScaler};
	__property bool ScrollMinMaxEnabled = {read=FScrollMinMaxEnabled, write=SetScrollMinMaxEnabled, nodefault};
	__property double ScrollMax = {read=FScrollMax, write=SetScrollMax};
	__property double ScrollMin = {read=FScrollMin, write=SetScrollMin};
	__property bool RestoreValuesOnResume = {read=FRestoreValuesOnResume, write=SetRestoreValuesOnResume, nodefault};
	__property bool MasterUIInput = {read=FMasterUIInput, write=SetMasterUIInput, nodefault};
	__property TiPlotCartesianStyle CartesianStyle = {read=FCartesianStyle, write=SetCartesianStyle, nodefault};
	__property AnsiString CartesianChildRefAxisName = {read=FCartesianChildRefAxisName, write=SetCartesianChildRefAxisName};
	__property double CartesianChildRefValue = {read=FCartesianChildRefValue, write=SetCartesianChildRefValue};
	__property AnsiString AlignRefAxisName = {read=FAlignRefAxisName, write=SetAlignRefAxisName};
	__property bool GridLinesVisible = {read=FGridLinesVisible, write=SetGridLinesVisible, nodefault};
	__property ForceStacking ;
};


class DELPHICLASS TiPlotXAxis;
class PASCALIMPLEMENTATION TiPlotXAxis : public TiPlotAxis 
{
	typedef TiPlotAxis inherited;
	
public:
	__fastcall virtual TiPlotXAxis(System::TObject* AOwner, Classes::TNotifyEvent AOnChange, Classes::TNotifyEvent AOnInsert, Classes::TNotifyEvent AOnRemove, Classes::TNotifyEvent AOnRename);
public:
	#pragma option push -w-inl
	/* TiPlotAxis.Destroy */ inline __fastcall virtual ~TiPlotXAxis(void) { }
	#pragma option pop
	
};


class DELPHICLASS TiPlotYAxis;
class PASCALIMPLEMENTATION TiPlotYAxis : public TiPlotAxis 
{
	typedef TiPlotAxis inherited;
	
public:
	__fastcall virtual TiPlotYAxis(System::TObject* AOwner, Classes::TNotifyEvent AOnChange, Classes::TNotifyEvent AOnInsert, Classes::TNotifyEvent AOnRemove, Classes::TNotifyEvent AOnRename);
public:
	#pragma option push -w-inl
	/* TiPlotAxis.Destroy */ inline __fastcall virtual ~TiPlotYAxis(void) { }
	#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;
static const Extended TIME_MILLISECOND = 1.157407E-08;

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

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

⌨️ 快捷键说明

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