/usr/include/oce/PS_Driver.hxx is in liboce-visualization-dev 0.9.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 | // This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _PS_Driver_HeaderFile
#define _PS_Driver_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_PS_Driver_HeaderFile
#include <Handle_PS_Driver.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _PlotMgt_PlotterDriver_HeaderFile
#include <PlotMgt_PlotterDriver.hxx>
#endif
#ifndef _Standard_CString_HeaderFile
#include <Standard_CString.hxx>
#endif
#ifndef _Quantity_Length_HeaderFile
#include <Quantity_Length.hxx>
#endif
#ifndef _Aspect_TypeOfColorSpace_HeaderFile
#include <Aspect_TypeOfColorSpace.hxx>
#endif
#ifndef _Aspect_FormatOfSheetPaper_HeaderFile
#include <Aspect_FormatOfSheetPaper.hxx>
#endif
#ifndef _Handle_PlotMgt_Plotter_HeaderFile
#include <Handle_PlotMgt_Plotter.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Handle_Aspect_ColorMap_HeaderFile
#include <Handle_Aspect_ColorMap.hxx>
#endif
#ifndef _Handle_Aspect_TypeMap_HeaderFile
#include <Handle_Aspect_TypeMap.hxx>
#endif
#ifndef _Handle_Aspect_WidthMap_HeaderFile
#include <Handle_Aspect_WidthMap.hxx>
#endif
#ifndef _Handle_Aspect_FontMap_HeaderFile
#include <Handle_Aspect_FontMap.hxx>
#endif
#ifndef _Handle_Aspect_MarkMap_HeaderFile
#include <Handle_Aspect_MarkMap.hxx>
#endif
#ifndef _Quantity_PlaneAngle_HeaderFile
#include <Quantity_PlaneAngle.hxx>
#endif
#ifndef _Quantity_Factor_HeaderFile
#include <Quantity_Factor.hxx>
#endif
#ifndef _Standard_ShortReal_HeaderFile
#include <Standard_ShortReal.hxx>
#endif
#ifndef _Standard_Address_HeaderFile
#include <Standard_Address.hxx>
#endif
#ifndef _Aspect_TypeOfText_HeaderFile
#include <Aspect_TypeOfText.hxx>
#endif
#ifndef _Quantity_Ratio_HeaderFile
#include <Quantity_Ratio.hxx>
#endif
class Aspect_DriverError;
class PlotMgt_Plotter;
class Aspect_ColorMap;
class Aspect_TypeMap;
class Aspect_WidthMap;
class Aspect_FontMap;
class Aspect_MarkMap;
class TCollection_ExtendedString;
//! This class defines a PS (Adobe PostScript) plotter Driver. <br>
//! All necessary information about methods (purpose, level, category, etc.) <br>
//! can be found in CDL files from the inheritance tree (PlotMgt_PlotterDriver, <br>
//! Aspect_Driver). <br>
class PS_Driver : public PlotMgt_PlotterDriver {
public:
Standard_EXPORT 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);
//! Constructs a file called aName as the graphic <br>
//! plotter file. The parameters of the plotter aPlotter <br>
//! are taken into account for defining this plotter file. <br>
//! aPaperX,aPaperY defines the size of the <br>
//! sheet-paper and the value of aTypeOfColorSpace <br>
//! defines the mode for processing colors. <br>
Standard_EXPORT 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);
//! Begins a new page of graphics in the plotter file called "aName". <br>
Standard_EXPORT void BeginDraw() ;
Standard_EXPORT void EndDraw(const Standard_Boolean dontFlush = Standard_False) ;
Standard_EXPORT virtual void SetTextAttrib(const Standard_Integer ColorIndex,const Standard_Integer FontIndex) ;
Standard_EXPORT 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) ;
Standard_EXPORT virtual Standard_Boolean SizeOfImageFile(const Standard_CString anImageFile,Standard_Integer& aWidth,Standard_Integer& aHeight) const;
DEFINE_STANDARD_RTTI(PS_Driver)
protected:
Standard_EXPORT virtual void InitializeColorMap(const Handle(Aspect_ColorMap)& aColorMap) ;
Standard_EXPORT virtual void InitializeTypeMap(const Handle(Aspect_TypeMap)& aTypeMap) ;
Standard_EXPORT virtual void InitializeWidthMap(const Handle(Aspect_WidthMap)& aWidthMap) ;
Standard_EXPORT virtual void InitializeFontMap(const Handle(Aspect_FontMap)& aFontMap) ;
Standard_EXPORT virtual void InitializeMarkMap(const Handle(Aspect_MarkMap)& aFontMap) ;
Standard_EXPORT virtual void PlotLineAttrib(const Standard_Integer ColorIndex,const Standard_Integer TypeIndex,const Standard_Integer WidthIndex) ;
Standard_EXPORT virtual Standard_Boolean PlotPoint(const Standard_ShortReal X,const Standard_ShortReal Y) ;
Standard_EXPORT virtual Standard_Boolean PlotSegment(const Standard_ShortReal X1,const Standard_ShortReal Y1,const Standard_ShortReal X2,const Standard_ShortReal Y2) ;
Standard_EXPORT virtual Standard_Boolean PlotPolyline(const Standard_Address xArray,const Standard_Address yArray,const Standard_Address nPts,const Standard_Integer nParts) ;
Standard_EXPORT virtual Standard_Boolean PlotPolygon(const Standard_Address xArray,const Standard_Address yArray,const Standard_Address nPts,const Standard_Integer nParts) ;
Standard_EXPORT 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) ;
Standard_EXPORT 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) ;
Standard_EXPORT 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) ;
Standard_EXPORT virtual Standard_Boolean PlotText(const TCollection_ExtendedString& aText,const Standard_ShortReal Xpos,const Standard_ShortReal Ypos,const Standard_ShortReal anAngle,const Aspect_TypeOfText aType) ;
Standard_EXPORT virtual Standard_Boolean PlotText(const Standard_CString aText,const Standard_ShortReal Xpos,const Standard_ShortReal Ypos,const Standard_ShortReal anAngle,const Aspect_TypeOfText aType) ;
Standard_EXPORT 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) ;
Standard_EXPORT 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) ;
Standard_EXPORT 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) ;
Standard_EXPORT virtual Standard_Boolean DrawCurveCapable() const;
private:
Standard_EXPORT void BeginFile(const Handle(PlotMgt_Plotter)& aPlotter,const Standard_CString aName,const Quantity_Length aDX,const Quantity_Length aDY,const Aspect_TypeOfColorSpace aTypeOfColorSpace,const Quantity_Length aPaperX,const Quantity_Length aPaperY) ;
//! For this driver <br>
//! - returns the DPU (device plotter unit) value <br>
//! corresponding to the number of pixels PV, or <br>
//! - returns the number of pixels corresponding to the DPU value DV, or <br>
//! - returns the DPU coordinates (DX,DY) <br>
//! corresponding to the pixel position (PX,PY), or <br>
//! - returns the pixel position (PX,PY) corresponding to <br>
//! the DPU coordinates (DX,DY). <br>
//! The DPU value is specified in millimeters by default. <br>
//! Warning <br>
//! The pixel size is 325mm/1152 by default and can be <br>
//! changed with the SetPixelSize function. <br>
Standard_EXPORT Standard_ShortReal Convert(const Standard_ShortReal aShortReal) const;
Standard_EXPORT virtual Standard_ShortReal MapX(const Standard_ShortReal aShortReal) const;
Standard_EXPORT virtual Standard_ShortReal MapY(const Standard_ShortReal aShortReal) const;
Standard_Integer myCurrentPage;
};
// other Inline functions and methods (like "C++: function call" methods)
#endif
|