# Visualization
TKV2d
Graphic2d

# Graphic2d_Drawer Class Reference

A Drawer groups all conversion methods.
.

`#include <Graphic2d_Drawer.hxx>`

Inheritance diagram for Graphic2d_Drawer:

[legend]

## Public Member Functions

Standard_EXPORT | Graphic2d_Drawer ()
| A drawer is : - a driver - a "map from" and a "map to" - attributes .
Standard_EXPORT void | SetDriver (const Handle(Aspect_Driver)&aDriver)
| Associates the driver <adriver> to the drawer <me>. .
Standard_EXPORT Handle_Aspect_Driver | Driver () const
| Returns the associated driver. Warning: Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT Standard_Boolean | IsWindowDriver () const
| Returns TRUE if the driver is a window driver. .
Standard_EXPORT Handle_Aspect_WindowDriver | WindowDriver () const
| Returns the associated window driver. Warning: Raises DrawerDefinitionError if the associated driver is not defined or is not a WindowDriver. .
Standard_EXPORT Standard_Boolean | IsPlotterDriver () const
| Returns TRUE if the driver is a plotter driver. .
Standard_EXPORT Handle_PlotMgt_PlotterDriver | PlotterDriver () const
| Returns the associated plotter driver. Warning: Raises DrawerDefinitionError if the associated driver is not defined or is not a PlotterDriver .
Standard_EXPORT void | SetDrawPrecision (const Standard_Real aPrecision, const Standard_Real aCoefficient, const Aspect_TypeOfDeflection aType)

Sets the chordal deviation.
<aprecision> is the chordal deviation when the type of
deflection is Aspect_TOD_ABSOLUTE.
<acoefficient> is used when when the type of
deflection is Aspect_TOD_RELATIVE.
TypeOfDeflection is :
Aspect_TOD_RELATIVE
Aspect_TOD_ABSOLUTE
TypeOfDeflection defines if the maximal chordal deviation
used when drawing an object is absolute or relative to the
size of the object.
Warning: Specify a chordal deviation that is smaller than the
workstation pixel size will not improve the display,
but will slow the drawing.
.

