24#ifndef __SO_VECTORIZE_CGM_ACTION_
25#define __SO_VECTORIZE_CGM_ACTION_
107 { m_cgm_version = vers; }
113 {
return m_cgm_version; }
122 { m_indexed = flag; }
128 {
return m_indexed; }
181 static void initClass();
182 static void exitClass();
188 virtual void printPolyMark(
const SbVec4f *points,
194 virtual void printPolyMark(
const SbVec4f *points,
199 virtual void printImage(
const SbVec4f &origin,
200 const unsigned char *imagePixels,
207 virtual void printPolyLine(
const SbVec4f *points,
213 int linePatternScaleFactor = 1);
214 virtual void printPolygon(
const SbVec4f *points,
220 const unsigned char *pattern);
221 virtual void printText2(
const SbVec4f point,
230 virtual void printBorder();
231 virtual void printBackground();
235 virtual void writeHeader ();
236 virtual void writeFooter ();
239 virtual void setHardwareClip();
242 SbBox2f getClippingLimits()
const;
246 void assignColor(
SbColor color,
250 void PWriteChar(
unsigned int c_param);
251 void PWriteWord(
unsigned int word);
252 char *RSHORT(
int i,
float r);
254 void Pmfversion(
int version);
255 void Pmfdesc(
const SbString& description);
256 void Pmfelemlist(
const SbString& names);
257 void Pvdctype(
int type);
258 void Pintegerprec(
int minint,
int maxint);
259 void Prealprec(
double minreal,
double maxreal,
int digits);
260 void Pindexprec(
int minint,
int maxint);
261 void Pcolrindexprec(
int maxin);
262 void Pcolrvalueext(
int br,
int bg,
int bb,
int wr,
int wg,
int w);
263 void Pmaxcolrindex(
int maxind);
264 void Pcolrprec(
int maxcomp);
265 void Pfontlist(
int nfont,
const SbString font[]);
267 void Pscalemode(
int specmode,
double factor);
268 void Plinewidth(
double width);
269 void Plinewidthmode(
int width);
270 void Pmarkersizemode(
int mode);
271 void Pedgewidth(
double width);
272 void Pedgewidthmode(
int mode);
273 void Pbackcolr(
float r,
float g,
float b);
274 void Pcolrmode(
int colourmode);
276 void Pvdcrealprec(
double minreal,
double maxreal,
int digits);
277 void Pvdcext(
float x_min,
float y_min,
float size_x,
float size_y);
278 void Pedgevis(
int sw);
282 void Plinecap_join(
int cap,
int join,
float limit);
283 void Plineedgetype(
int index,
float size,
int nbdash,
int *dash);
284 void Plinecolr(
int colour);
285 void Plinecolr(
SbColor colour);
286 void Pline(
int n,
const SbVec4f *points);
287 void Pcolrtable(
int index,
int ncol,
SbColor *colors);
288 void Pmarkertype(
int type);
289 void Pmarkersize(
double size);
290 void Pmarkercolr(
int colour);
291 void Pmarkercolr(
SbColor colour);
292 void Pmarker(
int n,
const SbVec4f *points);
293 void Pintstyle(
int style);
294 void Pfillcolr(
int colour);
295 void Pfillcolr(
SbColor colour);
296 void Ppolygon(
int n,
const SbVec4f* points);
297 void Ptextcolr(
int colour);
298 void Ptextcolr(
SbColor colour);
299 void Pcharori(
double upx,
double upy,
double bax,
double bay);
300 void Pcharheight(
double height);
301 void Ptextfontindex(
int index);
302 void Ptextprec(
int precision);
303 void Ptextpath(
int path);
304 void Pcharspace(
double spacing);
305 void Pcharexpan(
double expansion);
307 void Ptextjustif(
int justif);
308 void Pcliprect(
float x_min,
float y_min,
float x_max,
float y_max);
309 void Plinetype(
int type);
310 void PtranspcellcolrI(
unsigned int indicator,
unsigned int indexColor);
311 void PtranspcellcolrD(
unsigned int indicator,
SbColor &directColor);
313 void PWriteVDC(
double v);
315 void PWriteColorD(
int r,
int g,
int b);
316 void PWriteHeader(
int classe,
int id,
int length);
317 void PWriteBuffer(
const SbString& str,
int len);
318 void PWriteString(
const SbString& str);
319 void PWriteInt(
unsigned int l);
320 void PWriteEnum(
unsigned int l);
321 void PWriteIndex(
int l);
322 void PWriteColorI(
unsigned int l);
323 void PWriteReal(
double r);
326 void fillWriteBufferChar(
char c) ;
327 void flushWriteBuffer() ;
333 float m_currentMiterLimit;
334 float m_currentThickness;
335 u_short m_currentLinePattern;
336 int m_currentPatternScaleFactor;
341 int m_currentPattableIndex;
342 int m_nbPattableIndex;
345 int m_cgmMarkerColor;
347 int m_cgmPolygonColor;
372 int m_indFillWriteBuffer ;
373 int m_writeBufferSize ;
374 char *m_writeBuffer ;
#define TRUE
Possible value of SbBool.
#define SO_ACTION_HEADER(className)
List of generic (void *) pointers.
Class for smart character strings.
<a href="IconLegend.html"><img src="extHC.gif" alt="HardCopy" border="0"></a> Class used to write ve...
virtual ~SoCGMVectorOutput()
Destructor.
SoCGMVectorOutput()
Constructor.
SbBool isBinary() const
Gets the output mode.
virtual SoNONUNICODE SbBool openFile(const char *file_name)
Opens named file (sets file pointer to result) .
virtual SbBool openFile(const SbString &file_name)
Opens named file (sets file pointer to result) .
void setIndexed(SbBool flag=TRUE)
Sets the color mode.
void setBinary(SbBool flag=TRUE)
Sets the output mode.
SbBool isIndexed() const
Gets the color mode.
int getVersion() const
Gets the version of the output CGM file.
void setVersion(int vers=1)
Sets the version of the output CGM file.
VertAlignment
Vertical alignment.
HorAlignment
Horizontal alignment.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Extension of Poi...
<a href="IconLegend.html"><img src="extHC.gif" alt="HardCopy" border="0"></a> Abstract class used to...
<a href="IconLegend.html"><img src="extHC.gif" alt="HardCopy" border="0"></a> Abstract class for vec...
EndLineStyle
End line style.
JoinLineStyle
Join line style.
<a href="IconLegend.html"><img src="extHC.gif" alt="HardCopy" border="0"></a> Realizes the vectoriza...
SoVectorizeCGMAction()
Constructor.
SoCGMVectorOutput * getCGMVectorOutput() const
Returns the SoCGMVectorOutput instance in action.
virtual ~SoVectorizeCGMAction()
Destructor.