Blender V5.3
Freestyle::Controller Class Reference

#include <Controller.h>

Public Member Functions

 Controller ()
 ~Controller ()
void setView (AppView *iView)
void setRenderMonitor (RenderMonitor *iRenderMonitor)
void setPassDiffuse (float *buf, int width, int height)
void setPassZ (float *buf, int width, int height)
void setContext (blender::bContext *C)
void init_options ()
int LoadMesh (blender::Render *re, blender::ViewLayer *view_layer, blender::Depsgraph *depsgraph)
int Load3DSFile (const char *iFileName)
void CloseFile ()
void ComputeViewMap ()
void ComputeSteerableViewMap ()
void saveSteerableViewMapImages ()
void toggleEdgeTesselationNature (Nature::EdgeNature iNature)
int DrawStrokes ()
void ResetRenderCount ()
blender::Render * RenderStrokes (blender::Render *re, bool render)
void SwapStyleModules (uint i1, uint i2)
void InsertStyleModule (uint index, const char *iFileName)
void InsertStyleModule (uint index, const char *iName, const char *iBuffer)
void InsertStyleModule (uint index, const char *iName, struct blender::Text *iText)
void AddStyleModule (const char *iFileName)
void RemoveStyleModule (uint index)
void ReloadStyleModule (uint index, const char *iFileName)
void Clear ()
void ClearRootNode ()
void DeleteWingedEdge ()
void DeleteViewMap (bool freeCache=false)
void toggleLayer (uint index, bool iDisplay)
void setModified (uint index, bool iMod)
void resetModified (bool iMod=false)
void updateCausalStyleModules (uint index)
void displayDensityCurves (int x, int y)
ViewEdge * SelectViewEdge (real x, real y)
FEdge * SelectFEdge (real x, real y)
NodeGroup * BuildRep (vector< ViewEdge * >::iterator vedges_begin, vector< ViewEdge * >::iterator vedges_end)
void toggleVisibilityAlgo ()
void setVisibilityAlgo (int algo)
int getVisibilityAlgo ()
void setViewMapCache (bool iBool)
bool getViewMapCache () const
void setQuantitativeInvisibility (bool iBool)
bool getQuantitativeInvisibility () const
void setFaceSmoothness (bool iBool)
bool getFaceSmoothness () const
void setComputeRidgesAndValleysFlag (bool b)
bool getComputeRidgesAndValleysFlag () const
void setComputeSuggestiveContoursFlag (bool b)
bool getComputeSuggestiveContoursFlag () const
void setComputeMaterialBoundariesFlag (bool b)
bool getComputeMaterialBoundariesFlag () const
void setComputeSteerableViewMapFlag (bool iBool)
bool getComputeSteerableViewMapFlag () const
void setCreaseAngle (float angle)
float getCreaseAngle () const
void setSphereRadius (float s)
float getSphereRadius () const
void setSuggestiveContourKrDerivativeEpsilon (float dkr)
float getSuggestiveContourKrDerivativeEpsilon () const
void setModelsDir (const string &dir)
string getModelsDir () const
void setModulesDir (const string &dir)
string getModulesDir () const
bool hitViewMapCache ()
void resetInterpreter ()

Public Attributes

ViewMap * _ViewMap
AppCanvas * _Canvas

Detailed Description

Definition at line 41 of file Controller.h.

Constructor & Destructor Documentation

◆ Controller()

◆ ~Controller()

Freestyle::Controller::~Controller ( )

Definition at line 123 of file Controller.cpp.

References _Canvas, and _ViewMap.

Member Function Documentation

◆ AddStyleModule()

void Freestyle::Controller::AddStyleModule ( const char * iFileName)

Definition at line 950 of file Controller.cpp.

Referenced by Load3DSFile().

◆ BuildRep()

NodeGroup * Freestyle::Controller::BuildRep ( vector< ViewEdge * >::iterator vedges_begin,
vector< ViewEdge * >::iterator vedges_end )

◆ Clear()

void Freestyle::Controller::Clear ( )

◆ ClearRootNode()

void Freestyle::Controller::ClearRootNode ( )

Definition at line 383 of file Controller.cpp.

Referenced by CloseFile(), Load3DSFile(), and LoadMesh().

◆ CloseFile()

◆ ComputeSteerableViewMap()

◆ ComputeViewMap()

◆ DeleteViewMap()

void Freestyle::Controller::DeleteViewMap ( bool freeCache = false)

◆ DeleteWingedEdge()

void Freestyle::Controller::DeleteWingedEdge ( )

Definition at line 395 of file Controller.cpp.

Referenced by CloseFile(), ComputeViewMap(), Load3DSFile(), and LoadMesh().

◆ displayDensityCurves()

