# Visualization
TKService
Xw

# Xw_Driver Class Reference

This class defines a X window Driver.
Warning: A Driver is associated with one window and lets you
draw any primitives with any attributes you choose
inside that window. All Values and coordinates are
defined in Device Window Unit (DWU) space, which is
the Normalized Floating Pixel space limited by the size
of the window. The Maps Driver must be initialized
with Aspect_Driver::SetXXXXMap(aMap) where XXXX
may correspond to Color, Mark, Type, Width and Font.
.

`#include <Xw_Driver.hxx>`

Inheritance diagram for Xw_Driver:

[legend]

## Public Member Functions

Standard_EXPORT | Xw_Driver (const Handle(Xw_Window)&aWindow)
| Creates the X Window Driver associated to the X window <awindow>. Default values : - DrawMode : TODM_REPLACE .
virtual Standard_EXPORT void | BeginDraw (const Standard_Boolean DoubleBuffer=Standard_True, const Standard_Integer aRetainBuffer=0)
| Begin graphics and drawn directly to the Window or Pixmap if .
virtual Standard_EXPORT void | EndDraw (const Standard_Boolean Synchronize=Standard_False)
| Called by the method Graphic2d_View::Update, this method manages the buffer flushing and Wait after up to date display when Synchronize is TRUE. .
virtual Standard_EXPORT Aspect_TypeOfResize | ResizeSpace ()
| Resizes the WorkSpace depending of the Window size MUST be call after a Resize or Move WindowDriver Event Returns the TypeOfResize gravity mode . Trigger: Raises if the type of resizing is unknown. .
virtual Standard_EXPORT void | SetDrawMode (const Aspect_TypeOfDrawMode aMode)
| Defines the draw mode for all primitives drawing. TypeOfDrawMode is TODM_REPLACE TODM_ERASE TODM_XOR TODM_XORLIGHT .
virtual Standard_EXPORT void | SetLineAttrib (const Standard_Integer ColorIndex, const Standard_Integer TypeIndex, const Standard_Integer WidthIndex)
| Sets the line attributes. Category: Methods to set the line attributes Trigger: Raises if one of the index is out of range. .
virtual Standard_EXPORT void | SetTextAttrib (const Standard_Integer ColorIndex, const Standard_Integer FontIndex)
| Sets the text attributes. Category: Methods to set the text attributes Trigger: Raises if one of the index is out of range. .
virtual Standard_EXPORT void | SetTextAttrib (const Standard_Integer ColorIndex, const Standard_Integer FontIndex, const Quantity_PlaneAngle aSlant, const Quantity_Factor aHScale, const Quantity_Factor aWScale, const Standard_Boolean isUnderlined=Standard_False)
| Sets the Extended text attributes. Category: Methods to set the text attributes Trigger: Raises if one of the index is out of range. .
virtual Standard_EXPORT void | SetPolyAttrib (const Standard_Integer ColorIndex, const Standard_Integer TileIndex, const Standard_Boolean DrawEdgeFlag=Standard_False)
| Sets the polygon attributes. Warning: <colorindex> is the background poly color index. <tileindex> is the background poly fill rule index. If <drawedgeflag> is TRUE the edge of the poly is drawn with the current line attributes. Category: Methods to set the poly attributes Trigger: Raises if one of the index is out of range. .
virtual Standard_EXPORT void | SetMarkerAttrib (const Standard_Integer ColorIndex, const Standard_Integer EdgeWidthIndex, const Standard_Boolean FillMarker=Standard_False)
| Sets the marker attributes. Warning: <colorindex> is the edge or fill marker color index. <edgewidthindex> is the edge marker thickness index. If <fillmarker> is TRUE the marker is filled on the first set of consecutive drawn points. Category: Methods to set the marker attributes Trigger: Raises if one of the index is out of range. .
virtual Standard_EXPORT Standard_Boolean | IsKnownImage (const Handle(Standard_Transient)&anImage)
| Returns Standard_True if the associated driver have stored the image and Standard_False if not. .
virtual Standard_EXPORT Standard_Boolean | SizeOfImageFile (const Standard_CString anImageFile, Standard_Integer &aWidth, Standard_Integer &aHeight) const
| Returns Standard_True and the Image Size in PIXEL if the image file exist and can be computed by the driver, NOTE that only XWD image file type are recognized today. .
virtual Standard_EXPORT void | ClearImage (const Handle(Standard_Transient)&anImageId)
| Clears the image in <me>. .
virtual Standard_EXPORT void | ClearImageFile (const Standard_CString anImageFile)
| Clears the image associated with the image file . .
virtual Standard_EXPORT void | DrawImage (const Handle(Standard_Transient)&anImageId, const Standard_ShortReal aX, const Standard_ShortReal aY)
| Draws the image in <me>. <ax>, <ay> is the center of the image. Image center must be defined in DWU space. .
virtual Standard_EXPORT void | DrawImageFile (const Standard_CString anImageFile, const Standard_ShortReal aX, const Standard_ShortReal aY, const Quantity_Factor aScale=1.0)
| Draws the image file in <me>. <ax>, <ay> is the center of the image. <ascale> the scale factor which is apply on this image Image center must be defined in DWU space. anImageFile must be defined with the full pathname of the form /..../xxxxx.ext or $DIR/xxxxxx.ext with DIR defined in a setenv variable. xxxxxx the image file name. ext the image file extension. .
virtual Standard_EXPORT void | FillAndDrawImage (const Handle(Standard_Transient)&anImageId, const Standard_ShortReal aX, const Standard_ShortReal aY, const Standard_Integer Width, const Standard_Integer Height, const Standard_Address anArrayOfPixels)
| Stores a complete image and draws it in <me>. Image size must be defined in DWU space> Category: Methods to manage the images Trigger: Raises if the creation of the image failed. .
virtual Standard_EXPORT void | FillAndDrawImage (const Handle(Standard_Transient)&anImageId, const Standard_ShortReal aX, const Standard_ShortReal aY, const Standard_Integer anIndexOfLine, const Standard_Integer Width, const Standard_Integer Height, const Standard_Address anArrayOfPixels)
| Stores a line of an image and draws it in <me>. Warning: 0<= anIndexOfLine < aHeight anIndexOfLine = 0 must be the first call Category: Methods to manage the images Trigger: Raises if the creation of the image failed. .
virtual Standard_EXPORT void | DrawPolyline (const TShort_Array1OfShortReal &ListX, const TShort_Array1OfShortReal &ListY)
| Draws the polyline depending of SetLineAttrib() attributes. Warning: Coordinates must be defined in DWU space. Trigger: Raises if Polyline has too many points (> 1024) Raises if the length of <listx> is not equal to the length of <listy>. .
virtual Standard_EXPORT void | DrawPolygon (const TShort_Array1OfShortReal &ListX, const TShort_Array1OfShortReal &ListY)
| Draws the polygone depending of SetPolyAttrib() attributes. Warning: Coordinates must be defined in DWU space. Trigger: Raises if Polygone has too many points (> 1024) Raises if the length of <listx> is not equal to the length of <listy>. .
virtual Standard_EXPORT void | DrawSegment (const Standard_ShortReal X1, const Standard_ShortReal Y1, const Standard_ShortReal X2, const Standard_ShortReal Y2)
| Draws the segment depending of SetLineAttrib() attributes. Warning: Coordinates must be defined in DWU space. .
virtual Standard_EXPORT void | DrawText (const TCollection_ExtendedString &Text, const Standard_ShortReal Xpos, const Standard_ShortReal Ypos, const Standard_ShortReal anAngle=0.0, const Aspect_TypeOfText aType=Aspect_TOT_SOLID)
| Draws the text depending of SetTextAttrib() attributes. Category: Methods to draw primitives Warning: Coordinates must be defined in DWU space. Trigger: Raises if Text has too many chars (> 1024) .
virtual Standard_EXPORT void | DrawText (const Standard_CString Text, const Standard_ShortReal Xpos, const Standard_ShortReal Ypos, const Standard_ShortReal anAngle=0.0, const Aspect_TypeOfText aType=Aspect_TOT_SOLID)
| Draws the text depending of SetTextAttrib() attributes. Category: Methods to draw primitives Warning: Coordinates must be defined in DWU space. Angle must be defined in RADIAN. Trigger: Raises if Text has too many chars (> 1024) .
virtual Standard_EXPORT void | DrawPolyText (const TCollection_ExtendedString &aText, const Standard_ShortReal Xpos, const Standard_ShortReal Ypos, const Quantity_Ratio aMarge=0.1, const Standard_ShortReal anAngle=0.0, const Aspect_TypeOfText aType=Aspect_TOT_SOLID)
| Draws an framed text depending of the SetTextAttrib() and SetPolyAttrib() attributes. Warning: Coordinates must be defined in DWU space. <amarge> defines the ratio of the space between the polygon borders and the bounding box of the text and depending of the height of the text. .
virtual Standard_EXPORT void | DrawPolyText (const Standard_CString aText, const Standard_ShortReal Xpos, const Standard_ShortReal Ypos, const Quantity_Ratio aMarge=0.1, const Standard_ShortReal anAngle=0.0, const Aspect_TypeOfText aType=Aspect_TOT_SOLID)
| Draws an framed text depending of the SetTextAttrib() and SetPolyAttrib() attributes. Warning: Coordinates must be defined in DWU space. <amarge> defines the ratio of the space between the polygon borders and the bounding box of the text and depending of the height of the text. .
virtual Standard_EXPORT void | DrawPoint (const Standard_ShortReal X, const Standard_ShortReal Y)
| Draws a 1 PIXEL point depending of the SetMarkerAttrib() .
virtual Standard_EXPORT void | DrawMarker (const Standard_Integer aMarker, const Standard_ShortReal Xpos, const Standard_ShortReal Ypos, const Standard_ShortReal Width, const Standard_ShortReal Height, const Standard_ShortReal Angle=0.0)
| Draws the previously defined marker depending of the SetMarkerAttrib() attributes. Warning: Coordinates and sizes must be defined in DWU space. Angle must be defined in RADIAN. A one pixel marker is drawn when aMarker index is undefined. .
virtual Standard_EXPORT Standard_Boolean | DrawArc (const Standard_ShortReal X, const Standard_ShortReal Y, const Standard_ShortReal aXradius, const Standard_ShortReal aYradius, const Standard_ShortReal aStartAngle=0.0, const Standard_ShortReal anOpenAngle=6.283185)
| Draws an Ellipsoid arc of center <X,Y> and Radius <aXradius,aYradius> of relative angle <anopenangle> from the base angle <astartangle> Warning: Returns FALSE if the hardware can't drawing this primitive properly,application must to simulate it. .
virtual Standard_EXPORT Standard_Boolean | DrawPolyArc (const Standard_ShortReal X, const Standard_ShortReal Y, const Standard_ShortReal anXradius, const Standard_ShortReal anYradius, const Standard_ShortReal aStartAngle=0.0, const Standard_ShortReal anOpenAngle=6.283185)
| Draws an filled Ellipsoid arc of center <X,Y> and Radius <anXradius,anYradius> of relative angle <anopenangle> from the base angle <astartangle> and depending of the SetPolyAttrib() attributes. Warning: Returns FALSE if the hardware can't drawing this primitive properly,application must to simulate it. .
virtual Standard_EXPORT void | BeginPolyline (const Standard_Integer aNumber)
| Begin a polyline primitive of <anumber> of points . Warning: Points must be added by the DrawPoint() method. .
virtual Standard_EXPORT void | BeginPolygon (const Standard_Integer aNumber)
| Begin a polygon primitive of <anumber> of points . Warning: Points must be added by the DrawPoint() method. .
virtual Standard_EXPORT void | BeginSegments ()
| Begin a set of segments . Warning: Segments must be added by DrawSegment() method. .
virtual Standard_EXPORT void | BeginArcs ()
| Begin a set of circles or ellips . Warning: Arcs must be added by the DrawArc() method. .
virtual Standard_EXPORT void | BeginPolyArcs ()
| Begin a set of polygon circles or ellips . Warning: Arcs must be added by the DrawPolyArc() method. .
virtual Standard_EXPORT void | BeginMarkers ()
| Begin a set of markers . Warning: Markers must be added by the DrawMarker() method. .
virtual Standard_EXPORT void | BeginPoints ()
| Begin a set of points . Warning: Points must be added by the DrawPoint() method. .
virtual Standard_EXPORT void | ClosePrimitive ()
| Close the last Begining primitive .
virtual Standard_EXPORT Standard_Boolean | OpenBuffer (const Standard_Integer aRetainBuffer, const Standard_ShortReal aPivotX=0.0, const Standard_ShortReal aPivotY=0.0, const Standard_Integer aWidthIndex=0, const Standard_Integer aColorIndex=0, const Standard_Integer aFontIndex=0, const Aspect_TypeOfDrawMode aDrawMode=Aspect_TODM_REPLACE)