Standard_EXPORT void | DrawPrecision (Standard_ShortReal &aPrecision, Standard_ShortReal &aCoefficient, Aspect_TypeOfDeflection &aType) const
| Returns the chordal deviation. .
Standard_EXPORT void | SetTextPrecision (const Standard_ShortReal aPrecision)
| Sets the Text precision in METER Any text is displayed only if his height is greater than .
Standard_EXPORT Standard_ShortReal | TextPrecision () const
| Returns the Text precision in METER. .
Standard_EXPORT void | SetValues (const Standard_Real XF, const Standard_Real YF, const Standard_Real SF, const Standard_Real XT, const Standard_Real YT, const Standard_Real ST, const Standard_Real ZF)
| Defines the "map from" and the "map to" of the drawer. The "map from" is defined by the viewmapping. The "map to" is defined by the device. example : the X window for a X driver. .
Standard_EXPORT void | Values (Standard_ShortReal &XF, Standard_ShortReal &YF, Standard_ShortReal &SF, Standard_ShortReal &XT, Standard_ShortReal &YT, Standard_ShortReal &ST, Standard_ShortReal &ZF) const
| Returns the "map from" and the "map to". .
Standard_EXPORT void | SetOverride (const Standard_Boolean aValue)
| Manages the highlight, if the highlight color index is defined (No default value) .
Standard_EXPORT void | SetOverrideColor (const Standard_Integer anIndex)
| Sets the highlight color index. Warning: No default value. .
Standard_EXPORT void | SetOffSet (const Standard_Integer anOffSet)
| Specifies an offset applied to the original color index when drawing a primitives, those already created and the future one. Warning: To reset the real color of the primitives when drawing then this method is called with <anoffset> = 0. .
virtual Standard_EXPORT void | SetLineAttrib (const Standard_Integer ColorIndex, const Standard_Integer TypeIndex, const Standard_Integer WidthIndex)
| Methods to define the Current Line Attributes Warning: Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | SetMarkerAttrib (const Standard_Integer ColorIndex, const Standard_Integer WidthIndex, const Standard_Boolean FillMarker)
| Methods to define the Current Marker Attributes Warning: Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | SetPolyAttrib (const Standard_Integer ColorIndex, const Standard_Integer TileIndex, const Standard_Boolean DrawEdge)
| Methods to define the Current polygon Attributes Warning: Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | SetHidingPolyAttrib (const Standard_Integer HidingColorIndex, const Standard_Integer FrameColorIndex, const Standard_Integer FrameTypeIndex, const Standard_Integer FrameWidthIndex)
| Methods to define the Current hiding polygon Attributes Warning: Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | SetTextAttrib (const Standard_Integer ColorIndex, const Standard_Integer FontIndex, const Standard_ShortReal aSlant, const Standard_ShortReal aHScale, const Standard_ShortReal aWScale, const Standard_Boolean isUnderlined)
| Methods to define the Current Text Attributes Warning: Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | SetHidingTextAttrib (const Standard_Integer ColorIndex, const Standard_Integer HidingColorIndex, const Standard_Integer FrameColorIndex, const Standard_Integer FrameWidthIndex, const Standard_Integer FontIndex, const Standard_ShortReal aSlant, const Standard_ShortReal aHScale, const Standard_ShortReal aWScale, const Standard_Boolean isUnderlined)
| Methods to define the Current Hiding Text Attributes Warning: Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | SetFramedTextAttrib (const Standard_Integer ColorIndex, const Standard_Integer FrameColorIndex, const Standard_Integer FrameWidthIndex, const Standard_Integer FontIndex, const Standard_ShortReal aSlant, const Standard_ShortReal aHScale, const Standard_ShortReal aWScale, const Standard_Boolean isUnderlined)
| Methods to define the Current Framed Text Attributes Category: Methods to manage the attributes Warning: Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT Standard_Boolean | IsKnownImage (const Handle(Standard_Transient)&anImageId)
| Returns Standard_True if the associated driver have stored the image and Standard_False if not. For example, returns Standard_True if the associated driver is a X Driver. Category: Methods to manage the images Warning: Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | ClearImage (const Handle(Standard_Transient)&anImageId)
| Clears the image in the associated driver. Category: Methods to manage the images Warning: Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | DrawImage (const Handle(Standard_Transient)&anImageId, const Standard_ShortReal aX, const Standard_ShortReal aY)
| Draws the image in the associated driver. <ax>, <ay> is the center of the image. Category: Methods to manage the images Warning: Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | ClearImageFile (const Standard_CString aName)
| Clears the image file in the associated driver. Category: Methods to manage the images Warning: Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | DrawImageFile (const Standard_CString aName, const Standard_ShortReal aX, const Standard_ShortReal aY, const Quantity_Factor aScale)
| Draws the image in the associated driver. <ax>, <ay> is the center of the image. <ascale> = (if the image is zoomable) initial scale factor of the image * scale factor of the view. <ascale> = (if the image is not zoomable) initial scale factor of the image Category: Methods to manage the images Warning: Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | FillAndDrawImage (const Handle(Standard_Transient)&anImageId, const Standard_ShortReal aX, const Standard_ShortReal aY, const Standard_Integer aWidth, const Standard_Integer aHeight, const Standard_Address anArrayOfPixels)
| Stores a complete image and draws it in the associated driver. <ax>, <ay> is ???? Category: Methods to manage the images Warning: Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | FillAndDrawImage (const Handle(Standard_Transient)&anImageId, const Standard_ShortReal aX, const Standard_ShortReal aY, const Standard_Integer anIndexOfLine, const Standard_Integer aWidth, const Standard_Integer aHeight, const Standard_Address anArrayOfPixels)
| Stores a line of an image and draws it in the associated driver. <ax>, <ay> is ???? Category: Methods to manage the images Warning: Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | GetMapFrom (const Standard_ShortReal x1, const Standard_ShortReal y1, Standard_ShortReal &x2, Standard_ShortReal &y2) const
| Category: Convert methods .
Standard_EXPORT void | GetMapFromTo (const Standard_ShortReal x1, const Standard_ShortReal y1, Standard_ShortReal &x2, Standard_ShortReal &y2) const
virtual Standard_EXPORT Standard_Boolean | GetTextSize (const TCollection_ExtendedString &aText, Standard_ShortReal &aWidth, Standard_ShortReal &aHeight) const
| Get text size in world space with the current text attributes and returns TRUE if the driver is enabled to get the right size (WindowDriver ONLY!). Category: Convert methods .
Standard_EXPORT Standard_Boolean | GetTextSize (const TCollection_ExtendedString &aText, Standard_ShortReal &aWidth, Standard_ShortReal &aHeight, Standard_ShortReal &anXoffset, Standard_ShortReal &anYoffset) const
| Get text size and offsets in world space with the current text attributes and returns TRUE if the driver is enabled to get the right size (WindowDriver ONLY!). 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. Warning : SetTextAttrib(...) must be call before. Category: Convert methods .
Standard_EXPORT Standard_Boolean | GetFontSize (Standard_ShortReal &aHeight, Standard_ShortReal &aBheight, Standard_ShortReal &aSlant) const
| Get font height,baseline height and slant in world space with the current text attributes and returns TRUE if the driver is enabled to get the right size (WindowDriver ONLY!). Warning : SetTextAttrib(...) must be call before. Category: Convert methods .
Standard_EXPORT Standard_Boolean | GetImageSize (const Standard_CString aFileName, Standard_ShortReal &aWidth, Standard_ShortReal &aHeight) const
| Get image size in world space and returns TRUE if the driver is enabled to get the right size (WindowDriver ONLY!). .
Standard_EXPORT Standard_Boolean | GetImageSize (const Standard_CString aFileName, Standard_Integer &aWidth, Standard_Integer &aHeight) const
| Get image size in pixel space and returns TRUE if the driver is enabled to get the right size (WindowDriver ONLY!). .
Standard_EXPORT void | UnMapFromTo (const Standard_ShortReal x1, const Standard_ShortReal y1, Standard_ShortReal &x2, Standard_ShortReal &y2) const
Standard_EXPORT Standard_ShortReal | Convert (const Standard_ShortReal aValue) const
Standard_EXPORT Standard_ShortReal | Convert (const Standard_Integer aValue) const
Standard_EXPORT Standard_ShortReal | ConvertMapToFrom (const Standard_ShortReal x) const
Standard_EXPORT Standard_ShortReal | Scale () const
Standard_EXPORT void | DrawSegment (const Standard_ShortReal x1, const Standard_ShortReal y1, const Standard_ShortReal x2, const Standard_ShortReal y2)
| Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | DrawPolyline (const Standard_Real aDeltaX, const Standard_Real aDeltaY, const TShort_Array1OfShortReal &aListX, const TShort_Array1OfShortReal &aListY)
| Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | DrawPolygon (const Standard_Real aDeltaX, const Standard_Real aDeltaY, const TShort_Array1OfShortReal &aListX, const TShort_Array1OfShortReal &aListY)
| Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | DrawArc (const Standard_Real aDeltaX, const Standard_Real aDeltaY, const Standard_ShortReal aRadius, const Standard_ShortReal angle1, const Standard_ShortReal angle2)
| Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | DrawPolyArc (const Standard_Real aDeltaX, const Standard_Real aDeltaY, const Standard_ShortReal aRadius, const Standard_ShortReal angle1, const Standard_ShortReal angle2)
| Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | DrawInfiniteLine (const Standard_ShortReal x, const Standard_ShortReal y, const Standard_ShortReal dx, const Standard_ShortReal dy)
| Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | DrawMarker (const Standard_Integer anindex, const Standard_ShortReal x, const Standard_ShortReal y, const Standard_ShortReal awidth, const Standard_ShortReal anheight, const Standard_ShortReal angle)
| Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | DrawText (const TCollection_ExtendedString &aText, const Standard_ShortReal x, const Standard_ShortReal y, const Standard_ShortReal angle, const Aspect_TypeOfText aType)
| Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | DrawPolyText (const TCollection_ExtendedString &aText, const Standard_ShortReal x, const Standard_ShortReal y, const Standard_ShortReal angle, const Standard_ShortReal margin, const Aspect_TypeOfText aType)
| Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | DrawFramedText (const TCollection_ExtendedString &aText, const Standard_ShortReal x, const Standard_ShortReal y, const Standard_ShortReal angle, const Standard_ShortReal margin, const Aspect_TypeOfText aType)
| Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | MapInfiniteLineFromTo (const Standard_ShortReal x, const Standard_ShortReal y, const Standard_ShortReal dx, const Standard_ShortReal dy)
| Raises DrawerDefinitionError if the associated driver is not defined. .
virtual Standard_EXPORT void | MapSegmentFromTo (const Standard_ShortReal x1, const Standard_ShortReal y1, const Standard_ShortReal x2, const Standard_ShortReal y2, const Standard_Integer aMode=0)
| RRaises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | MapMarkerFromTo (const Standard_Integer anindex, const Standard_ShortReal x, const Standard_ShortReal y, const Standard_ShortReal awidth, const Standard_ShortReal anheight, const Standard_ShortReal angle, const Standard_Integer aMode=0)
| Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | MapMarkersFromTo (const Standard_Integer index, const Handle(TShort_HArray1OfShortReal)&x, const Handle(TShort_HArray1OfShortReal)&y, const Standard_ShortReal awidth, const Standard_ShortReal anheight, const Standard_ShortReal angle, const Standard_Integer aMode=0)
| Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | MapPolylineFromTo (const TShort_Array1OfShortReal &aListX, const TShort_Array1OfShortReal &aListY, const Standard_Integer aNumber=0)
| Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | MapPolylineFromTo (const Standard_ShortReal x, const Standard_ShortReal y, const Standard_Integer aMode=0)
| Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | MapPolygonFromTo (const TShort_Array1OfShortReal &aListX, const TShort_Array1OfShortReal &aListY, const Standard_Integer aNumber=0)
| Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | MapPolygonFromTo (const Standard_ShortReal x, const Standard_ShortReal y, const Standard_Integer aMode=0)
| Raises DrawerDefinitionError if the associated driver is not defined. .
virtual Standard_EXPORT void | MapTextFromTo (const TCollection_ExtendedString &aText, const Standard_ShortReal x, const Standard_ShortReal y, const Standard_ShortReal angle, const Standard_ShortReal aDeltax, const Standard_ShortReal aDeltay, const Aspect_TypeOfText aType)
| Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | MapPolyTextFromTo (const TCollection_ExtendedString &aText, const Standard_ShortReal x, const Standard_ShortReal y, const Standard_ShortReal angle, const Standard_ShortReal margin, const Standard_ShortReal aDeltax, const Standard_ShortReal aDeltay, const Aspect_TypeOfText aType)
| Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | MapFramedTextFromTo (const TCollection_ExtendedString &aText, const Standard_ShortReal x, const Standard_ShortReal y, const Standard_ShortReal angle, const Standard_ShortReal margin, const Standard_ShortReal aDeltax, const Standard_ShortReal aDeltay, const Aspect_TypeOfText aType)
| Raises DrawerDefinitionError if the associated driver is not defined. .
virtual Standard_EXPORT void | MapArcFromTo (const Standard_ShortReal x, const Standard_ShortReal y, const Standard_ShortReal aRadius, const Standard_ShortReal angle1, const Standard_ShortReal angle2, const Standard_Integer aMode=0)
| Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | MapPolyArcFromTo (const Standard_ShortReal x, const Standard_ShortReal y, const Standard_ShortReal aRadius, const Standard_ShortReal angle1, const Standard_ShortReal angle2, const Standard_Integer aMode=0)
| Raises DrawerDefinitionError if the associated driver is not defined. .
Standard_EXPORT void | SetRejection (const Standard_Boolean aClipFlag)
| Sets the clipping flag with <aclipflag> value. .
Standard_EXPORT Standard_Boolean | IsIn (const Standard_ShortReal aMinX, const Standard_ShortReal aMaxX, const Standard_ShortReal aMinY, const Standard_ShortReal aMaxY) const
| Returns Standard_True if the given min max intersects with the drawer space. Called by the method Draw of a primitive. IsIn permits the rejection of the primitive only if the Clipping flag is TRUE. When the Clipping flag is FALSE,this method returns always TRUE. .
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const

