Blender V5.0
Freestyle::PythonInterpreter Class Reference

#include <PythonInterpreter.h>

Inherits Freestyle::Interpreter.

Public Member Functions

 PythonInterpreter ()
void setContext (bContext *C)
int interpretFile (const string &filename)
int interpretString (const string &str, const string &name)
int interpretText (struct Text *text, const string &name)
void reset ()
Public Member Functions inherited from Freestyle::Interpreter
 Interpreter ()
virtual ~Interpreter ()
virtual string getLanguage () const

Additional Inherited Members

Protected Attributes inherited from Freestyle::Interpreter
string _language

Detailed Description

Definition at line 28 of file PythonInterpreter.h.

Constructor & Destructor Documentation

◆ PythonInterpreter()

Freestyle::PythonInterpreter::PythonInterpreter ( )
inline

Definition at line 30 of file PythonInterpreter.h.

References Freestyle::Interpreter::_language.

Member Function Documentation

◆ interpretFile()

int Freestyle::PythonInterpreter::interpretFile ( const string & filename)
inlinevirtual

◆ interpretString()

int Freestyle::PythonInterpreter::interpretString ( const string & str,
const string & name )
inline

Definition at line 67 of file PythonInterpreter.h.

References BPY_run_string_eval(), name, and str.

Referenced by Freestyle::BufferedStyleModule::interpret().

◆ interpretText()

int Freestyle::PythonInterpreter::interpretText ( struct Text * text,
const string & name )
inline

Definition at line 78 of file PythonInterpreter.h.

References BPY_run_text(), and name.

Referenced by Freestyle::BlenderStyleModule::interpret().

◆ reset()

void Freestyle::PythonInterpreter::reset ( )
inlinevirtual

Implements Freestyle::Interpreter.

Definition at line 88 of file PythonInterpreter.h.

◆ setContext()

void Freestyle::PythonInterpreter::setContext ( bContext * C)
inline

Definition at line 35 of file PythonInterpreter.h.

Referenced by Freestyle::Controller::setContext().


The documentation for this class was generated from the following file: