Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions
PS_Driver Class Reference

This class defines a PS (Adobe PostScript) plotter Driver.
All necessary information about methods (purpose, level, category, etc.)
can be found in CDL files from the inheritance tree (PlotMgt_PlotterDriver,
Aspect_Driver).

#include <PS_Driver.hxx>

Inheritance diagram for PS_Driver:
Inheritance graph
[legend]

Public Member Functions

 PS_Driver (const Standard_CString aName, const Quantity_Length aDX, const Quantity_Length aDY, const Aspect_TypeOfColorSpace aTypeOfColorSpace=Aspect_TOCS_RGB, const Aspect_FormatOfSheetPaper aSheetFormat=Aspect_FOSP_A4)
 PS_Driver (const Handle< PlotMgt_Plotter > &aPlotter, const Standard_CString aName, const Quantity_Length aPaperX, const Quantity_Length aPaperY, const Aspect_TypeOfColorSpace aTypeOfColorSpace=Aspect_TOCS_RGB)
 Constructs a file called aName as the graphic
plotter file. The parameters of the plotter aPlotter
are taken into account for defining this plotter file.
aPaperX,aPaperY defines the size of the
sheet-paper and the value of aTypeOfColorSpace
defines the mode for processing colors.

void BeginDraw ()
 Begins a new page of graphics in the plotter file called "aName".

void EndDraw (const Standard_Boolean dontFlush=Standard_False)
 Flush all graphics and Wait after up to date

virtual void SetTextAttrib (const Standard_Integer ColorIndex, const Standard_Integer FontIndex)
virtual 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)
virtual 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,

Protected Member Functions

virtual void InitializeColorMap (const Handle< Aspect_ColorMap > &aColorMap)
virtual void InitializeTypeMap (const Handle< Aspect_TypeMap > &aTypeMap)
virtual void InitializeWidthMap (const Handle< Aspect_WidthMap > &aWidthMap)
virtual void InitializeFontMap (const Handle< Aspect_FontMap > &aFontMap)
virtual void InitializeMarkMap (const Handle< Aspect_MarkMap > &aFontMap)
virtual void PlotLineAttrib (const Standard_Integer ColorIndex, const Standard_Integer TypeIndex, const Standard_Integer WidthIndex)
 retrieve current line attributes

virtual Standard_Boolean PlotPoint (const Standard_ShortReal X, const Standard_ShortReal Y)
virtual Standard_Boolean PlotSegment (const Standard_ShortReal X1, const Standard_ShortReal Y1, const Standard_ShortReal X2, const Standard_ShortReal Y2)
virtual Standard_Boolean PlotPolyline (const Standard_Address xArray, const Standard_Address yArray, const Standard_Address nPts, const Standard_Integer nParts)
virtual Standard_Boolean PlotPolygon (const Standard_Address xArray, const Standard_Address yArray, const Standard_Address nPts, const Standard_Integer nParts)
virtual Standard_Boolean PlotArc (const Standard_ShortReal X, const Standard_ShortReal Y, const Standard_ShortReal anXradius, const Standard_ShortReal anYradius, const Standard_ShortReal sAngle, const Standard_ShortReal oAngle)
virtual Standard_Boolean PlotPolyArc (const Standard_ShortReal X, const Standard_ShortReal Y, const Standard_ShortReal anXradius, const Standard_ShortReal anYradius, const Standard_ShortReal sAngle, const Standard_ShortReal oAngle)
virtual Standard_Boolean PlotMarker (const Standard_Integer aMarker, const Standard_ShortReal Xpos, const Standard_ShortReal Ypos, const Standard_ShortReal Width, const Standard_ShortReal Height, const Standard_ShortReal Angle)
virtual Standard_Boolean PlotText (const TCollection_ExtendedString &aText, const Standard_ShortReal Xpos, const Standard_ShortReal Ypos, const Standard_ShortReal anAngle, const Aspect_TypeOfText aType)
virtual Standard_Boolean PlotText (const Standard_CString aText, const Standard_ShortReal Xpos, const Standard_ShortReal Ypos, const Standard_ShortReal anAngle, const Aspect_TypeOfText aType)
virtual Standard_Boolean PlotPolyText (const TCollection_ExtendedString &aText, const Standard_ShortReal Xpos, const Standard_ShortReal Ypos, const Quantity_Ratio aMargin, const Standard_ShortReal anAngle, const Aspect_TypeOfText aType)
virtual Standard_Boolean PlotPolyText (const Standard_CString aText, const Standard_ShortReal Xpos, const Standard_ShortReal Ypos, const Quantity_Ratio aMargin, const Standard_ShortReal anAngle, const Aspect_TypeOfText aType)
virtual Standard_Boolean PlotImage (const Standard_ShortReal aX, const Standard_ShortReal aY, const Standard_ShortReal aWidth, const Standard_ShortReal aHeight, const Standard_ShortReal aScale, const Standard_CString anImageFile, const Standard_Address anArrayOfPixels, const Standard_Integer aLineIndex=-1)
virtual Standard_Boolean DrawCurveCapable () const
 Should be called from PlotMgt_TextManager::Curveto()