## Protected Attributes

Standard_ShortReal | myDrawPrecision
Standard_Real | myDeflectionCoefficient
Aspect_TypeOfDeflection | myTypeOfDeflection
Standard_ShortReal | mySpaceWidth
Standard_ShortReal | mySpaceHeight
Aspect_DriverPtr | myDriver
Standard_Boolean | myDriverIsDefined
Aspect_WindowDriverPtr | myWDriver
PlotMgt_PlotterDriverPtr | myPDriver
Standard_Boolean | myMinMaxIsActivated
Standard_ShortReal | myMinX
Standard_ShortReal | myMinY
Standard_ShortReal | myMaxX
Standard_ShortReal | myMaxY
Standard_Boolean | myClippingIsActivated

## Private Attributes

Standard_ShortReal | myXF
Standard_ShortReal | myYF
Standard_ShortReal | mySF
Standard_ShortReal | myXT
Standard_ShortReal | myYT
Standard_ShortReal | myST
Standard_ShortReal | myZF
Standard_ShortReal | myTextPrecision
Standard_Integer | myOverrideColor
Standard_Boolean | myOverride
Standard_Integer | myOffSet

## Constructor & Destructor Documentation

Standard_EXPORT Graphic2d_Drawer::Graphic2d_Drawer | ( |  | ) |

