81 virtual void apply(
const SoPathList & pathlist, SbBool obeysrules = FALSE);
83 void beginStandardPage(
const PageSize & pagesize,
const float border = 10.0f);
85 virtual void beginPage(
const SbVec2f & startpagepos,
87 DimensionUnit u = MM);
88 virtual void endPage(
void);
92 virtual void beginViewport(
const SbVec2f & startpos =
SbVec2f(-1.0f, 1.0f),
94 DimensionUnit u = MM);
95 virtual void endViewport(
void);
97 virtual void setOrientation(Orientation o);
98 virtual Orientation getOrientation(
void)
const;
100 virtual void setBackgroundColor(SbBool bg,
const SbColor & col =
SbColor(0.0f, 0.0f, 0.0f));
101 virtual SbBool getBackgroundColor(
SbColor & col)
const;
103 virtual void setNominalWidth(
float w, DimensionUnit u = MM);
104 virtual float getNominalWidth(DimensionUnit u = MM)
const;
106 virtual void setPixelImageSize(
float w, DimensionUnit u = MM);
107 virtual float getPixelImageSize(DimensionUnit u = MM)
const;
114 virtual void setPointStyle(
const PointStyle & style);
115 virtual PointStyle getPointStyle(
void)
const;
117 const SbVec2f & getPageStartpos(
void)
const;
118 const SbVec2f & getPageSize(
void)
const;
122 enum ColorTranslationMethod { REVERSE_ONLY_BLACK_AND_WHITE, AS_IS, REVERSE };
124 enum JoinLineStyle { NO_JOIN, MITERED_JOIN, MITERED_BEVELED_JOIN,
125 BEVELED_JOIN, TRIANGULAR_JOIN, ROUNDED_JOIN } ;
126 enum EndLineStyle { BUTT_END, SQUARE_END, TRIANGULAR_END, ROUND_END };
127 enum HLHSRMode { NO_HLHSR, HLHSR_SIMPLE_PAINTER, HLHSR_PAINTER,
128 HLHSR_PAINTER_SURFACE_REMOVAL, HIDDEN_LINES_REMOVAL };
130 virtual void setDrawingDimensions(
const SbVec2f & d, DimensionUnit u = MM);
131 virtual void setDrawingDimensions(
float w,
float h, DimensionUnit u = MM) { this->setDrawingDimensions(
SbVec2f(w, h), u); }
132 virtual SbVec2f getDrawingDimensions(DimensionUnit u = MM)
const;
134 virtual void setStartPosition(
const SbVec2f & p, DimensionUnit u = MM);
135 virtual void setStartPosition(
float x,
float y, DimensionUnit u = MM) { this->setStartPosition(
SbVec2f(x, y), u); }
136 virtual SbVec2f getStartPosition(DimensionUnit u = MM)
const;
138 virtual void setColorTranslationMethod(ColorTranslationMethod method);
139 virtual ColorTranslationMethod getColorTranslationMethod(
void)
const;
141 virtual void setLineEndStyle(EndLineStyle style);
142 virtual EndLineStyle getLineEndStyle(
void)
const;
144 virtual void setLineJoinsStyle(JoinLineStyle style);
145 virtual JoinLineStyle getLineJoinsStyle(
void)
const;
147 virtual void setHLHSRMode(HLHSRMode mode);
148 HLHSRMode getHLHSRMode(
void)
const;
150 virtual void setBorder(
float width);
151 virtual void setBorder (
float width,
SbColor color);
153 virtual void setMiterLimit(
float limit);
154 virtual float getMiterLimit(
void)
const;
156 virtual void setPenDescription(
int num_pens,
158 const float * widths = 0,
159 DimensionUnit u = MM);
160 virtual void getPenDescription(
SbColor * colors,
162 DimensionUnit u = MM)
const;
163 virtual int getPenNum(
void)
const;
165 virtual void setColorPriority(SbBool priority);
166 virtual SbBool getColorPriority(
void)
const;
168 virtual void enableLighting(SbBool flag);
169 SbBool isLightingEnabled(
void)
const;
174 virtual float pixelsToUnits(
const int pixels);
176 virtual void printFooter(
void)
const;
177 virtual void printBackground(
void)
const;
178 virtual void printItem(
const SoVectorizeItem * item)
const = 0;
179 virtual void printViewport(
void)
const;
181 SbVec2f getRotatedViewportStartpos(
void)
const;
182 SbVec2f getRotatedViewportSize(
void)
const;
184 const SbBSPTree & getBSPTree(
void)
const;
187 SoVectorizeActionP * pimpl;
188 friend class SoVectorizeActionP;