Name
disp_rectangle2T_disp_rectangle2DispRectangle2DispRectangle2 — Displays arbitrarily oriented rectangles.
void DispRectangle2(const HTuple& WindowHandle, const HTuple& CenterRow, const HTuple& CenterCol, const HTuple& Phi, const HTuple& Length1, const HTuple& Length2)
void HWindow::DispRectangle2(const HTuple& CenterRow, const HTuple& CenterCol, const HTuple& Phi, const HTuple& Length1, const HTuple& Length2) const
void HWindow::DispRectangle2(double CenterRow, double CenterCol, double Phi, double Length1, double Length2) const
static void HOperatorSet.DispRectangle2(HTuple windowHandle, HTuple centerRow, HTuple centerCol, HTuple phi, HTuple length1, HTuple length2)
void HWindow.DispRectangle2(HTuple centerRow, HTuple centerCol, HTuple phi, HTuple length1, HTuple length2)
void HWindow.DispRectangle2(double centerRow, double centerCol, double phi, double length1, double length2)
disp_rectangle2disp_rectangle2DispRectangle2DispRectangle2DispRectangle2 draws one or several arbitrarily oriented
rectangles in the output window. A rectangle is described by the
center (CenterRowCenterRowCenterRowCenterRowcenterRow,CenterColCenterColCenterColCenterColcenterCol), the orientation
PhiPhiPhiPhiphi (in radians) and half the lengths of the edges
Length1Length1Length1Length1length1 and Length2Length2Length2Length2length2. The operators used to control
the display of regions (e.g. set_drawset_drawSetDrawSetDrawSetDraw, set_grayset_graySetGraySetGraySetGray,
set_drawset_drawSetDrawSetDrawSetDraw) can also be used with rectangles. Several
rectangles can be displayed with one call by using tuple
parameters. For the use of colors with several rectangles, see
set_colorset_colorSetColorSetColorSetColor.
The center must lie within the window boundaries.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Row index of the center.
Default value: 48
Suggested values: 0, 64, 128, 256, 511
Typical range of values: 0
≤
CenterRow
CenterRow
CenterRow
CenterRow
centerRow
≤
511 (lin)
Minimum increment: 1
Recommended increment: 10
Column index of the center.
Default value: 64
Suggested values: 0, 64, 128, 256, 511
Typical range of values: 0
≤
CenterCol
CenterCol
CenterCol
CenterCol
centerCol
≤
511 (lin)
Minimum increment: 1
Recommended increment: 10
PhiPhiPhiPhiphi (input_control) rectangle2.angle.rad(-array) → HTupleHTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Orientation of rectangle in radians.
Default value: 0.0
Suggested values: 0.0, 0.785398, 1.570796, 3.1415926, 6.283185
Typical range of values: 0.0
≤
Phi
Phi
Phi
Phi
phi
≤
6.283185 (lin)
Minimum increment: 0.01
Recommended increment: 0.1
Half of the length of the longer side.
Default value: 48
Suggested values: 0, 64, 128, 256, 511
Typical range of values: 0
≤
Length1
Length1
Length1
Length1
length1
≤
511 (lin)
Minimum increment: 1
Recommended increment: 10
Half of the length of the shorter side.
Default value: 32
Suggested values: 0, 64, 128, 256, 511
Typical range of values: 0
≤
Length2
Length2
Length2
Length2
length2
≤
511 (lin)
Minimum increment: 1
Recommended increment: 10
Restriction: Length2 < Length1
set_color(WindowHandle,'green')
draw_region(MyRegion,WindowHandle)
elliptic_axis(MyRegion,Ra,Rb,Phi)
area_center(MyRegion,_,Row,Column)
disp_rectangle2(WindowHandle,Row,Column,Phi,Ra,Rb)
set_color(WindowHandle,"green") ;
draw_region(&MyRegion,WindowHandle) ;
elliptic_axis(MyRegion,&Ra,&Rb,&Phi) ;
area_center(MyRegion,NULL,&Row,&Column) ;
disp_gen_rectangle2(WindowHandle,Row,Column,Phi,Ra,Rb) ;
set_color(WindowHandle,'green')
draw_region(MyRegion,WindowHandle)
elliptic_axis(MyRegion,Ra,Rb,Phi)
area_center(MyRegion,_,Row,Column)
disp_rectangle2(WindowHandle,Row,Column,Phi,Ra,Rb)
set_color(WindowHandle,'green')
draw_region(MyRegion,WindowHandle)
elliptic_axis(MyRegion,Ra,Rb,Phi)
area_center(MyRegion,_,Row,Column)
disp_rectangle2(WindowHandle,Row,Column,Phi,Ra,Rb)
set_color(WindowHandle,'green')
draw_region(MyRegion,WindowHandle)
elliptic_axis(MyRegion,Ra,Rb,Phi)
area_center(MyRegion,_,Row,Column)
disp_rectangle2(WindowHandle,Row,Column,Phi,Ra,Rb)
disp_rectangle2disp_rectangle2DispRectangle2DispRectangle2DispRectangle2 returns 2 (H_MSG_TRUE), if the
parameters are correct. Otherwise an exception is raised.
open_windowopen_windowOpenWindowOpenWindowOpenWindow,
set_rgbset_rgbSetRgbSetRgbSetRgb,
set_lutset_lutSetLutSetLutSetLut,
set_hsiset_hsiSetHsiSetHsiSetHsi,
set_drawset_drawSetDrawSetDrawSetDraw,
set_colorset_colorSetColorSetColorSetColor,
set_coloredset_coloredSetColoredSetColoredSetColored,
set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidth
disp_regiondisp_regionDispRegionDispRegionDispRegion,
gen_rectangle2gen_rectangle2GenRectangle2GenRectangle2GenRectangle2,
disp_rectangle1disp_rectangle1DispRectangle1DispRectangle1DispRectangle1,
set_shapeset_shapeSetShapeSetShapeSetShape
open_windowopen_windowOpenWindowOpenWindowOpenWindow,
disp_regiondisp_regionDispRegionDispRegionDispRegion,
set_colorset_colorSetColorSetColorSetColor,
set_drawset_drawSetDrawSetDrawSetDraw,
set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidth
Foundation