## Member Function Documentation

Standard_EXPORT void Graphic2d_Drawer::ClearImage | ( | const Handle(Standard_Transient)& | anImageId | ) |

Standard_EXPORT void Graphic2d_Drawer::ClearImageFile | ( | const Standard_CString | aName | ) |

Standard_EXPORT Standard_ShortReal Graphic2d_Drawer::Convert | ( | const Standard_Integer | aValue | ) | const

Standard_EXPORT Standard_ShortReal Graphic2d_Drawer::Convert | ( | const Standard_ShortReal | aValue | ) | const

Standard_EXPORT Standard_ShortReal Graphic2d_Drawer::ConvertMapToFrom | ( | const Standard_ShortReal | x | ) | const

Standard_EXPORT void Graphic2d_Drawer::DrawArc | ( | const Standard_Real | aDeltaX,
|  | const Standard_Real | aDeltaY,
|  | const Standard_ShortReal | aRadius,
|  | const Standard_ShortReal | angle1,
|  | const Standard_ShortReal | angle2
| ) |

Standard_EXPORT void Graphic2d_Drawer::DrawFramedText | ( | const TCollection_ExtendedString & | aText,
|  | const Standard_ShortReal | x,
|  | const Standard_ShortReal | y,
|  | const Standard_ShortReal | angle,
|  | const Standard_ShortReal | margin,
|  | const Aspect_TypeOfText | aType
| ) |

