inkscape-potrace.h revision b26ef4ad395201f6d11399298556daff04f58402
/*
* This is the C++ glue between Inkscape and Potrace
*
* Authors:
* Bob Jamison <rjamison@titan.com>
*
* Copyright (C) 2004 Bob Jamison
*
* Released under GNU GPL, read the file 'COPYING' for more information
*
* Potrace, the wonderful tracer located at http://potrace.sourceforge.net,
* is provided by the generosity of Peter Selinger, to whom we are grateful.
*
*/
#ifndef __INKSCAPE_POTRACE_H__
#define __INKSCAPE_POTRACE_H__
#include <gtkmm.h>
#include <trace/imagemap.h>
typedef enum
{
} TraceType;
{
/**
*
*/
/**
*
*/
{}
{
}
{
return traceType;
}
/**
*/
{
}
bool getInvert()
{
return invert;
}
/**
*/
void setQuantizationNrColors(int val)
{
}
int getQuantizationNrColors()
{
return quantizationNrColors;
}
/**
*/
void setBrightnessThreshold(double val)
{
}
double getBrightnessThreshold()
{
return brightnessThreshold;
}
/**
*/
void setBrightnessFloor(double val)
{
}
double getBrightnessFloor()
{
return brightnessFloor;
}
/**
* Sets upper cutoff for canny non-maximalizing
*/
void setCannyHighThreshold(double val)
{
}
double getCannyHighThreshold()
{
return cannyHighThreshold;
}
/**
* Sets the number of colors for quant multiscan
*/
void setMultiScanNrColors(int val)
{
}
int getMultiScanNrColors()
{
return multiScanNrColors;
}
/**
* Sets whether we tile regions side-by-side or stack them
*/
void setMultiScanStack(bool val)
{
}
bool setMultiScanStack()
{
return multiScanStack;
}
/**
* Sets whether we want gaussian smoothing of bitmaps before quantizing
*/
void setMultiScanSmooth(bool val)
{
}
bool getMultiScanSmooth()
{
return multiScanSmooth;
}
/**
* Sets whether we want to remove the background (bottom) trace
*/
void setMultiScanRemoveBackground(bool val)
{
}
bool getMultiScanRemoveBackground()
{
return multiScanRemoveBackground;
}
/**
* This is the working method of this implementing class, and all
* implementing classes. Take a GdkPixbuf, trace it, and
* return the path data that is compatible with the d="" attribute
* of an SVG <path> element.
*/
/**
* Abort the thread that is executing getPathDataFromPixbuf()
*/
/**
*
*/
/**
*
*/
int keepGoing;
//## do i invert at the end?
bool invert;
//## Color-->b&w quantization
int quantizationNrColors;
//## brightness items
double brightnessThreshold;
double brightnessFloor; //usually 0.0
//## canny items
double cannyHighThreshold;
//## Color-->multiscan quantization
int multiScanNrColors;
bool multiScanStack; //do we tile or stack?
bool multiScanSmooth;//do we use gaussian filter?
bool multiScanRemoveBackground; //do we remove the bottom trace?
/**
* This is the actual wrapper of the call to Potrace. nodeCount
* returns the count of nodes created. May be NULL if ignored.
*/
};//class PotraceTracingEngine
} // namespace Potrace
} // namespace Trace
} // namespace Inkscape
#endif //__INKSCAPE_POTRACE_H__