◆ DrawStrokes()

◆ getComputeMaterialBoundariesFlag()

bool Freestyle::Controller::getComputeMaterialBoundariesFlag ( ) const

Definition at line 853 of file Controller.cpp.

Referenced by blender::prepare().

◆ getComputeRidgesAndValleysFlag()

bool Freestyle::Controller::getComputeRidgesAndValleysFlag ( ) const

Definition at line 833 of file Controller.cpp.

Referenced by blender::prepare().

◆ getComputeSteerableViewMapFlag()

bool Freestyle::Controller::getComputeSteerableViewMapFlag ( ) const

Definition at line 863 of file Controller.cpp.

◆ getComputeSuggestiveContoursFlag()

bool Freestyle::Controller::getComputeSuggestiveContoursFlag ( ) const

Definition at line 843 of file Controller.cpp.

Referenced by blender::prepare().

◆ getCreaseAngle()

float Freestyle::Controller::getCreaseAngle ( ) const
inline

Definition at line 130 of file Controller.h.

Referenced by blender::prepare().

◆ getFaceSmoothness()

bool Freestyle::Controller::getFaceSmoothness ( ) const

Definition at line 823 of file Controller.cpp.

Referenced by blender::prepare().

◆ getModelsDir()

string Freestyle::Controller::getModelsDir ( ) const

Definition at line 1026 of file Controller.cpp.

◆ getModulesDir()

string Freestyle::Controller::getModulesDir ( ) const

Definition at line 1038 of file Controller.cpp.

◆ getQuantitativeInvisibility()

bool Freestyle::Controller::getQuantitativeInvisibility ( ) const

Definition at line 813 of file Controller.cpp.

◆ getSphereRadius()

float Freestyle::Controller::getSphereRadius ( ) const
inline

Definition at line 138 of file Controller.h.

Referenced by blender::prepare().

◆ getSuggestiveContourKrDerivativeEpsilon()

float Freestyle::Controller::getSuggestiveContourKrDerivativeEpsilon ( ) const
inline

Definition at line 146 of file Controller.h.

Referenced by blender::prepare().

◆ getViewMapCache()

bool Freestyle::Controller::getViewMapCache ( ) const

Definition at line 803 of file Controller.cpp.

◆ getVisibilityAlgo()

◆ hitViewMapCache()

bool Freestyle::Controller::hitViewMapCache ( )

Definition at line 211 of file Controller.cpp.

References _ViewMap.

Referenced by LoadMesh(), and blender::prepare().

◆ init_options()

◆ InsertStyleModule() [1/3]

void Freestyle::Controller::InsertStyleModule ( uint index,
const char * iFileName )

◆ InsertStyleModule() [2/3]

void Freestyle::Controller::InsertStyleModule ( uint index,
const char * iName,
const char * iBuffer )

◆ InsertStyleModule() [3/3]

void Freestyle::Controller::InsertStyleModule ( uint index,
const char * iName,
struct blender::Text * iText )

◆ Load3DSFile()

◆ LoadMesh()

◆ ReloadStyleModule()

void Freestyle::Controller::ReloadStyleModule ( uint index,
const char * iFileName )

◆ RemoveStyleModule()

void Freestyle::Controller::RemoveStyleModule ( uint index)

Definition at line 955 of file Controller.cpp.

References _Canvas, index, and Freestyle::Canvas::RemoveStyleModule().

Referenced by Load3DSFile().

◆ RenderStrokes()

◆ resetInterpreter()

void Freestyle::Controller::resetInterpreter ( )

Definition at line 1045 of file Controller.cpp.

◆ resetModified()

void Freestyle::Controller::resetModified ( bool iMod = false)

Definition at line 998 of file Controller.cpp.

References _Canvas, and Freestyle::Canvas::resetModified().

Referenced by ComputeViewMap(), DrawStrokes(), and Load3DSFile().

◆ ResetRenderCount()

void Freestyle::Controller::ResetRenderCount ( )

Definition at line 890 of file Controller.cpp.

Referenced by blender::FRS_init_stroke_renderer(), and Load3DSFile().

◆ saveSteerableViewMapImages()

void Freestyle::Controller::saveSteerableViewMapImages ( )

◆ SelectFEdge()

FEdge * Freestyle::Controller::SelectFEdge ( real x,
real y )

References BuildRep(), x, and y.

◆ SelectViewEdge()

ViewEdge * Freestyle::Controller::SelectViewEdge ( real x,
real y )

References x, and y.

◆ setComputeMaterialBoundariesFlag()

void Freestyle::Controller::setComputeMaterialBoundariesFlag ( bool b)

Definition at line 848 of file Controller.cpp.

References b.

Referenced by blender::prepare().