Allocate the retain buffer <aretainbuffer> ,
Defines the DWU coordinates of the pivot point for all primitives
contains inside.
Defines the buffer color, line width and font index :
the default color is the highlight color of the colormap.
the default font is the default system font of the fontmap.
The other attributes are fixed :
line type is Solid,
line width is 1 Pixel,
polygon fill mode is Solid,
Warning: The number of allocated buffers is limited,it's
recommended to close unused buffers some time!
The TypeOfDrawMode REPLACE is enabled only if the
background drawing has been drawn with the DoubleBuffer
flag set to ENABLE at the last BeginDraw time.
The TypeOfDrawMode XOR is enabled in any case.
The other TypeOfDrawMode are not authorized.
Returns TRUE if the buffer is allocated and enabled for drawing.
.

virtual Standard_EXPORT void | CloseBuffer (const Standard_Integer aRetainBuffer) const
| Clear & Deallocate the retain buffer <aretainbuffer>. .
virtual Standard_EXPORT void | ClearBuffer (const Standard_Integer aRetainBuffer) const
| Erase & Clear ALL primitives retains in the buffer <aretainbuffer>. .
virtual Standard_EXPORT void | DrawBuffer (const Standard_Integer aRetainBuffer) const

Draw ALL primitives retains in the buffer <aretainbuffer>.
Warning: Note that the aspect of a retain buffer drawing is mono-colored
with the current buffer attributes and
depending of the DoubleBuffer state flag at the BeginDraw() buffer time,
when DB is TRUE,an XOR method is use for drawing and erasing buffers in the
same way.In this case,some color side effect can occurs depending of the
traversal primitive colors and the supported hardware.
when DB is FALSE and the background drawing has been generated with
DB at TRUE,no color side effect occurs because the DB is used for restoring
the drawing context at EraseBuffer() time,this is more powerfull for the
drawing quality excepted for large buffers (flicking) .
.