Standard_EXPORT void Graphic2d_Drawer::DrawImage | ( | const Handle(Standard_Transient)& | anImageId,
|  | const Standard_ShortReal | aX,
|  | const Standard_ShortReal | aY
| ) |

Standard_EXPORT void Graphic2d_Drawer::DrawImageFile | ( | const Standard_CString | aName,
|  | const Standard_ShortReal | aX,
|  | const Standard_ShortReal | aY,
|  | const Quantity_Factor | aScale
| ) |

Standard_EXPORT void Graphic2d_Drawer::DrawInfiniteLine | ( | const Standard_ShortReal | x,
|  | const Standard_ShortReal | y,
|  | const Standard_ShortReal | dx,
|  | const Standard_ShortReal | dy
| ) |

Standard_EXPORT void Graphic2d_Drawer::DrawMarker | ( | const Standard_Integer | anindex,
|  | const Standard_ShortReal | x,
|  | const Standard_ShortReal | y,
|  | const Standard_ShortReal | awidth,
|  | const Standard_ShortReal | anheight,
|  | const Standard_ShortReal | angle
| ) |

Standard_EXPORT void Graphic2d_Drawer::DrawPolyArc | ( | const Standard_Real | aDeltaX,
|  | const Standard_Real | aDeltaY,
|  | const Standard_ShortReal | aRadius,
|  | const Standard_ShortReal | angle1,
|  | const Standard_ShortReal | angle2
| ) |

Standard_EXPORT void Graphic2d_Drawer::DrawPolygon | ( | const Standard_Real | aDeltaX,
|  | const Standard_Real | aDeltaY,
|  | const TShort_Array1OfShortReal & | aListX,
|  | const TShort_Array1OfShortReal & | aListY
| ) |

Standard_EXPORT void Graphic2d_Drawer::DrawPolyline | ( | const Standard_Real | aDeltaX,
|  | const Standard_Real | aDeltaY,
|  | const TShort_Array1OfShortReal & | aListX,
|  | const TShort_Array1OfShortReal & | aListY
| ) |

Standard_EXPORT void Graphic2d_Drawer::DrawPolyText | ( | const TCollection_ExtendedString & | aText,
|  | const Standard_ShortReal | x,
|  | const Standard_ShortReal | y,
|  | const Standard_ShortReal | angle,
|  | const Standard_ShortReal | margin,
|  | const Aspect_TypeOfText | aType
| ) |

Standard_EXPORT void Graphic2d_Drawer::DrawPrecision | ( | Standard_ShortReal & | aPrecision,
|  | Standard_ShortReal & | aCoefficient,
|  | Aspect_TypeOfDeflection & | aType
| ) | const

Standard_EXPORT void Graphic2d_Drawer::DrawSegment | ( | const Standard_ShortReal | x1,
|  | const Standard_ShortReal | y1,
|  | const Standard_ShortReal | x2,
|  | const Standard_ShortReal | y2
| ) |

Standard_EXPORT void Graphic2d_Drawer::DrawText | ( | const TCollection_ExtendedString & | aText,
|  | const Standard_ShortReal | x,
|  | const Standard_ShortReal | y,
|  | const Standard_ShortReal | angle,
|  | const Aspect_TypeOfText | aType
| ) |

Standard_EXPORT Handle_Aspect_Driver Graphic2d_Drawer::Driver | ( |  | ) | const

Standard_EXPORT void Graphic2d_Drawer::FillAndDrawImage | ( | const Handle(Standard_Transient)& | anImageId,
|  | const Standard_ShortReal | aX,
|  | const Standard_ShortReal | aY,
|  | const Standard_Integer | anIndexOfLine,
|  | const Standard_Integer | aWidth,
|  | const Standard_Integer | aHeight,
|  | const Standard_Address | anArrayOfPixels
| ) |

Standard_EXPORT void Graphic2d_Drawer::FillAndDrawImage | ( | const Handle(Standard_Transient)& | anImageId,
|  | const Standard_ShortReal | aX,
|  | const Standard_ShortReal | aY,
|  | const Standard_Integer | aWidth,
|  | const Standard_Integer | aHeight,
|  | const Standard_Address | anArrayOfPixels
| ) |

Standard_EXPORT Standard_Boolean Graphic2d_Drawer::GetFontSize | ( | Standard_ShortReal & | aHeight,
|  | Standard_ShortReal & | aBheight,
|  | Standard_ShortReal & | aSlant
| ) | const

