Logo Search packages:      
Sourcecode: inkscape version File versions

void Inkscape::Trace::Tracer::trace ( TracingEngine *  theEngine  ) 

This is the main working method. Trace the selected image, if any, and create a <path> element from it, inserting it into the current document.

Main tracing method

Definition at line 289 of file trace.cpp.

References engine, and traceThread().

Referenced by Inkscape::UI::Dialogs::TraceDialogImpl::potraceProcess().

{
    //Check if we are already running
    if (engine)
        return;

    engine = theEngine;

#if HAVE_THREADS
    //Ensure that thread support is running
    if (!Glib::thread_supported())
        Glib::thread_init();

    //Create our thread and run it
    Glib::Thread::create(
        sigc::mem_fun(*this, &Tracer::traceThread), false);
#else
    traceThread();
#endif

}


Generated by  Doxygen 1.6.0   Back to index