virtual Standard_EXPORT void | EraseBuffer (const Standard_Integer aRetainBuffer) const
| Erase ALL primitives retains in the buffer <aretainbuffer>. .
virtual Standard_EXPORT void | MoveBuffer (const Standard_Integer aRetainBuffer, const Standard_ShortReal aPivotX=0.0, const Standard_ShortReal aPivotY=0.0) const
| Erase , Translate and reDraw ALL primitives retains in the buffer .
virtual Standard_EXPORT void | ScaleBuffer (const Standard_Integer aRetainBuffer, const Quantity_Factor aScaleX=1.0, const Quantity_Factor aScaleY=1.0) const
| Erase , Scale the buffer from the Pivot point and reDraw ALL primitives .
virtual Standard_EXPORT void | RotateBuffer (const Standard_Integer aRetainBuffer, const Quantity_PlaneAngle anAngle=0.0) const
| Erase , Rotate the buffer from the Pivot point and reDraw ALL primitives retains in the buffer <aretainbuffer>. The transformation is relative since the creation time of the buffer. <anangle> is the relative counter-clockwise rotation angle from the Horizontal axis. .
virtual Standard_EXPORT void | WorkSpace (Quantity_Length &Width, Quantity_Length &Heigth) const
| Returns the Available WorkSpace in DWU coordinates Category: Inquire methods .
virtual Standard_EXPORT void | TextSize (const TCollection_ExtendedString &aText, Standard_ShortReal &aWidth, Standard_ShortReal &aHeight, const Standard_Integer aFontIndex=-1) const
| Returns the TEXT size in DWU space depending of the required FontIndex if aFontIndex is >= 0 or the current FontIndex if < 0 (default). .
virtual Standard_EXPORT void | TextSize (const TCollection_ExtendedString &aText, Standard_ShortReal &aWidth, Standard_ShortReal &aHeight, Standard_ShortReal &anXoffset, Standard_ShortReal &anYoffset, const Standard_Integer aFontIndex=-1) const
| Returns the extended TEXT size and offsets in DWU space depending of the required FontIndex if aFontIndex is >= 0 or the current FontIndex if < 0 (default). NOTE that the text offsets defines the relative position of the of the text string origin from the lower left corner of the text boundary limits. .
virtual Standard_EXPORT void | TextSize (const Standard_CString aText, Standard_ShortReal &aWidth, Standard_ShortReal &aHeight, Standard_ShortReal &anXoffset, Standard_ShortReal &anYoffset, const Standard_Integer aFontIndex=-1) const
| Returns the ascii TEXT size and offsets in DWU space depending of the required FontIndex if aFontIndex is >= 0 or the current FontIndex if < 0 (default). NOTE that the text offsets defines the relative position of the of the text string origin from the lower left corner of the text boundary limits. .
virtual Standard_EXPORT Standard_CString | FontSize (Quantity_PlaneAngle &aSlant, Standard_ShortReal &aSize, Standard_ShortReal &aBheight, const Standard_Integer aFontIndex=-1) const
| Returns the font string,slant,size and baseline height in DWU space depending of the required FontIndex if aFontIndex is >= 0 or the current FontIndex if < 0 (default). .
virtual Standard_EXPORT Quantity_Length | Convert (const Standard_Integer PV) const
| Returns the DWU value depending of the PIXEL value. .
virtual Standard_EXPORT Standard_Integer | Convert (const Quantity_Length DV) const
| Returns the PIXEL value depending of the DWU value. .
virtual Standard_EXPORT void | Convert (const Standard_Integer PX, const Standard_Integer PY, Quantity_Length &DX, Quantity_Length &DY) const
| Returns the DWU position depending of the PIXEL position . .
virtual Standard_EXPORT void | Convert (const Quantity_Length DX, const Quantity_Length DY, Standard_Integer &PX, Standard_Integer &PY) const
| Returns the PIXEL position depending of the DWU position . .
virtual Standard_EXPORT Standard_Boolean | BufferIsOpen (const Standard_Integer aRetainBuffer) const
| Returns TRUE if the retain buffer <aretainbuffer> is enabled .
virtual Standard_EXPORT Standard_Boolean | BufferIsEmpty (const Standard_Integer aRetainBuffer) const
| Returns TRUE if the retain buffer has not been opened or empty. Returns FALSE if a lot of primitives have been stored inside because a BeginDraw(..,<aretainbuffer>) has been done previously. .
virtual Standard_EXPORT Standard_Boolean | BufferIsDrawn (const Standard_Integer aRetainBuffer) const
| Returns TRUE if the retain buffer s actually displayed at screen. .
virtual Standard_EXPORT void | AngleOfBuffer (const Standard_Integer aRetainBuffer, Quantity_PlaneAngle &anAngle) const
| Returns the current buffer rotate angle from the X axis. .
virtual Standard_EXPORT void | ScaleOfBuffer (const Standard_Integer aRetainBuffer, Quantity_Factor &aScaleX, Quantity_Factor &aScaleY) const
| Returns the current buffer scale factors. .
virtual Standard_EXPORT void | PositionOfBuffer (const Standard_Integer aRetainBuffer, Standard_ShortReal &aPivotX, Standard_ShortReal &aPivotY) const
| Returns the current buffer position. .
virtual Standard_EXPORT void | ColorBoundIndexs (Standard_Integer &aMinIndex, Standard_Integer &aMaxIndex) const
| Returns the min and max driver virtual color indexs. .
virtual Standard_EXPORT Standard_Integer | LocalColorIndex (const Standard_Integer anIndex) const
| Returns the local colormap hardware index from a virtual driver color index or returns -1 if the index is not defined. .
virtual Standard_EXPORT void | FontBoundIndexs (Standard_Integer &aMinIndex, Standard_Integer &aMaxIndex) const
| Returns the min and max driver virtual font indexs. .
virtual Standard_EXPORT Standard_Integer | LocalFontIndex (const Standard_Integer anIndex) const
| Returns the associated fontmap hardware index from a virtual driver font index or returns -1 if the index is not defined. .
virtual Standard_EXPORT void | TypeBoundIndexs (Standard_Integer &aMinIndex, Standard_Integer &aMaxIndex) const
| Returns the min and max driver virtual type indexs. .
virtual Standard_EXPORT Standard_Integer | LocalTypeIndex (const Standard_Integer anIndex) const
| Returns the associated typemap hardware index from a virtual driver type index or returns -1 if the index is not defined. .
virtual Standard_EXPORT void | WidthBoundIndexs (Standard_Integer &aMinIndex, Standard_Integer &aMaxIndex) const
| Returns the min and max driver virtual width indexs. .
virtual Standard_EXPORT Standard_Integer | LocalWidthIndex (const Standard_Integer anIndex) const
| Returns the associated widthmap hardware index from a virtual driver width index or returns -1 if the index is not defined. .
virtual Standard_EXPORT void | MarkBoundIndexs (Standard_Integer &aMinIndex, Standard_Integer &aMaxIndex) const
| Returns the min and max driver virtual marker indexs. .
virtual Standard_EXPORT Standard_Integer | LocalMarkIndex (const Standard_Integer anIndex) const
| Returns the local markmap hardware index from a virtual driver marker -- index or returns -1 if the index is not defined. .
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const