Standard_EXPORT Standard_Boolean Graphic2d_Drawer::GetImageSize | ( | const Standard_CString | aFileName,
|  | Standard_Integer & | aWidth,
|  | Standard_Integer & | aHeight
| ) | const

Standard_EXPORT Standard_Boolean Graphic2d_Drawer::GetImageSize | ( | const Standard_CString | aFileName,
|  | Standard_ShortReal & | aWidth,
|  | Standard_ShortReal & | aHeight
| ) | const

Standard_EXPORT void Graphic2d_Drawer::GetMapFrom | ( | const Standard_ShortReal | x1,
|  | const Standard_ShortReal | y1,
|  | Standard_ShortReal & | x2,
|  | Standard_ShortReal & | y2
| ) | const

Standard_EXPORT void Graphic2d_Drawer::GetMapFromTo | ( | const Standard_ShortReal | x1,
|  | const Standard_ShortReal | y1,
|  | Standard_ShortReal & | x2,
|  | Standard_ShortReal & | y2
| ) | const

Standard_EXPORT Standard_Boolean Graphic2d_Drawer::GetTextSize | ( | const TCollection_ExtendedString & | aText,
|  | Standard_ShortReal & | aWidth,
|  | Standard_ShortReal & | aHeight,
|  | Standard_ShortReal & | anXoffset,
|  | Standard_ShortReal & | anYoffset
| ) | const

virtual Standard_EXPORT Standard_Boolean Graphic2d_Drawer::GetTextSize | ( | const TCollection_ExtendedString & | aText,
|  | Standard_ShortReal & | aWidth,
|  | Standard_ShortReal & | aHeight
| ) | const`[virtual]`

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

| Reimplemented in Graphic2d_TransientManager.

Standard_EXPORT Standard_Boolean Graphic2d_Drawer::IsIn | ( | const Standard_ShortReal | aMinX,
|  | const Standard_ShortReal | aMaxX,
|  | const Standard_ShortReal | aMinY,
|  | const Standard_ShortReal | aMaxY
| ) | const

Standard_EXPORT Standard_Boolean Graphic2d_Drawer::IsKnownImage | ( | const Handle(Standard_Transient)& | anImageId | ) |

Standard_EXPORT Standard_Boolean Graphic2d_Drawer::IsPlotterDriver | ( |  | ) | const

Standard_EXPORT Standard_Boolean Graphic2d_Drawer::IsWindowDriver | ( |  | ) | const

virtual Standard_EXPORT void Graphic2d_Drawer::MapArcFromTo | ( | const Standard_ShortReal | x,
|  | const Standard_ShortReal | y,
|  | const Standard_ShortReal | aRadius,
|  | const Standard_ShortReal | angle1,
|  | const Standard_ShortReal | angle2,
|  | const Standard_Integer | aMode = `0`
| ) | `[virtual]`

Standard_EXPORT void Graphic2d_Drawer::MapFramedTextFromTo | ( | const TCollection_ExtendedString & | aText,
|  | const Standard_ShortReal | x,
|  | const Standard_ShortReal | y,
|  | const Standard_ShortReal | angle,
|  | const Standard_ShortReal | margin,
|  | const Standard_ShortReal | aDeltax,
|  | const Standard_ShortReal | aDeltay,
|  | const Aspect_TypeOfText | aType
| ) |

Standard_EXPORT void Graphic2d_Drawer::MapInfiniteLineFromTo | ( | const Standard_ShortReal | x,
|  | const Standard_ShortReal | y,
|  | const Standard_ShortReal | dx,
|  | const Standard_ShortReal | dy
| ) |

Standard_EXPORT void Graphic2d_Drawer::MapMarkerFromTo | ( | const Standard_Integer | anindex,
|  | const Standard_ShortReal | x,
|  | const Standard_ShortReal | y,
|  | const Standard_ShortReal | awidth,
|  | const Standard_ShortReal | anheight,
|  | const Standard_ShortReal | angle,
|  | const Standard_Integer | aMode = `0`
| ) |

Standard_EXPORT void Graphic2d_Drawer::MapMarkersFromTo | ( | const Standard_Integer | index,
|  | const Handle(TShort_HArray1OfShortReal)& | x,
|  | const Handle(TShort_HArray1OfShortReal)& | y,
|  | const Standard_ShortReal | awidth,
|  | const Standard_ShortReal | anheight,
|  | const Standard_ShortReal | angle,
|  | const Standard_Integer | aMode = `0`
| ) |

Standard_EXPORT void Graphic2d_Drawer::MapPolyArcFromTo | ( | const Standard_ShortReal | x,
|  | const Standard_ShortReal | y,
|  | const Standard_ShortReal | aRadius,
|  | const Standard_ShortReal | angle1,
|  | const Standard_ShortReal | angle2,
|  | const Standard_Integer | aMode = `0`
| ) |

Standard_EXPORT void Graphic2d_Drawer::MapPolygonFromTo | ( | const Standard_ShortReal | x,
|  | const Standard_ShortReal | y,
|  | const Standard_Integer | aMode = `0`
| ) |

Standard_EXPORT void Graphic2d_Drawer::MapPolygonFromTo | ( | const TShort_Array1OfShortReal & | aListX,
|  | const TShort_Array1OfShortReal & | aListY,
|  | const Standard_Integer | aNumber = `0`
| ) |

Standard_EXPORT void Graphic2d_Drawer::MapPolylineFromTo | ( | const Standard_ShortReal | x,
|  | const Standard_ShortReal | y,
|  | const Standard_Integer | aMode = `0`
| ) |

Standard_EXPORT void Graphic2d_Drawer::MapPolylineFromTo | ( | const TShort_Array1OfShortReal & | aListX,
|  | const TShort_Array1OfShortReal & | aListY,
|  | const Standard_Integer | aNumber = `0`
| ) |

Standard_EXPORT void Graphic2d_Drawer::MapPolyTextFromTo | ( | const TCollection_ExtendedString & | aText,
|  | const Standard_ShortReal | x,
|  | const Standard_ShortReal | y,
|  | const Standard_ShortReal | angle,
|  | const Standard_ShortReal | margin,
|  | const Standard_ShortReal | aDeltax,
|  | const Standard_ShortReal | aDeltay,
|  | const Aspect_TypeOfText | aType
| ) |

virtual Standard_EXPORT void Graphic2d_Drawer::MapSegmentFromTo | ( | const Standard_ShortReal | x1,
|  | const Standard_ShortReal | y1,
|  | const Standard_ShortReal | x2,
|  | const Standard_ShortReal | y2,
|  | const Standard_Integer | aMode = `0`
| ) | `[virtual]`

virtual Standard_EXPORT void Graphic2d_Drawer::MapTextFromTo | ( | const TCollection_ExtendedString & | aText,
|  | const Standard_ShortReal | x,
|  | const Standard_ShortReal | y,
|  | const Standard_ShortReal | angle,
|  | const Standard_ShortReal | aDeltax,
|  | const Standard_ShortReal | aDeltay,
|  | const Aspect_TypeOfText | aType
| ) | `[virtual]`

Standard_EXPORT Handle_PlotMgt_PlotterDriver Graphic2d_Drawer::PlotterDriver | ( |  | ) | const

Standard_EXPORT Standard_ShortReal Graphic2d_Drawer::Scale | ( |  | ) | const

Standard_EXPORT void Graphic2d_Drawer::SetDrawPrecision | ( | const Standard_Real | aPrecision,
|  | const Standard_Real | aCoefficient,
|  | const Aspect_TypeOfDeflection | aType
| ) |

Standard_EXPORT void Graphic2d_Drawer::SetDriver | ( | const Handle(Aspect_Driver)& | aDriver | ) |

Standard_EXPORT void Graphic2d_Drawer::SetFramedTextAttrib | ( | const Standard_Integer | ColorIndex,
|  | const Standard_Integer | FrameColorIndex,
|  | const Standard_Integer | FrameWidthIndex,
|  | const Standard_Integer | FontIndex,
|  | const Standard_ShortReal | aSlant,
|  | const Standard_ShortReal | aHScale,
|  | const Standard_ShortReal | aWScale,
|  | const Standard_Boolean | isUnderlined
| ) |

Standard_EXPORT void Graphic2d_Drawer::SetHidingPolyAttrib | ( | const Standard_Integer | HidingColorIndex,
|  | const Standard_Integer | FrameColorIndex,
|  | const Standard_Integer | FrameTypeIndex,
|  | const Standard_Integer | FrameWidthIndex
| ) |

Standard_EXPORT void Graphic2d_Drawer::SetHidingTextAttrib | ( | const Standard_Integer | ColorIndex,
|  | const Standard_Integer | HidingColorIndex,
|  | const Standard_Integer | FrameColorIndex,
|  | const Standard_Integer | FrameWidthIndex,
|  | const Standard_Integer | FontIndex,
|  | const Standard_ShortReal | aSlant,
|  | const Standard_ShortReal | aHScale,
|  | const Standard_ShortReal | aWScale,
|  | const Standard_Boolean | isUnderlined
| ) |

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

Standard_EXPORT void Graphic2d_Drawer::SetMarkerAttrib | ( | const Standard_Integer | ColorIndex,
|  | const Standard_Integer | WidthIndex,
|  | const Standard_Boolean | FillMarker
| ) |

Standard_EXPORT void Graphic2d_Drawer::SetOffSet | ( | const Standard_Integer | anOffSet | ) |