method to check if the driver is capable to draw curves.


Constructor & Destructor Documentation


Member Function Documentation

void PS_Driver::BeginDraw ( ) [virtual]

Implements PlotMgt_PlotterDriver.

virtual Standard_Boolean PS_Driver::DrawCurveCapable ( ) const [protected, virtual]

Reimplemented from PlotMgt_PlotterDriver.

Implements Aspect_Driver.

virtual void PS_Driver::InitializeColorMap ( const Handle< Aspect_ColorMap > &  aColorMap) [protected, virtual]

Reimplemented from PlotMgt_PlotterDriver.

virtual void PS_Driver::InitializeFontMap ( const Handle< Aspect_FontMap > &  aFontMap) [protected, virtual]

Reimplemented from PlotMgt_PlotterDriver.

virtual void PS_Driver::InitializeMarkMap ( const Handle< Aspect_MarkMap > &  aFontMap) [protected, virtual]

Reimplemented from PlotMgt_PlotterDriver.

virtual void PS_Driver::InitializeTypeMap ( const Handle< Aspect_TypeMap > &  aTypeMap) [protected, virtual]

Reimplemented from PlotMgt_PlotterDriver.

virtual void PS_Driver::InitializeWidthMap ( const Handle< Aspect_WidthMap > &  aWidthMap) [protected, virtual]

Reimplemented from PlotMgt_PlotterDriver.

Reimplemented from PlotMgt_PlotterDriver.

virtual Standard_Boolean PS_Driver::PlotImage ( const Standard_ShortReal  aX,
const Standard_ShortReal  aY,
const Standard_ShortReal  aWidth,
const Standard_ShortReal  aHeight,
const Standard_ShortReal  aScale,
const Standard_CString  anImageFile,
const Standard_Address  anArrayOfPixels,
const Standard_Integer  aLineIndex = -1 
) [protected, virtual]

Reimplemented from PlotMgt_PlotterDriver.

virtual void PS_Driver::PlotLineAttrib ( const Standard_Integer  ColorIndex,
const Standard_Integer  TypeIndex,
const Standard_Integer  WidthIndex 
) [protected, virtual]

Reimplemented from PlotMgt_PlotterDriver.

Reimplemented from PlotMgt_PlotterDriver.

Reimplemented from PlotMgt_PlotterDriver.

Reimplemented from PlotMgt_PlotterDriver.

virtual Standard_Boolean PS_Driver::PlotPolygon ( const Standard_Address  xArray,
const Standard_Address  yArray,
const Standard_Address  nPts,
const Standard_Integer  nParts 
) [protected, virtual]

Reimplemented from PlotMgt_PlotterDriver.

virtual Standard_Boolean PS_Driver::PlotPolyline ( const Standard_Address  xArray,
const Standard_Address  yArray,
const Standard_Address  nPts,
const Standard_Integer  nParts 
) [protected, virtual]

Reimplemented from PlotMgt_PlotterDriver.

Reimplemented from PlotMgt_PlotterDriver.

Reimplemented from PlotMgt_PlotterDriver.

Reimplemented from PlotMgt_PlotterDriver.

Reimplemented from PlotMgt_PlotterDriver.

Reimplemented from PlotMgt_PlotterDriver.

virtual void PS_Driver::SetTextAttrib ( const Standard_Integer  ColorIndex,
const Standard_Integer  FontIndex 
) [virtual]

Reimplemented from PlotMgt_PlotterDriver.

virtual void PS_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]

Reimplemented from PlotMgt_PlotterDriver.

virtual Standard_Boolean PS_Driver::SizeOfImageFile ( const Standard_CString  anImageFile,
Standard_Integer aWidth,
Standard_Integer aHeight 
) const [virtual]

Reimplemented from PlotMgt_PlotterDriver.


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