## Protected Member Functions

virtual Standard_EXPORT void | InitializeColorMap (const Handle(Aspect_ColorMap)&Colormap)
| Defines the color map. Level: Public Trigger: Raises if the definition failed. .
virtual Standard_EXPORT void | InitializeTypeMap (const Handle(Aspect_TypeMap)&Typemap)
| Defines the line type map. Level: Public Trigger: Raises if the definition failed. .
virtual Standard_EXPORT void | InitializeWidthMap (const Handle(Aspect_WidthMap)&Widthmap)
| Defines the width line map. Level: Public Trigger: Raises if the definition failed. .
virtual Standard_EXPORT void | InitializeFontMap (const Handle(Aspect_FontMap)&Fontmap)
| Defines the font map. Level: Public Trigger: Raises if the definition failed. .
virtual Standard_EXPORT void | InitializeMarkMap (const Handle(Aspect_MarkMap)&Markmap)
| Defines the mark map. Level: Public Trigger: Raises if the definition failed. .

## Static Protected Member Functions

static Standard_EXPORT void | PrintError ()
| Print last error or raise depending of the error gravity. .

## Protected Attributes

Xw_TypeOfVisual | MyVisualClass
Standard_Address | MyExtendedDrawable
Standard_Address | MyExtendedColorMap
Standard_Address | MyExtendedTypeMap
Standard_Address | MyExtendedWidthMap
Standard_Address | MyExtendedFontMap
Standard_Address | MyExtendedMarkMap
Standard_Address | MyImage
Standard_Integer | MyLineColor
Standard_Integer | MyLineType
Standard_Integer | MyLineWidth
Standard_Integer | MyPolyColor
Standard_Integer | MyPolyType
Standard_Integer | MyPolyTile
Standard_Integer | MyTextColor
Standard_Integer | MyTextFont
Standard_Integer | MyTextType
Standard_Real | MyTextHScale
Standard_Real | MyTextWScale
Standard_Real | MyTextHSize
Standard_Real | MyTextWSize
Standard_Real | MyTextSlant
Standard_Real | MyTextMinHeight
Standard_Boolean | MyTextIsUnderlined
Standard_Integer | MyMarkerColor
Standard_Boolean | MyMarkerType
Standard_Integer | MyMarkerWidth
Handle_Xw_HListOfIndexs | MyColorIndexs
Handle_Xw_HListOfIndexs | MyTypeIndexs
Handle_Xw_HListOfIndexs | MyWidthIndexs
Handle_Xw_HListOfIndexs | MyFontIndexs
Handle_Xw_HListOfIndexs | MyMarkerIndexs
Aspect_TypeOfPrimitive | MyPrimitiveType
Handle_Xw_HListOfMFTFonts | MyMFTFonts
Handle_Xw_HListOfMFTSizes | MyMFTSizes
Handle_Xw_TextManager | MyTextManager