Standard_EXPORT void Graphic2d_Drawer::SetOverride | ( | const Standard_Boolean | aValue | ) |

Standard_EXPORT void Graphic2d_Drawer::SetOverrideColor | ( | const Standard_Integer | anIndex | ) |

Standard_EXPORT void Graphic2d_Drawer::SetPolyAttrib | ( | const Standard_Integer | ColorIndex,
|  | const Standard_Integer | TileIndex,
|  | const Standard_Boolean | DrawEdge
| ) |

Standard_EXPORT void Graphic2d_Drawer::SetRejection | ( | const Standard_Boolean | aClipFlag | ) |

Standard_EXPORT void Graphic2d_Drawer::SetTextAttrib | ( | const Standard_Integer | ColorIndex,
|  | const Standard_Integer | FontIndex,
|  | const Standard_ShortReal | aSlant,
|  | const Standard_ShortReal | aHScale,
|  | const Standard_ShortReal | aWScale,
|  | const Standard_Boolean | isUnderlined
| ) |

Standard_EXPORT void Graphic2d_Drawer::SetTextPrecision | ( | const Standard_ShortReal | aPrecision | ) |

Standard_EXPORT void Graphic2d_Drawer::SetValues | ( | const Standard_Real | XF,
|  | const Standard_Real | YF,
|  | const Standard_Real | SF,
|  | const Standard_Real | XT,
|  | const Standard_Real | YT,
|  | const Standard_Real | ST,
|  | const Standard_Real | ZF
| ) |

Standard_EXPORT Standard_ShortReal Graphic2d_Drawer::TextPrecision | ( |  | ) | const

Standard_EXPORT void Graphic2d_Drawer::UnMapFromTo | ( | const Standard_ShortReal | x1,
|  | const Standard_ShortReal | y1,
|  | Standard_ShortReal & | x2,
|  | Standard_ShortReal & | y2
| ) | const

Standard_EXPORT void Graphic2d_Drawer::Values | ( | Standard_ShortReal & | XF,
|  | Standard_ShortReal & | YF,
|  | Standard_ShortReal & | SF,
|  | Standard_ShortReal & | XT,
|  | Standard_ShortReal & | YT,
|  | Standard_ShortReal & | ST,
|  | Standard_ShortReal & | ZF
| ) | const

Standard_EXPORT Handle_Aspect_WindowDriver Graphic2d_Drawer::WindowDriver | ( |  | ) | const

## Field Documentation

Standard_Boolean Graphic2d_Drawer::myClippingIsActivated `[protected]`

Standard_Real Graphic2d_Drawer::myDeflectionCoefficient `[protected]`

Standard_ShortReal Graphic2d_Drawer::myDrawPrecision `[protected]`

Aspect_DriverPtr Graphic2d_Drawer::myDriver `[protected]`

Standard_Boolean Graphic2d_Drawer::myDriverIsDefined `[protected]`

Standard_ShortReal Graphic2d_Drawer::myMaxX `[protected]`

Standard_ShortReal Graphic2d_Drawer::myMaxY `[protected]`

Standard_Boolean Graphic2d_Drawer::myMinMaxIsActivated `[protected]`

Standard_ShortReal Graphic2d_Drawer::myMinX `[protected]`

Standard_ShortReal Graphic2d_Drawer::myMinY `[protected]`

Standard_Integer Graphic2d_Drawer::myOffSet `[private]`

Standard_Boolean Graphic2d_Drawer::myOverride `[private]`

Standard_Integer Graphic2d_Drawer::myOverrideColor `[private]`

PlotMgt_PlotterDriverPtr Graphic2d_Drawer::myPDriver `[protected]`

Standard_ShortReal Graphic2d_Drawer::mySF `[private]`

Standard_ShortReal Graphic2d_Drawer::mySpaceHeight `[protected]`

Standard_ShortReal Graphic2d_Drawer::mySpaceWidth `[protected]`

Standard_ShortReal Graphic2d_Drawer::myST `[private]`

Standard_ShortReal Graphic2d_Drawer::myTextPrecision `[private]`

Aspect_TypeOfDeflection Graphic2d_Drawer::myTypeOfDeflection `[protected]`

Aspect_WindowDriverPtr Graphic2d_Drawer::myWDriver `[protected]`

Standard_ShortReal Graphic2d_Drawer::myXF `[private]`

Standard_ShortReal Graphic2d_Drawer::myXT `[private]`

Standard_ShortReal Graphic2d_Drawer::myYF `[private]`

Standard_ShortReal Graphic2d_Drawer::myYT `[private]`

Standard_ShortReal Graphic2d_Drawer::myZF `[private]`

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

- Graphic2d_Drawer.hxx