📄 qiplotchannel.hpp
字号:
void __fastcall SetHighLowOpenColor(const Qgraphics::TColor Value);
void __fastcall SetHighLowOpenWidth(const double Value);
void __fastcall SetHighLowOpenHeight(const double Value);
void __fastcall SetHighLowCloseShow(const bool Value);
void __fastcall SetHighLowCloseColor(const Qgraphics::TColor Value);
void __fastcall SetHighLowCloseWidth(const double Value);
void __fastcall SetHighLowCloseHeight(const double Value);
void __fastcall SetHighLowShadowColor(const Qgraphics::TColor Value);
void __fastcall SetHighLowBullishColor(const Qgraphics::TColor Value);
void __fastcall SetHighLowBearishColor(const Qgraphics::TColor Value);
double __fastcall GetBarReference(void);
double __fastcall GetBarWidth(void);
Qgraphics::TColor __fastcall GetBarPenColor(void);
int __fastcall GetBarPenWidth(void);
Qgraphics::TPenStyle __fastcall GetBarPenStyle(void);
Qgraphics::TColor __fastcall GetBarBrushColor(void);
Qgraphics::TBrushStyle __fastcall GetBarBrushStyle(void);
double __fastcall GetDataHigh(const int Index);
double __fastcall GetDataLow(const int Index);
double __fastcall GetDataOpen(const int Index);
double __fastcall GetDataClose(const int Index);
bool __fastcall GetDataBarVisible(const int Index);
double __fastcall GetDataBarReference(const int Index);
double __fastcall GetDataBarWidth(const int Index);
Qgraphics::TColor __fastcall GetDataBarPenColor(const int Index);
int __fastcall GetDataBarPenWidth(const int Index);
Qgraphics::TPenStyle __fastcall GetDataBarPenStyle(const int Index);
Qgraphics::TColor __fastcall GetDataBarBrushColor(const int Index);
Qgraphics::TBrushStyle __fastcall GetDataBarBrushStyle(const int Index);
void __fastcall SetDataHigh(const int Index, const double Value);
void __fastcall SetDataLow(const int Index, const double Value);
void __fastcall SetDataOpen(const int Index, const double Value);
void __fastcall SetDataClose(const int Index, const double Value);
void __fastcall SetDataBarVisible(const int Index, const bool Value);
void __fastcall SetDataBarReference(const int Index, const double Value);
void __fastcall SetDataBarWidth(const int Index, const double Value);
void __fastcall SetDataBarPenColor(const int Index, const Qgraphics::TColor Value);
void __fastcall SetDataBarPenWidth(const int Index, const int Value);
void __fastcall SetDataBarPenStyle(const int Index, const Qgraphics::TPenStyle Value);
void __fastcall SetDataBarBrushColor(const int Index, const Qgraphics::TColor Value);
void __fastcall SetDataBarBrushStyle(const int Index, const Qgraphics::TBrushStyle Value);
virtual void __fastcall CalcStartXIndex(void);
virtual void __fastcall CalcStopXIndex(void);
int __fastcall CalcIndex(double TargetValue);
int __fastcall CalcXIndexIncreasing(double TargetValue);
int __fastcall CalcXIndexDecreasing(double TargetValue);
virtual double __fastcall GetVisibleMaxX(void);
virtual double __fastcall GetVisibleMinX(void);
virtual double __fastcall GetVisibleMaxY(void);
virtual double __fastcall GetVisibleMinY(void);
virtual void __fastcall DataCursorUpate(System::TObject* Sender);
AnsiString __fastcall GetDataCursorDisplayText(Qiplotchannelcustom::TiPlotDataCursorStyle Style, double XValue, double YValue, Qiplotchannelcustom::TiPlotDataPointStatus Status);
virtual void __fastcall DrawSetup(const Qgraphics::TCanvas* Canvas);
virtual void __fastcall Draw(const Qgraphics::TCanvas* Canvas, const Qgraphics::TColor BackGroundColor);
void __fastcall DrawFill(Qgraphics::TCanvas* Canvas, bool XYAxisReverse);
void __fastcall DrawBar(Qgraphics::TCanvas* Canvas, bool XYAxisReverse);
void __fastcall DrawHighLow(Qgraphics::TCanvas* Canvas, bool XYAxisReverse);
void __fastcall DrawHighLowCandleStick(Qgraphics::TCanvas* Canvas, bool XYAxisReverse);
virtual void __fastcall DrawConnectPoints(Qgraphics::TCanvas* Canvas, bool XYAxisReverse);
virtual void __fastcall DrawMarkers(Qgraphics::TCanvas* Canvas, bool XYAxisReverse);
void __fastcall DrawDigital(Qgraphics::TCanvas* Canvas, bool XYAxisReverse);
void __fastcall DrawFast(Qgraphics::TCanvas* Canvas, bool XYAxisReverse);
void __fastcall DrawDigitalSequence(Qgraphics::TCanvas* Canvas, bool XYAxisReverse, Qiclasses::TDigitalSequenceData* SequenceData);
void __fastcall DrawCubicSpline(Qgraphics::TCanvas* Canvas, bool XYAxisReverse);
void __fastcall DrawCubicSplineSet(Qgraphics::TCanvas* Canvas, bool XYAxisReverse, Qimath::DoubleDynamicArray XArray, Qimath::DoubleDynamicArray YArray, Qimath::DoubleDynamicArray Y2Array, int Size);
void __fastcall DrawPolynomial(Qgraphics::TCanvas* Canvas, bool XYAxisReverse);
void __fastcall DrawRational(Qgraphics::TCanvas* Canvas, bool XYAxisReverse);
void __fastcall DrawDifferential(Qgraphics::TCanvas* Canvas, bool XYAxisReverse);
void __fastcall DrawPointSet(const Qgraphics::TCanvas* Canvas, const bool XYAxisReverse, const Qiclasses::TiPlotMinMaxPoint* Point1, const Qiclasses::TiPlotMinMaxPoint* Point2, const Qiclasses::TiPlotMinMaxPoint* Point3);
virtual bool __fastcall iMouseHitTest(const Qiplotobjects::TiPlotMouseData &MouseData);
void __fastcall AddPixelListValue(int XPixel, double YValue);
public:
__fastcall virtual TiPlotChannel(System::TObject* AOwner, Classes::TNotifyEvent AOnChange, Classes::TNotifyEvent AOnInsert, Classes::TNotifyEvent AOnRemove, Classes::TNotifyEvent AOnRename);
__fastcall virtual ~TiPlotChannel(void);
bool __fastcall GetYInterpolated(double XValue, double &YValue);
int __fastcall AddXNull(double X);
int __fastcall AddXEmpty(double X);
int __fastcall AddHighLow(double X, double High, double Low, double Open, double Close);
int __fastcall AddYNow(double Y);
int __fastcall AddYElapsedTime(double Y);
int __fastcall AddYElapsedSeconds(double Y);
void __fastcall AddYArray(double XInterval, const Variant &YData);
void __fastcall ResetElapsedStartTime(void);
__property double DataHigh[int Index] = {read=GetDataHigh, write=SetDataHigh};
__property double DataLow[int Index] = {read=GetDataLow, write=SetDataLow};
__property double DataOpen[int Index] = {read=GetDataOpen, write=SetDataOpen};
__property double DataClose[int Index] = {read=GetDataClose, write=SetDataClose};
__property bool DataBarVisible[int Index] = {read=GetDataBarVisible, write=SetDataBarVisible};
__property double DataBarReference[int Index] = {read=GetDataBarReference, write=SetDataBarReference};
__property double DataBarWidth[int Index] = {read=GetDataBarWidth, write=SetDataBarWidth};
__property Qgraphics::TColor DataBarPenColor[int Index] = {read=GetDataBarPenColor, write=SetDataBarPenColor};
__property int DataBarPenWidth[int Index] = {read=GetDataBarPenWidth, write=SetDataBarPenWidth};
__property Qgraphics::TPenStyle DataBarPenStyle[int Index] = {read=GetDataBarPenStyle, write=SetDataBarPenStyle};
__property Qgraphics::TColor DataBarBrushColor[int Index] = {read=GetDataBarBrushColor, write=SetDataBarBrushColor};
__property Qgraphics::TBrushStyle DataBarBrushStyle[int Index] = {read=GetDataBarBrushStyle, write=SetDataBarBrushStyle};
__property double ElapsedStartTime = {read=FElapsedStartTime, write=FElapsedStartTime};
__published:
__property bool FastDrawEnabled = {read=FFastDrawEnabled, write=SetFastDrawEnabled, default=1};
__property TiPlotInterpolationStyle InterpolationStyle = {read=FInterpolationStyle, write=SetInterpolationStyle, default=0};
__property bool FillEnabled = {read=FFillEnabled, write=SetFillEnabled, default=0};
__property double FillReference = {read=FFillReference, write=SetFillReference};
__property Qgraphics::TBrushStyle FillStyle = {read=FFillStyle, write=SetFillStyle, default=0};
__property Qgraphics::TColor FillColor = {read=FFillColor, write=SetFillColor, default=0};
__property bool FillUseChannelColor = {read=FFillUseChannelColor, write=SetFillUseChannelColor, default=1};
__property bool DigitalEnabled = {read=FDigitalEnabled, write=SetDigitalEnabled, default=0};
__property TiPlotDigitalReferenceStyle DigitalReferenceStyle = {read=FDigitalReferenceStyle, write=SetDigitalReferenceStyle, default=0};
__property double DigitalReferenceLow = {read=FDigitalReferenceLow, write=SetDigitalReferenceLow};
__property double DigitalReferenceHigh = {read=FDigitalReferenceHigh, write=SetDigitalReferenceHigh};
__property TiPlotHighLowStyle HighLowStyle = {read=FHighLowStyle, write=SetHighLowStyle, default=0};
__property bool HighLowEnabled = {read=FHighLowEnabled, write=SetHighLowEnabled, default=0};
__property Qgraphics::TColor HighLowBarColor = {read=FHighLowBarColor, write=SetHighLowBarColor, default=16711680};
__property double HighLowBarWidth = {read=FHighLowBarWidth, write=SetHighLowBarWidth};
__property bool HighLowOpenShow = {read=FHighLowOpenShow, write=SetHighLowOpenShow, default=1};
__property Qgraphics::TColor HighLowOpenColor = {read=FHighLowOpenColor, write=SetHighLowOpenColor, default=32768};
__property double HighLowOpenWidth = {read=FHighLowOpenWidth, write=SetHighLowOpenWidth};
__property double HighLowOpenHeight = {read=FHighLowOpenHeight, write=SetHighLowOpenHeight};
__property bool HighLowCloseShow = {read=FHighLowCloseShow, write=SetHighLowCloseShow, default=1};
__property Qgraphics::TColor HighLowCloseColor = {read=FHighLowCloseColor, write=SetHighLowCloseColor, default=255};
__property double HighLowCloseWidth = {read=FHighLowCloseWidth, write=SetHighLowCloseWidth};
__property double HighLowCloseHeight = {read=FHighLowCloseHeight, write=SetHighLowCloseHeight};
__property Qgraphics::TColor HighLowShadowColor = {read=FHighLowShadowColor, write=SetHighLowShadowColor, default=8421504};
__property Qgraphics::TColor HighLowBullishColor = {read=FHighLowBullishColor, write=SetHighLowBullishColor, default=16777215};
__property Qgraphics::TColor HighLowBearishColor = {read=FHighLowBearishColor, write=SetHighLowBearishColor, default=8421504};
__property bool BarEnabled = {read=FBarEnabled, write=SetBarEnabled, default=0};
__property bool BarPenUseChannelColor = {read=FBarPenUseChannelColor, write=SetBarPenUseChannelColor, default=1};
__property bool BarBrushUseChannelColor = {read=FBarBrushUseChannelColor, write=SetBarBrushUseChannelColor, default=1};
__property double BarReference = {read=GetBarReference, write=SetBarReference};
__property double BarWidth = {read=GetBarWidth, write=SetBarWidth};
__property Qgraphics::TColor BarPenColor = {read=GetBarPenColor, write=SetBarPenColor, default=255};
__property int BarPenWidth = {read=GetBarPenWidth, write=SetBarPenWidth, default=0};
__property Qgraphics::TPenStyle BarPenStyle = {read=GetBarPenStyle, write=SetBarPenStyle, default=0};
__property Qgraphics::TColor BarBrushColor = {read=GetBarBrushColor, write=SetBarBrushColor, default=255};
__property Qgraphics::TBrushStyle BarBrushStyle = {read=GetBarBrushStyle, write=SetBarBrushStyle, default=0};
};
//-- var, const, procedure ---------------------------------------------------
} /* namespace Qiplotchannel */
using namespace Qiplotchannel;
#pragma option pop // -w-
#pragma option pop // -Vx
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // QiPlotChannel
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -