Blender V4.3
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 69 of file PythonInterpreter.h.

References BPY_run_string_eval(), and str.

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

◆ interpretText()

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

Definition at line 80 of file PythonInterpreter.h.

References BPY_run_text().

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

◆ reset()

void Freestyle::PythonInterpreter::reset ( )
inlinevirtual

Implements Freestyle::Interpreter.

Definition at line 90 of file PythonInterpreter.h.

◆ setContext()

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

Definition at line 37 of file PythonInterpreter.h.

References C.

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


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