Open CASCADE Technology
6.5.4
|
A Drawer groups all conversion methods.
#include <Graphic2d_Drawer.hxx>
Public Member Functions | |
Graphic2d_Drawer () | |
A drawer is : | |
void | SetDriver (const Handle< Aspect_Driver > &aDriver) |
Associates the driver <ADriver> to the drawer <me>. | |
Handle_Aspect_Driver | Driver () const |
Returns the associated driver. Warning: Raises DrawerDefinitionError if the associated driver is not defined. | |
Standard_Boolean | IsWindowDriver () const |
Returns TRUE if the driver is a window driver. | |
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_Boolean | IsPlotterDriver () const |
Returns TRUE if the driver is a plotter driver. | |
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 | |
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. | |
void | DrawPrecision (Standard_ShortReal &aPrecision, Standard_ShortReal &aCoefficient, Aspect_TypeOfDeflection &aType) const |
Returns the chordal deviation. | |
void | SetTextPrecision (const Standard_ShortReal aPrecision) |
Sets the Text precision in METER Any text is displayed only if his height is greater than | |
Standard_ShortReal | TextPrecision () const |
Returns the Text precision in METER. | |
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. | |
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". | |
void | SetOverride (const Standard_Boolean aValue) |
Manages the highlight, if the highlight color index is defined (No default value) | |
void | SetOverrideColor (const Standard_Integer anIndex) |
Sets the highlight color index. Warning: No default value. | |
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 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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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_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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
void | GetMapFrom (const Standard_ShortReal x1, const Standard_ShortReal y1, Standard_ShortReal &x2, Standard_ShortReal &y2) const |
Category: Convert methods | |
void | GetMapFromTo (const Standard_ShortReal x1, const Standard_ShortReal y1, Standard_ShortReal &x2, Standard_ShortReal &y2) const |
virtual 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_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_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_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_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!). | |
void | UnMapFromTo (const Standard_ShortReal x1, const Standard_ShortReal y1, Standard_ShortReal &x2, Standard_ShortReal &y2) const |
Standard_ShortReal | Convert (const Standard_ShortReal aValue) const |
Standard_ShortReal | Convert (const Standard_Integer aValue) const |
Standard_ShortReal | ConvertMapToFrom (const Standard_ShortReal x) const |
Standard_ShortReal | Scale () const |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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 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. | |
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. | |
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. | |
void | MapPolylineFromTo (const TShort_Array1OfShortReal &aListX, const TShort_Array1OfShortReal &aListY, const Standard_Integer aNumber=0) |
Raises DrawerDefinitionError if the associated driver is not defined. | |
void | MapPolylineFromTo (const Standard_ShortReal x, const Standard_ShortReal y, const Standard_Integer aMode=0) |
Raises DrawerDefinitionError if the associated driver is not defined. | |
void | MapPolygonFromTo (const TShort_Array1OfShortReal &aListX, const TShort_Array1OfShortReal &aListY, const Standard_Integer aNumber=0) |
Raises DrawerDefinitionError if the associated driver is not defined. | |
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 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. | |
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. | |
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 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. | |
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. | |
void | SetRejection (const Standard_Boolean aClipFlag) |
Sets the clipping flag with <aClipFlag> value. | |
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. | |
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 |
void Graphic2d_Drawer::ClearImage | ( | const Handle< Standard_Transient > & | anImageId | ) |
Standard_ShortReal Graphic2d_Drawer::Convert | ( | const Standard_ShortReal | aValue | ) | const |
Standard_ShortReal Graphic2d_Drawer::Convert | ( | const Standard_Integer | aValue | ) | const |
void Graphic2d_Drawer::DrawArc | ( | const Standard_Real | aDeltaX, |
const Standard_Real | aDeltaY, | ||
const Standard_ShortReal | aRadius, | ||
const Standard_ShortReal | angle1, | ||
const Standard_ShortReal | angle2 | ||
) |
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 | ||
) |
void Graphic2d_Drawer::DrawImage | ( | const Handle< Standard_Transient > & | anImageId, |
const Standard_ShortReal | aX, | ||
const Standard_ShortReal | aY | ||
) |
void Graphic2d_Drawer::DrawImageFile | ( | const Standard_CString | aName, |
const Standard_ShortReal | aX, | ||
const Standard_ShortReal | aY, | ||
const Quantity_Factor | aScale | ||
) |
void Graphic2d_Drawer::DrawInfiniteLine | ( | const Standard_ShortReal | x, |
const Standard_ShortReal | y, | ||
const Standard_ShortReal | dx, | ||
const Standard_ShortReal | dy | ||
) |
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 | ||
) |
void Graphic2d_Drawer::DrawPolyArc | ( | const Standard_Real | aDeltaX, |
const Standard_Real | aDeltaY, | ||
const Standard_ShortReal | aRadius, | ||
const Standard_ShortReal | angle1, | ||
const Standard_ShortReal | angle2 | ||
) |
void Graphic2d_Drawer::DrawPolygon | ( | const Standard_Real | aDeltaX, |
const Standard_Real | aDeltaY, | ||
const TShort_Array1OfShortReal & | aListX, | ||
const TShort_Array1OfShortReal & | aListY | ||
) |
void Graphic2d_Drawer::DrawPolyline | ( | const Standard_Real | aDeltaX, |
const Standard_Real | aDeltaY, | ||
const TShort_Array1OfShortReal & | aListX, | ||
const TShort_Array1OfShortReal & | aListY | ||
) |
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 | ||
) |
void Graphic2d_Drawer::DrawPrecision | ( | Standard_ShortReal & | aPrecision, |
Standard_ShortReal & | aCoefficient, | ||
Aspect_TypeOfDeflection & | aType | ||
) | const |
void Graphic2d_Drawer::DrawSegment | ( | const Standard_ShortReal | x1, |
const Standard_ShortReal | y1, | ||
const Standard_ShortReal | x2, | ||
const Standard_ShortReal | y2 | ||
) |
void Graphic2d_Drawer::DrawText | ( | const TCollection_ExtendedString & | aText, |
const Standard_ShortReal | x, | ||
const Standard_ShortReal | y, | ||
const Standard_ShortReal | angle, | ||
const Aspect_TypeOfText | aType | ||
) |
Handle_Aspect_Driver Graphic2d_Drawer::Driver | ( | ) | const |
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 | ||
) |
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_Boolean Graphic2d_Drawer::GetFontSize | ( | Standard_ShortReal & | aHeight, |
Standard_ShortReal & | aBheight, | ||
Standard_ShortReal & | aSlant | ||
) | const |
Standard_Boolean Graphic2d_Drawer::GetImageSize | ( | const Standard_CString | aFileName, |
Standard_ShortReal & | aWidth, | ||
Standard_ShortReal & | aHeight | ||
) | const |
Standard_Boolean Graphic2d_Drawer::GetImageSize | ( | const Standard_CString | aFileName, |
Standard_Integer & | aWidth, | ||
Standard_Integer & | aHeight | ||
) | const |
void Graphic2d_Drawer::GetMapFrom | ( | const Standard_ShortReal | x1, |
const Standard_ShortReal | y1, | ||
Standard_ShortReal & | x2, | ||
Standard_ShortReal & | y2 | ||
) | const |
void Graphic2d_Drawer::GetMapFromTo | ( | const Standard_ShortReal | x1, |
const Standard_ShortReal | y1, | ||
Standard_ShortReal & | x2, | ||
Standard_ShortReal & | y2 | ||
) | const |
virtual Standard_Boolean Graphic2d_Drawer::GetTextSize | ( | const TCollection_ExtendedString & | aText, |
Standard_ShortReal & | aWidth, | ||
Standard_ShortReal & | aHeight | ||
) | const [virtual] |
Standard_Boolean Graphic2d_Drawer::GetTextSize | ( | const TCollection_ExtendedString & | aText, |
Standard_ShortReal & | aWidth, | ||
Standard_ShortReal & | aHeight, | ||
Standard_ShortReal & | anXoffset, | ||
Standard_ShortReal & | anYoffset | ||
) | const |
Standard_Boolean Graphic2d_Drawer::IsIn | ( | const Standard_ShortReal | aMinX, |
const Standard_ShortReal | aMaxX, | ||
const Standard_ShortReal | aMinY, | ||
const Standard_ShortReal | aMaxY | ||
) | const |
Standard_Boolean Graphic2d_Drawer::IsKnownImage | ( | const Handle< Standard_Transient > & | anImageId | ) |
virtual 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] |
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 | ||
) |
void Graphic2d_Drawer::MapInfiniteLineFromTo | ( | const Standard_ShortReal | x, |
const Standard_ShortReal | y, | ||
const Standard_ShortReal | dx, | ||
const Standard_ShortReal | dy | ||
) |
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 |
||
) |
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 |
||
) |
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 |
||
) |
void Graphic2d_Drawer::MapPolygonFromTo | ( | const TShort_Array1OfShortReal & | aListX, |
const TShort_Array1OfShortReal & | aListY, | ||
const Standard_Integer | aNumber = 0 |
||
) |
void Graphic2d_Drawer::MapPolygonFromTo | ( | const Standard_ShortReal | x, |
const Standard_ShortReal | y, | ||
const Standard_Integer | aMode = 0 |
||
) |
void Graphic2d_Drawer::MapPolylineFromTo | ( | const TShort_Array1OfShortReal & | aListX, |
const TShort_Array1OfShortReal & | aListY, | ||
const Standard_Integer | aNumber = 0 |
||
) |
void Graphic2d_Drawer::MapPolylineFromTo | ( | const Standard_ShortReal | x, |
const Standard_ShortReal | y, | ||
const Standard_Integer | aMode = 0 |
||
) |
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 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 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] |
Handle_PlotMgt_PlotterDriver Graphic2d_Drawer::PlotterDriver | ( | ) | const |
Standard_ShortReal Graphic2d_Drawer::Scale | ( | ) | const |
void Graphic2d_Drawer::SetDrawPrecision | ( | const Standard_Real | aPrecision, |
const Standard_Real | aCoefficient, | ||
const Aspect_TypeOfDeflection | aType | ||
) |
void Graphic2d_Drawer::SetDriver | ( | const Handle< Aspect_Driver > & | aDriver | ) |
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 | ||
) |
void Graphic2d_Drawer::SetHidingPolyAttrib | ( | const Standard_Integer | HidingColorIndex, |
const Standard_Integer | FrameColorIndex, | ||
const Standard_Integer | FrameTypeIndex, | ||
const Standard_Integer | FrameWidthIndex | ||
) |
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 void Graphic2d_Drawer::SetLineAttrib | ( | const Standard_Integer | ColorIndex, |
const Standard_Integer | TypeIndex, | ||
const Standard_Integer | WidthIndex | ||
) | [virtual] |
void Graphic2d_Drawer::SetMarkerAttrib | ( | const Standard_Integer | ColorIndex, |
const Standard_Integer | WidthIndex, | ||
const Standard_Boolean | FillMarker | ||
) |
void Graphic2d_Drawer::SetOffSet | ( | const Standard_Integer | anOffSet | ) |
void Graphic2d_Drawer::SetPolyAttrib | ( | const Standard_Integer | ColorIndex, |
const Standard_Integer | TileIndex, | ||
const Standard_Boolean | DrawEdge | ||
) |
void Graphic2d_Drawer::SetRejection | ( | const Standard_Boolean | aClipFlag | ) |
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 | ||
) |
void Graphic2d_Drawer::SetTextPrecision | ( | const Standard_ShortReal | aPrecision | ) |
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 | ||
) |
void Graphic2d_Drawer::UnMapFromTo | ( | const Standard_ShortReal | x1, |
const Standard_ShortReal | y1, | ||
Standard_ShortReal & | x2, | ||
Standard_ShortReal & | y2 | ||
) | const |
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 |
Handle_Aspect_WindowDriver Graphic2d_Drawer::WindowDriver | ( | ) | const |
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_ShortReal Graphic2d_Drawer::myMinX [protected] |
Standard_ShortReal Graphic2d_Drawer::myMinY [protected] |
PlotMgt_PlotterDriverPtr Graphic2d_Drawer::myPDriver [protected] |
Standard_ShortReal Graphic2d_Drawer::mySpaceHeight [protected] |
Standard_ShortReal Graphic2d_Drawer::mySpaceWidth [protected] |
Aspect_WindowDriverPtr Graphic2d_Drawer::myWDriver [protected] |