## Private Member Functions

Standard_EXPORT void | DrawRectangle (const Standard_ShortReal Xpos, const Standard_ShortReal Ypos, const Standard_ShortReal Angle, const Standard_ShortReal Xoffset, const Standard_ShortReal Yoffset, const Standard_ShortReal Width, const Standard_ShortReal Height) const
| Draw an oriented rectangle .
Standard_EXPORT void | FillRectangle (const Standard_ShortReal Xpos, const Standard_ShortReal Ypos, const Standard_ShortReal Angle, const Standard_ShortReal Xoffset, const Standard_ShortReal Yoffset, const Standard_ShortReal Width, const Standard_ShortReal Height) const
| Draw an oriented fill rectangle .

## Constructor & Destructor Documentation

Standard_EXPORT Xw_Driver::Xw_Driver | ( | const Handle(Xw_Window)& | aWindow | ) |

## Member Function Documentation

virtual Standard_EXPORT void Xw_Driver::AngleOfBuffer | ( | const Standard_Integer | aRetainBuffer,
|  | Quantity_PlaneAngle & | anAngle
| ) | const`[virtual]`

| Implements Aspect_WindowDriver.

virtual Standard_EXPORT void Xw_Driver::BeginArcs | ( |  | ) | `[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::BeginDraw | ( | const Standard_Boolean | DoubleBuffer = `Standard_True`,
|  | const Standard_Integer | aRetainBuffer = `0`
| ) | `[virtual]`

| Implements Aspect_WindowDriver.

virtual Standard_EXPORT void Xw_Driver::BeginMarkers | ( |  | ) | `[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::BeginPoints | ( |  | ) | `[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::BeginPolyArcs | ( |  | ) | `[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::BeginPolygon | ( | const Standard_Integer | aNumber | ) | `[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::BeginPolyline | ( | const Standard_Integer | aNumber | ) | `[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::BeginSegments | ( |  | ) | `[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT Standard_Boolean Xw_Driver::BufferIsDrawn | ( | const Standard_Integer | aRetainBuffer | ) | const`[virtual]`

| Implements Aspect_WindowDriver.

virtual Standard_EXPORT Standard_Boolean Xw_Driver::BufferIsEmpty | ( | const Standard_Integer | aRetainBuffer | ) | const`[virtual]`

| Implements Aspect_WindowDriver.

virtual Standard_EXPORT Standard_Boolean Xw_Driver::BufferIsOpen | ( | const Standard_Integer | aRetainBuffer | ) | const`[virtual]`

| Implements Aspect_WindowDriver.

virtual Standard_EXPORT void Xw_Driver::ClearBuffer | ( | const Standard_Integer | aRetainBuffer | ) | const`[virtual]`

| Implements Aspect_WindowDriver.

virtual Standard_EXPORT void Xw_Driver::ClearImage | ( | const Handle(Standard_Transient)& | anImageId | ) | `[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::ClearImageFile | ( | const Standard_CString | anImageFile | ) | `[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::CloseBuffer | ( | const Standard_Integer | aRetainBuffer | ) | const`[virtual]`

| Implements Aspect_WindowDriver.

virtual Standard_EXPORT void Xw_Driver::ClosePrimitive | ( |  | ) | `[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::ColorBoundIndexs | ( | Standard_Integer & | aMinIndex,
|  | Standard_Integer & | aMaxIndex
| ) | const`[virtual]`

| Implements Aspect_WindowDriver.

virtual Standard_EXPORT void Xw_Driver::Convert | ( | const Quantity_Length | DX,
|  | const Quantity_Length | DY,
|  | Standard_Integer & | PX,
|  | Standard_Integer & | PY
| ) | const`[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::Convert | ( | const Standard_Integer | PX,
|  | const Standard_Integer | PY,
|  | Quantity_Length & | DX,
|  | Quantity_Length & | DY
| ) | const`[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT Standard_Integer Xw_Driver::Convert | ( | const Quantity_Length | DV | ) | const`[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT Quantity_Length Xw_Driver::Convert | ( | const Standard_Integer | PV | ) | const`[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT Standard_Boolean Xw_Driver::DrawArc | ( | const Standard_ShortReal | X,
|  | const Standard_ShortReal | Y,
|  | const Standard_ShortReal | aXradius,
|  | const Standard_ShortReal | aYradius,
|  | const Standard_ShortReal | aStartAngle = `0.0`,
|  | const Standard_ShortReal | anOpenAngle = `6.283185`
| ) | `[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::DrawBuffer | ( | const Standard_Integer | aRetainBuffer | ) | const`[virtual]`

| Implements Aspect_WindowDriver.

virtual Standard_EXPORT void Xw_Driver::DrawImage | ( | const Handle(Standard_Transient)& | anImageId,
|  | const Standard_ShortReal | aX,
|  | const Standard_ShortReal | aY
| ) | `[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::DrawImageFile | ( | const Standard_CString | anImageFile,
|  | const Standard_ShortReal | aX,
|  | const Standard_ShortReal | aY,
|  | const Quantity_Factor | aScale = `1.0`
| ) | `[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::DrawMarker | ( | const Standard_Integer | aMarker,
|  | const Standard_ShortReal | Xpos,
|  | const Standard_ShortReal | Ypos,
|  | const Standard_ShortReal | Width,
|  | const Standard_ShortReal | Height,
|  | const Standard_ShortReal | Angle = `0.0`
| ) | `[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::DrawPoint | ( | const Standard_ShortReal | X,
|  | const Standard_ShortReal | Y
| ) | `[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT Standard_Boolean Xw_Driver::DrawPolyArc | ( | const Standard_ShortReal | X,
|  | const Standard_ShortReal | Y,
|  | const Standard_ShortReal | anXradius,
|  | const Standard_ShortReal | anYradius,
|  | const Standard_ShortReal | aStartAngle = `0.0`,
|  | const Standard_ShortReal | anOpenAngle = `6.283185`
| ) | `[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::DrawPolygon | ( | const TShort_Array1OfShortReal & | ListX,
|  | const TShort_Array1OfShortReal & | ListY
| ) | `[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::DrawPolyline | ( | const TShort_Array1OfShortReal & | ListX,
|  | const TShort_Array1OfShortReal & | ListY
| ) | `[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::DrawPolyText | ( | const Standard_CString | aText,
|  | const Standard_ShortReal | Xpos,
|  | const Standard_ShortReal | Ypos,
|  | const Quantity_Ratio | aMarge = `0.1`,
|  | const Standard_ShortReal | anAngle = `0.0`,
|  | const Aspect_TypeOfText | aType = `Aspect_TOT_SOLID`
| ) | `[virtual]`

virtual Standard_EXPORT void Xw_Driver::DrawPolyText | ( | const TCollection_ExtendedString & | aText,
|  | const Standard_ShortReal | Xpos,
|  | const Standard_ShortReal | Ypos,
|  | const Quantity_Ratio | aMarge = `0.1`,
|  | const Standard_ShortReal | anAngle = `0.0`,
|  | const Aspect_TypeOfText | aType = `Aspect_TOT_SOLID`
| ) | `[virtual]`

| Implements Aspect_Driver.

Standard_EXPORT void Xw_Driver::DrawRectangle | ( | const Standard_ShortReal | Xpos,
|  | const Standard_ShortReal | Ypos,
|  | const Standard_ShortReal | Angle,
|  | const Standard_ShortReal | Xoffset,
|  | const Standard_ShortReal | Yoffset,
|  | const Standard_ShortReal | Width,
|  | const Standard_ShortReal | Height
| ) | const`[private]`

virtual Standard_EXPORT void Xw_Driver::DrawSegment | ( | const Standard_ShortReal | X1,
|  | const Standard_ShortReal | Y1,
|  | const Standard_ShortReal | X2,
|  | const Standard_ShortReal | Y2
| ) | `[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::DrawText | ( | const Standard_CString | Text,
|  | const Standard_ShortReal | Xpos,
|  | const Standard_ShortReal | Ypos,
|  | const Standard_ShortReal | anAngle = `0.0`,
|  | const Aspect_TypeOfText | aType = `Aspect_TOT_SOLID`
| ) | `[virtual]`

virtual Standard_EXPORT void Xw_Driver::DrawText | ( | const TCollection_ExtendedString & | Text,
|  | const Standard_ShortReal | Xpos,
|  | const Standard_ShortReal | Ypos,
|  | const Standard_ShortReal | anAngle = `0.0`,
|  | const Aspect_TypeOfText | aType = `Aspect_TOT_SOLID`
| ) | `[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::EndDraw | ( | const Standard_Boolean | Synchronize = `Standard_False` | ) | `[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::EraseBuffer | ( | const Standard_Integer | aRetainBuffer | ) | const`[virtual]`

| Implements Aspect_WindowDriver.

virtual Standard_EXPORT void Xw_Driver::FillAndDrawImage | ( | const Handle(Standard_Transient)& | anImageId,
|  | const Standard_ShortReal | aX,
|  | const Standard_ShortReal | aY,
|  | const Standard_Integer | anIndexOfLine,
|  | const Standard_Integer | Width,
|  | const Standard_Integer | Height,
|  | const Standard_Address | anArrayOfPixels
| ) | `[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::FillAndDrawImage | ( | const Handle(Standard_Transient)& | anImageId,
|  | const Standard_ShortReal | aX,
|  | const Standard_ShortReal | aY,
|  | const Standard_Integer | Width,
|  | const Standard_Integer | Height,
|  | const Standard_Address | anArrayOfPixels
| ) | `[virtual]`

| Implements Aspect_Driver.

Standard_EXPORT void Xw_Driver::FillRectangle | ( | const Standard_ShortReal | Xpos,
|  | const Standard_ShortReal | Ypos,
|  | const Standard_ShortReal | Angle,
|  | const Standard_ShortReal | Xoffset,
|  | const Standard_ShortReal | Yoffset,
|  | const Standard_ShortReal | Width,
|  | const Standard_ShortReal | Height
| ) | const`[private]`

virtual Standard_EXPORT void Xw_Driver::FontBoundIndexs | ( | Standard_Integer & | aMinIndex,
|  | Standard_Integer & | aMaxIndex
| ) | const`[virtual]`

| Implements Aspect_WindowDriver.

virtual Standard_EXPORT Standard_CString Xw_Driver::FontSize | ( | Quantity_PlaneAngle & | aSlant,
|  | Standard_ShortReal & | aSize,
|  | Standard_ShortReal & | aBheight,
|  | const Standard_Integer | aFontIndex = `-1`
| ) | const`[virtual]`

| Implements Aspect_WindowDriver.

Standard_EXPORT const Xw_Driver::Handle | ( | Standard_Type |  | ) | const

| Reimplemented from Aspect_WindowDriver.

virtual Standard_EXPORT void Xw_Driver::InitializeColorMap | ( | const Handle(Aspect_ColorMap)& | Colormap | ) | `[protected, virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::InitializeFontMap | ( | const Handle(Aspect_FontMap)& | Fontmap | ) | `[protected, virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::InitializeMarkMap | ( | const Handle(Aspect_MarkMap)& | Markmap | ) | `[protected, virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::InitializeTypeMap | ( | const Handle(Aspect_TypeMap)& | Typemap | ) | `[protected, virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::InitializeWidthMap | ( | const Handle(Aspect_WidthMap)& | Widthmap | ) | `[protected, virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT Standard_Boolean Xw_Driver::IsKnownImage | ( | const Handle(Standard_Transient)& | anImage | ) | `[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT Standard_Integer Xw_Driver::LocalColorIndex | ( | const Standard_Integer | anIndex | ) | const`[virtual]`

| Implements Aspect_WindowDriver.

virtual Standard_EXPORT Standard_Integer Xw_Driver::LocalFontIndex | ( | const Standard_Integer | anIndex | ) | const`[virtual]`

| Implements Aspect_WindowDriver.

virtual Standard_EXPORT Standard_Integer Xw_Driver::LocalMarkIndex | ( | const Standard_Integer | anIndex | ) | const`[virtual]`

| Implements Aspect_WindowDriver.

virtual Standard_EXPORT Standard_Integer Xw_Driver::LocalTypeIndex | ( | const Standard_Integer | anIndex | ) | const`[virtual]`

| Implements Aspect_WindowDriver.

virtual Standard_EXPORT Standard_Integer Xw_Driver::LocalWidthIndex | ( | const Standard_Integer | anIndex | ) | const`[virtual]`

| Implements Aspect_WindowDriver.

virtual Standard_EXPORT void Xw_Driver::MarkBoundIndexs | ( | Standard_Integer & | aMinIndex,
|  | Standard_Integer & | aMaxIndex
| ) | const`[virtual]`

| Implements Aspect_WindowDriver.

virtual Standard_EXPORT void Xw_Driver::MoveBuffer | ( | const Standard_Integer | aRetainBuffer,
|  | const Standard_ShortReal | aPivotX = `0.0`,
|  | const Standard_ShortReal | aPivotY = `0.0`
| ) | const`[virtual]`

| Implements Aspect_WindowDriver.

virtual Standard_EXPORT Standard_Boolean Xw_Driver::OpenBuffer | ( | const Standard_Integer | aRetainBuffer,
|  | const Standard_ShortReal | aPivotX = `0.0`,
|  | const Standard_ShortReal | aPivotY = `0.0`,
|  | const Standard_Integer | aWidthIndex = `0`,
|  | const Standard_Integer | aColorIndex = `0`,
|  | const Standard_Integer | aFontIndex = `0`,
|  | const Aspect_TypeOfDrawMode | aDrawMode = `Aspect_TODM_REPLACE`
| ) | `[virtual]`

| Implements Aspect_WindowDriver.

virtual Standard_EXPORT void Xw_Driver::PositionOfBuffer | ( | const Standard_Integer | aRetainBuffer,
|  | Standard_ShortReal & | aPivotX,
|  | Standard_ShortReal & | aPivotY
| ) | const`[virtual]`

| Implements Aspect_WindowDriver.

static Standard_EXPORT void Xw_Driver::PrintError | ( |  | ) | `[static, protected]`

virtual Standard_EXPORT Aspect_TypeOfResize Xw_Driver::ResizeSpace | ( |  | ) | `[virtual]`

| Implements Aspect_WindowDriver.

virtual Standard_EXPORT void Xw_Driver::RotateBuffer | ( | const Standard_Integer | aRetainBuffer,
|  | const Quantity_PlaneAngle | anAngle = `0.0`
| ) | const`[virtual]`

| Implements Aspect_WindowDriver.

virtual Standard_EXPORT void Xw_Driver::ScaleBuffer | ( | const Standard_Integer | aRetainBuffer,
|  | const Quantity_Factor | aScaleX = `1.0`,
|  | const Quantity_Factor | aScaleY = `1.0`
| ) | const`[virtual]`

| Implements Aspect_WindowDriver.

virtual Standard_EXPORT void Xw_Driver::ScaleOfBuffer | ( | const Standard_Integer | aRetainBuffer,
|  | Quantity_Factor & | aScaleX,
|  | Quantity_Factor & | aScaleY
| ) | const`[virtual]`

| Implements Aspect_WindowDriver.

virtual Standard_EXPORT void Xw_Driver::SetDrawMode | ( | const Aspect_TypeOfDrawMode | aMode | ) | `[virtual]`

| Implements Aspect_WindowDriver.

virtual Standard_EXPORT void Xw_Driver::SetLineAttrib | ( | const Standard_Integer | ColorIndex,
|  | const Standard_Integer | TypeIndex,
|  | const Standard_Integer | WidthIndex
| ) | `[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::SetMarkerAttrib | ( | const Standard_Integer | ColorIndex,
|  | const Standard_Integer | EdgeWidthIndex,
|  | const Standard_Boolean | FillMarker = `Standard_False`
| ) | `[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::SetPolyAttrib | ( | const Standard_Integer | ColorIndex,
|  | const Standard_Integer | TileIndex,
|  | const Standard_Boolean | DrawEdgeFlag = `Standard_False`
| ) | `[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::SetTextAttrib | ( | const Standard_Integer | ColorIndex,
|  | const Standard_Integer | FontIndex,
|  | const Quantity_PlaneAngle | aSlant,
|  | const Quantity_Factor | aHScale,
|  | const Quantity_Factor | aWScale,
|  | const Standard_Boolean | isUnderlined = `Standard_False`
| ) | `[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::SetTextAttrib | ( | const Standard_Integer | ColorIndex,
|  | const Standard_Integer | FontIndex
| ) | `[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT Standard_Boolean Xw_Driver::SizeOfImageFile | ( | const Standard_CString | anImageFile,
|  | Standard_Integer & | aWidth,
|  | Standard_Integer & | aHeight
| ) | const`[virtual]`

| Implements Aspect_Driver.

virtual Standard_EXPORT void Xw_Driver::TextSize | ( | const Standard_CString | aText,
|  | Standard_ShortReal & | aWidth,
|  | Standard_ShortReal & | aHeight,
|  | Standard_ShortReal & | anXoffset,
|  | Standard_ShortReal & | anYoffset,
|  | const Standard_Integer | aFontIndex = `-1`
| ) | const`[virtual]`

virtual Standard_EXPORT void Xw_Driver::TextSize | ( | const TCollection_ExtendedString & | aText,
|  | Standard_ShortReal & | aWidth,
|  | Standard_ShortReal & | aHeight,
|  | Standard_ShortReal & | anXoffset,
|  | Standard_ShortReal & | anYoffset,
|  | const Standard_Integer | aFontIndex = `-1`
| ) | const`[virtual]`

| Implements Aspect_WindowDriver.

virtual Standard_EXPORT void Xw_Driver::TextSize | ( | const TCollection_ExtendedString & | aText,
|  | Standard_ShortReal & | aWidth,
|  | Standard_ShortReal & | aHeight,
|  | const Standard_Integer | aFontIndex = `-1`
| ) | const`[virtual]`

| Implements Aspect_WindowDriver.

virtual Standard_EXPORT void Xw_Driver::TypeBoundIndexs | ( | Standard_Integer & | aMinIndex,
|  | Standard_Integer & | aMaxIndex
| ) | const`[virtual]`

| Implements Aspect_WindowDriver.

virtual Standard_EXPORT void Xw_Driver::WidthBoundIndexs | ( | Standard_Integer & | aMinIndex,
|  | Standard_Integer & | aMaxIndex
| ) | const`[virtual]`

| Implements Aspect_WindowDriver.

virtual Standard_EXPORT void Xw_Driver::WorkSpace | ( | Quantity_Length & | Width,
|  | Quantity_Length & | Heigth
| ) | const`[virtual]`

| Implements Aspect_Driver.

## Field Documentation

Handle_Xw_HListOfIndexs Xw_Driver::MyColorIndexs `[protected]`

Standard_Address Xw_Driver::MyExtendedColorMap `[protected]`

Standard_Address Xw_Driver::MyExtendedDrawable `[protected]`

Standard_Address Xw_Driver::MyExtendedFontMap `[protected]`

Standard_Address Xw_Driver::MyExtendedMarkMap `[protected]`

Standard_Address Xw_Driver::MyExtendedTypeMap `[protected]`

Standard_Address Xw_Driver::MyExtendedWidthMap `[protected]`

Handle_Xw_HListOfIndexs Xw_Driver::MyFontIndexs `[protected]`

Standard_Address Xw_Driver::MyImage `[protected]`

Standard_Integer Xw_Driver::MyLineColor `[protected]`

Standard_Integer Xw_Driver::MyLineType `[protected]`

Standard_Integer Xw_Driver::MyLineWidth `[protected]`

Standard_Integer Xw_Driver::MyMarkerColor `[protected]`

Handle_Xw_HListOfIndexs Xw_Driver::MyMarkerIndexs `[protected]`

Standard_Boolean Xw_Driver::MyMarkerType `[protected]`

Standard_Integer Xw_Driver::MyMarkerWidth `[protected]`

Handle_Xw_HListOfMFTFonts Xw_Driver::MyMFTFonts `[protected]`

Handle_Xw_HListOfMFTSizes Xw_Driver::MyMFTSizes `[protected]`

Standard_Integer Xw_Driver::MyPolyColor `[protected]`

Standard_Integer Xw_Driver::MyPolyTile `[protected]`

Standard_Integer Xw_Driver::MyPolyType `[protected]`

Aspect_TypeOfPrimitive Xw_Driver::MyPrimitiveType `[protected]`

Standard_Integer Xw_Driver::MyTextColor `[protected]`

Standard_Integer Xw_Driver::MyTextFont `[protected]`

Standard_Real Xw_Driver::MyTextHScale `[protected]`

Standard_Real Xw_Driver::MyTextHSize `[protected]`

Standard_Boolean Xw_Driver::MyTextIsUnderlined `[protected]`

Handle_Xw_TextManager Xw_Driver::MyTextManager `[protected]`

Standard_Real Xw_Driver::MyTextMinHeight `[protected]`

Standard_Real Xw_Driver::MyTextSlant `[protected]`

Standard_Integer Xw_Driver::MyTextType `[protected]`

Standard_Real Xw_Driver::MyTextWScale `[protected]`

Standard_Real Xw_Driver::MyTextWSize `[protected]`

Handle_Xw_HListOfIndexs Xw_Driver::MyTypeIndexs `[protected]`

Xw_TypeOfVisual Xw_Driver::MyVisualClass `[protected]`

Handle_Xw_HListOfIndexs Xw_Driver::MyWidthIndexs `[protected]`

The documentation for this class was generated from the following file:

- Xw_Driver.hxx