◆ setComputeRidgesAndValleysFlag()

void Freestyle::Controller::setComputeRidgesAndValleysFlag ( bool b)

Definition at line 828 of file Controller.cpp.

References b.

Referenced by blender::prepare().

◆ setComputeSteerableViewMapFlag()

void Freestyle::Controller::setComputeSteerableViewMapFlag ( bool iBool)

Definition at line 858 of file Controller.cpp.

Referenced by init_options().

◆ setComputeSuggestiveContoursFlag()

void Freestyle::Controller::setComputeSuggestiveContoursFlag ( bool b)

Definition at line 838 of file Controller.cpp.

References b.

Referenced by blender::prepare().

◆ setContext()

void Freestyle::Controller::setContext ( blender::bContext * C)

Definition at line 205 of file Controller.cpp.

References Freestyle::PythonInterpreter::setContext().

Referenced by blender::FRS_set_context().

◆ setCreaseAngle()

void Freestyle::Controller::setCreaseAngle ( float angle)
inline

Definition at line 126 of file Controller.h.

References angle().

Referenced by blender::prepare().

◆ setFaceSmoothness()

void Freestyle::Controller::setFaceSmoothness ( bool iBool)

Definition at line 818 of file Controller.cpp.

Referenced by blender::prepare().

◆ setModelsDir()

void Freestyle::Controller::setModelsDir ( const string & dir)

Definition at line 1021 of file Controller.cpp.

◆ setModified()

void Freestyle::Controller::setModified ( uint index,
bool iMod )

Definition at line 981 of file Controller.cpp.

References _Canvas, index, Freestyle::Canvas::setModified(), and updateCausalStyleModules().

Referenced by Load3DSFile().

◆ setModulesDir()

void Freestyle::Controller::setModulesDir ( const string & dir)

Definition at line 1033 of file Controller.cpp.

◆ setPassDiffuse()

void Freestyle::Controller::setPassDiffuse ( float * buf,
int width,
int height )

◆ setPassZ()

void Freestyle::Controller::setPassZ ( float * buf,
int width,
int height )

Definition at line 198 of file Controller.cpp.

References _Canvas, BLI_assert, and Freestyle::AppCanvas::setPassZ().

Referenced by CloseFile(), init_options(), and blender::prepare().

◆ setQuantitativeInvisibility()

void Freestyle::Controller::setQuantitativeInvisibility ( bool iBool)

Definition at line 808 of file Controller.cpp.

Referenced by init_options().

◆ setRenderMonitor()

void Freestyle::Controller::setRenderMonitor ( RenderMonitor * iRenderMonitor)

Definition at line 186 of file Controller.cpp.

Referenced by blender::FRS_do_stroke_rendering().

◆ setSphereRadius()

void Freestyle::Controller::setSphereRadius ( float s)
inline

Definition at line 134 of file Controller.h.

Referenced by blender::prepare().

◆ setSuggestiveContourKrDerivativeEpsilon()

void Freestyle::Controller::setSuggestiveContourKrDerivativeEpsilon ( float dkr)
inline

Definition at line 142 of file Controller.h.

Referenced by blender::prepare().

◆ setView()

void Freestyle::Controller::setView ( AppView * iView)

Definition at line 176 of file Controller.cpp.

References _Canvas, and Freestyle::AppCanvas::setViewer().

Referenced by blender::FRS_init().

◆ setViewMapCache()

void Freestyle::Controller::setViewMapCache ( bool iBool)

Definition at line 798 of file Controller.cpp.

Referenced by blender::FRS_do_stroke_rendering().

◆ setVisibilityAlgo()

◆ SwapStyleModules()

void Freestyle::Controller::SwapStyleModules ( uint i1,
uint i2 )

Definition at line 971 of file Controller.cpp.

References _Canvas, and Freestyle::Canvas::SwapStyleModules().

Referenced by Load3DSFile().

◆ toggleEdgeTesselationNature()

void Freestyle::Controller::toggleEdgeTesselationNature ( Nature::EdgeNature iNature)

Definition at line 1015 of file Controller.cpp.

References ComputeViewMap().

Referenced by Load3DSFile().

◆ toggleLayer()

void Freestyle::Controller::toggleLayer ( uint index,
bool iDisplay )

Definition at line 976 of file Controller.cpp.

References _Canvas, index, and Freestyle::Canvas::setVisible().

Referenced by Load3DSFile(), and blender::prepare().

◆ toggleVisibilityAlgo()

void Freestyle::Controller::toggleVisibilityAlgo ( )

◆ updateCausalStyleModules()

void Freestyle::Controller::updateCausalStyleModules ( uint index)

Member Data Documentation

◆ _Canvas

◆ _ViewMap


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