|
Blender V5.3
|
#include <Controller.h>
Public Attributes | |
| ViewMap * | _ViewMap |
| AppCanvas * | _Canvas |
Definition at line 41 of file Controller.h.
| Freestyle::Controller::Controller | ( | ) |
Definition at line 63 of file Controller.cpp.
References _Canvas, _ViewMap, Freestyle::BaseObject::addRef(), Freestyle::Config::Path::getHomeDir(), Freestyle::Config::Path::getInstance(), init_options(), Freestyle::PythonInterpreter::PythonInterpreter(), and Freestyle::ViewMapBuilder::ray_casting_adaptive_traditional.
Referenced by blender::FRS_init().
| Freestyle::Controller::~Controller | ( | ) |
Definition at line 123 of file Controller.cpp.
| void Freestyle::Controller::AddStyleModule | ( | const char * | iFileName | ) |
Definition at line 950 of file Controller.cpp.
Referenced by Load3DSFile().
| NodeGroup * Freestyle::Controller::BuildRep | ( | vector< ViewEdge * >::iterator | vedges_begin, |
| vector< ViewEdge * >::iterator | vedges_end ) |
Definition at line 1004 of file Controller.cpp.
References Freestyle::FrsMaterial::setDiffuse(), Freestyle::ViewMapTesselator::setFrsMaterial(), and Freestyle::ViewMapTesselator::Tesselate().
Referenced by SelectFEdge().
| void Freestyle::Controller::Clear | ( | ) |
Definition at line 960 of file Controller.cpp.
References _Canvas, and Freestyle::Canvas::Clear().
Referenced by blender::FRS_end_stroke_rendering(), blender::FRS_init(), and Load3DSFile().
| void Freestyle::Controller::ClearRootNode | ( | ) |
Definition at line 383 of file Controller.cpp.
Referenced by CloseFile(), Load3DSFile(), and LoadMesh().
| void Freestyle::Controller::CloseFile | ( | ) |
Definition at line 365 of file Controller.cpp.
References _Canvas, Freestyle::Canvas::Clear(), ClearRootNode(), DeleteViewMap(), DeleteWingedEdge(), Freestyle::WShape::setCurrentId(), setPassDiffuse(), and setPassZ().
Referenced by blender::FRS_do_stroke_rendering(), and Load3DSFile().
| void Freestyle::Controller::ComputeSteerableViewMap | ( | ) |
Definition at line 628 of file Controller.cpp.
References _Canvas, _ViewMap, Freestyle::NodeGroup::AddChild(), Freestyle::SteerableViewMap::AddFEdge(), Freestyle::NodeShape::AddRep(), Freestyle::SteerableViewMap::buildImagesPyramids(), Freestyle::NodeGroup::destroy(), Freestyle::ViewMap::FEdges(), blender::G, blender::G_DEBUG_FREESTYLE, Freestyle::GrayImage::getArray(), Freestyle::Canvas::getSteerableViewMap(), Freestyle::GrayImage::GrayImage(), Freestyle::FrsImage::height(), Freestyle::LineRep::LineRep(), Freestyle::Canvas::NB_STEERABLE_VIEWMAP, Freestyle::GrayImage::pixel(), Freestyle::SteerableViewMap::Reset(), Freestyle::GrayImage::setPixel(), Freestyle::FrsImage::width(), x, and y.
Referenced by ComputeViewMap(), and Load3DSFile().
| void Freestyle::Controller::ComputeViewMap | ( | ) |
Definition at line 459 of file Controller.cpp.
References _ViewMap, Freestyle::BaseObject::addRef(), Freestyle::ViewMapBuilder::BuildViewMap(), ComputeSteerableViewMap(), DeleteViewMap(), DeleteWingedEdge(), blender::G, blender::G_DEBUG_FREESTYLE, blender::g_freestyle, blender::FreestyleGlobals::mv, printf, blender::FreestyleGlobals::proj, resetModified(), Freestyle::ViewMapBuilder::setEnableQI(), Freestyle::ViewMapBuilder::setFrustum(), Freestyle::ViewMapBuilder::setGrid(), Freestyle::ViewMapTesselator::setNature(), Freestyle::ViewMapBuilder::setRenderMonitor(), Freestyle::ViewMap::setScene3dBBox(), Freestyle::ViewMapBuilder::setTransform(), Freestyle::ViewMapBuilder::setViewpoint(), Freestyle::ViewMapTesselator::Tesselate(), UNPACK3, Freestyle::ViewMap::viewedges_size(), and blender::FreestyleGlobals::viewport.
Referenced by Load3DSFile(), blender::prepare(), and toggleEdgeTesselationNature().
| void Freestyle::Controller::DeleteViewMap | ( | bool | freeCache = false | ) |
Definition at line 411 of file Controller.cpp.
References _ViewMap, and Freestyle::ViewMap::Clean().
Referenced by CloseFile(), ComputeViewMap(), DrawStrokes(), blender::FRS_free_view_map_cache(), and Load3DSFile().
| void Freestyle::Controller::DeleteWingedEdge | ( | ) |
Definition at line 395 of file Controller.cpp.
Referenced by CloseFile(), ComputeViewMap(), Load3DSFile(), and LoadMesh().
| void Freestyle::Controller::displayDensityCurves | ( | int | x, |
| int | y ) |
Definition at line 1052 of file Controller.cpp.
References _Canvas, Freestyle::SteerableViewMap::getNumberOfOrientations(), Freestyle::SteerableViewMap::getNumberOfPyramidLevels(), Freestyle::Canvas::getSteerableViewMap(), Freestyle::SteerableViewMap::readSteerableViewMapPixel(), x, and y.
Referenced by Load3DSFile().
| int Freestyle::Controller::DrawStrokes | ( | ) |
Definition at line 868 of file Controller.cpp.
References _Canvas, _ViewMap, DeleteViewMap(), Freestyle::Canvas::Draw(), blender::G, blender::G_DEBUG_FREESTYLE, Freestyle::Canvas::getStrokeCount(), and resetModified().
Referenced by blender::FRS_do_stroke_rendering(), and Load3DSFile().
| bool Freestyle::Controller::getComputeMaterialBoundariesFlag | ( | ) | const |
Definition at line 853 of file Controller.cpp.
Referenced by blender::prepare().
| bool Freestyle::Controller::getComputeRidgesAndValleysFlag | ( | ) | const |
Definition at line 833 of file Controller.cpp.
Referenced by blender::prepare().
| bool Freestyle::Controller::getComputeSteerableViewMapFlag | ( | ) | const |
Definition at line 863 of file Controller.cpp.
| bool Freestyle::Controller::getComputeSuggestiveContoursFlag | ( | ) | const |
Definition at line 843 of file Controller.cpp.
Referenced by blender::prepare().
|
inline |
Definition at line 130 of file Controller.h.
Referenced by blender::prepare().
| bool Freestyle::Controller::getFaceSmoothness | ( | ) | const |
Definition at line 823 of file Controller.cpp.
Referenced by blender::prepare().
| string Freestyle::Controller::getModelsDir | ( | ) | const |
Definition at line 1026 of file Controller.cpp.
| string Freestyle::Controller::getModulesDir | ( | ) | const |
Definition at line 1038 of file Controller.cpp.
| bool Freestyle::Controller::getQuantitativeInvisibility | ( | ) | const |
Definition at line 813 of file Controller.cpp.
|
inline |
Definition at line 138 of file Controller.h.
Referenced by blender::prepare().
|
inline |
Definition at line 146 of file Controller.h.
Referenced by blender::prepare().
| bool Freestyle::Controller::getViewMapCache | ( | ) | const |
Definition at line 803 of file Controller.cpp.
| int Freestyle::Controller::getVisibilityAlgo | ( | ) |
Definition at line 774 of file Controller.cpp.
References blender::FREESTYLE_ALGO_ADAPTIVE_CUMULATIVE, blender::FREESTYLE_ALGO_ADAPTIVE_TRADITIONAL, blender::FREESTYLE_ALGO_CULLED_ADAPTIVE_CUMULATIVE, blender::FREESTYLE_ALGO_CULLED_ADAPTIVE_TRADITIONAL, blender::FREESTYLE_ALGO_FAST, blender::FREESTYLE_ALGO_REGULAR, blender::FREESTYLE_ALGO_VERYFAST, Freestyle::ViewMapBuilder::ray_casting, Freestyle::ViewMapBuilder::ray_casting_adaptive_cumulative, Freestyle::ViewMapBuilder::ray_casting_adaptive_traditional, Freestyle::ViewMapBuilder::ray_casting_culled_adaptive_cumulative, Freestyle::ViewMapBuilder::ray_casting_culled_adaptive_traditional, Freestyle::ViewMapBuilder::ray_casting_fast, and Freestyle::ViewMapBuilder::ray_casting_very_fast.
| bool Freestyle::Controller::hitViewMapCache | ( | ) |
Definition at line 211 of file Controller.cpp.
References _ViewMap.
Referenced by LoadMesh(), and blender::prepare().
| void Freestyle::Controller::init_options | ( | ) |
Definition at line 1098 of file Controller.cpp.
References _Canvas, Freestyle::Config::Path::getInstance(), Freestyle::Config::Path::getModelsPath(), Freestyle::Config::Path::getPatternsPath(), Freestyle::AppCanvas::init(), Freestyle::TextureManager::Options::setBrushesPath(), setComputeSteerableViewMapFlag(), setPassDiffuse(), setPassZ(), Freestyle::TextureManager::Options::setPatternsPath(), and setQuantitativeInvisibility().
Referenced by Controller().
| void Freestyle::Controller::InsertStyleModule | ( | uint | index, |
| const char * | iFileName ) |
Definition at line 927 of file Controller.cpp.
References _Canvas, blender::BLI_path_extension_check(), index, Freestyle::Canvas::InsertStyleModule(), and Freestyle::StyleModule::StyleModule().
Referenced by Load3DSFile(), and blender::prepare().
| void Freestyle::Controller::InsertStyleModule | ( | uint | index, |
| const char * | iName, | ||
| const char * | iBuffer ) |
Definition at line 938 of file Controller.cpp.
References _Canvas, Freestyle::BufferedStyleModule::BufferedStyleModule(), index, and Freestyle::Canvas::InsertStyleModule().
| void Freestyle::Controller::InsertStyleModule | ( | uint | index, |
| const char * | iName, | ||
| struct blender::Text * | iText ) |
Definition at line 944 of file Controller.cpp.
References _Canvas, Freestyle::BlenderStyleModule::BlenderStyleModule(), index, and Freestyle::Canvas::InsertStyleModule().
| int Freestyle::Controller::Load3DSFile | ( | const char * | iFileName | ) |
References AddStyleModule(), Clear(), ClearRootNode(), CloseFile(), ComputeSteerableViewMap(), ComputeViewMap(), DeleteViewMap(), DeleteWingedEdge(), displayDensityCurves(), DrawStrokes(), index, InsertStyleModule(), ReloadStyleModule(), RemoveStyleModule(), RenderStrokes(), resetModified(), ResetRenderCount(), saveSteerableViewMapImages(), setModified(), SwapStyleModules(), toggleEdgeTesselationNature(), toggleLayer(), updateCausalStyleModules(), x, and y.
| int Freestyle::Controller::LoadMesh | ( | blender::Render * | re, |
| blender::ViewLayer * | view_layer, | ||
| blender::Depsgraph * | depsgraph ) |
Definition at line 223 of file Controller.cpp.
References _ViewMap, Freestyle::NodeGroup::accept(), ClearRootNode(), DeleteWingedEdge(), Freestyle::NodeGroup::destroy(), FILE_MAX, blender::G, blender::G_DEBUG_FREESTYLE, blender::g_freestyle, Freestyle::WingedEdgeBuilder::getWingedEdge(), hitViewMapCache(), Freestyle::BlenderFileLoader::Load(), Freestyle::NodeViewLayer::NodeViewLayer(), Freestyle::NodeGroup::numberOfChildren(), Freestyle::BlenderFileLoader::numFacesRead(), printf, blender::FreestyleGlobals::proj, blender::Render::scene, Freestyle::NodeCamera::setProjectionMatrix(), Freestyle::BlenderFileLoader::setRenderMonitor(), and Freestyle::WingedEdgeBuilder::setRenderMonitor().
Referenced by blender::prepare().
| void Freestyle::Controller::ReloadStyleModule | ( | uint | index, |
| const char * | iFileName ) |
Definition at line 965 of file Controller.cpp.
References _Canvas, index, Freestyle::Canvas::ReplaceStyleModule(), and Freestyle::StyleModule::StyleModule().
Referenced by Load3DSFile().
| void Freestyle::Controller::RemoveStyleModule | ( | uint | index | ) |
Definition at line 955 of file Controller.cpp.
References _Canvas, index, and Freestyle::Canvas::RemoveStyleModule().
Referenced by Load3DSFile().
| blender::Render * Freestyle::Controller::RenderStrokes | ( | blender::Render * | re, |
| bool | render ) |
Definition at line 895 of file Controller.cpp.
References _Canvas, Freestyle::BlenderStrokeRenderer::BlenderStrokeRenderer(), blender::G, blender::G_DEBUG_FREESTYLE, Freestyle::BlenderStrokeRenderer::GenerateScene(), MEM_get_memory_in_use, MEM_get_peak_memory, printf, Freestyle::Canvas::Render(), and Freestyle::BlenderStrokeRenderer::RenderScene().
Referenced by blender::FRS_do_stroke_rendering(), and Load3DSFile().
| void Freestyle::Controller::resetInterpreter | ( | ) |
Definition at line 1045 of file Controller.cpp.
| 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().
| void Freestyle::Controller::ResetRenderCount | ( | ) |
Definition at line 890 of file Controller.cpp.
Referenced by blender::FRS_init_stroke_renderer(), and Load3DSFile().
| void Freestyle::Controller::saveSteerableViewMapImages | ( | ) |
Definition at line 724 of file Controller.cpp.
References _Canvas, Freestyle::Canvas::getSteerableViewMap(), and Freestyle::SteerableViewMap::saveSteerableViewMap().
Referenced by Load3DSFile().
| void Freestyle::Controller::setComputeMaterialBoundariesFlag | ( | bool | b | ) |
| void Freestyle::Controller::setComputeRidgesAndValleysFlag | ( | bool | b | ) |
| void Freestyle::Controller::setComputeSteerableViewMapFlag | ( | bool | iBool | ) |
Definition at line 858 of file Controller.cpp.
Referenced by init_options().
| void Freestyle::Controller::setComputeSuggestiveContoursFlag | ( | bool | b | ) |
| 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().
|
inline |
| void Freestyle::Controller::setFaceSmoothness | ( | bool | iBool | ) |
Definition at line 818 of file Controller.cpp.
Referenced by blender::prepare().
| void Freestyle::Controller::setModelsDir | ( | const string & | dir | ) |
Definition at line 1021 of file Controller.cpp.
| 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().
| void Freestyle::Controller::setModulesDir | ( | const string & | dir | ) |
Definition at line 1033 of file Controller.cpp.
| void Freestyle::Controller::setPassDiffuse | ( | float * | buf, |
| int | width, | ||
| int | height ) |
Definition at line 191 of file Controller.cpp.
References _Canvas, BLI_assert, and Freestyle::AppCanvas::setPassDiffuse().
Referenced by CloseFile(), init_options(), and blender::prepare().
| 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().
| void Freestyle::Controller::setQuantitativeInvisibility | ( | bool | iBool | ) |
Definition at line 808 of file Controller.cpp.
Referenced by init_options().
| void Freestyle::Controller::setRenderMonitor | ( | RenderMonitor * | iRenderMonitor | ) |
Definition at line 186 of file Controller.cpp.
Referenced by blender::FRS_do_stroke_rendering().
|
inline |
Definition at line 134 of file Controller.h.
Referenced by blender::prepare().
|
inline |
Definition at line 142 of file Controller.h.
Referenced by blender::prepare().
| 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().
| void Freestyle::Controller::setViewMapCache | ( | bool | iBool | ) |
Definition at line 798 of file Controller.cpp.
Referenced by blender::FRS_do_stroke_rendering().
| void Freestyle::Controller::setVisibilityAlgo | ( | int | algo | ) |
Definition at line 747 of file Controller.cpp.
References blender::FREESTYLE_ALGO_ADAPTIVE_CUMULATIVE, blender::FREESTYLE_ALGO_ADAPTIVE_TRADITIONAL, blender::FREESTYLE_ALGO_CULLED_ADAPTIVE_CUMULATIVE, blender::FREESTYLE_ALGO_CULLED_ADAPTIVE_TRADITIONAL, blender::FREESTYLE_ALGO_FAST, blender::FREESTYLE_ALGO_REGULAR, blender::FREESTYLE_ALGO_VERYFAST, Freestyle::ViewMapBuilder::ray_casting, Freestyle::ViewMapBuilder::ray_casting_adaptive_cumulative, Freestyle::ViewMapBuilder::ray_casting_adaptive_traditional, Freestyle::ViewMapBuilder::ray_casting_culled_adaptive_cumulative, Freestyle::ViewMapBuilder::ray_casting_culled_adaptive_traditional, Freestyle::ViewMapBuilder::ray_casting_fast, and Freestyle::ViewMapBuilder::ray_casting_very_fast.
Referenced by blender::prepare().
| 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().
| void Freestyle::Controller::toggleEdgeTesselationNature | ( | Nature::EdgeNature | iNature | ) |
Definition at line 1015 of file Controller.cpp.
References ComputeViewMap().
Referenced by Load3DSFile().
| 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().
| void Freestyle::Controller::toggleVisibilityAlgo | ( | ) |
Definition at line 734 of file Controller.cpp.
References Freestyle::ViewMapBuilder::ray_casting, Freestyle::ViewMapBuilder::ray_casting_fast, and Freestyle::ViewMapBuilder::ray_casting_very_fast.
| void Freestyle::Controller::updateCausalStyleModules | ( | uint | index | ) |
Definition at line 988 of file Controller.cpp.
References _Canvas, Freestyle::Canvas::causalStyleModules(), index, and Freestyle::Canvas::setModified().
Referenced by Load3DSFile(), and setModified().
| AppCanvas* Freestyle::Controller::_Canvas |
Definition at line 165 of file Controller.h.
Referenced by Clear(), CloseFile(), ComputeSteerableViewMap(), Controller(), displayDensityCurves(), DrawStrokes(), init_options(), InsertStyleModule(), InsertStyleModule(), InsertStyleModule(), ReloadStyleModule(), RemoveStyleModule(), RenderStrokes(), resetModified(), saveSteerableViewMapImages(), setModified(), setPassDiffuse(), setPassZ(), setView(), SwapStyleModules(), toggleLayer(), updateCausalStyleModules(), and ~Controller().
| ViewMap* Freestyle::Controller::_ViewMap |
Definition at line 162 of file Controller.h.
Referenced by ComputeSteerableViewMap(), ComputeViewMap(), Controller(), DeleteViewMap(), DrawStrokes(), blender::FRS_do_stroke_rendering(), hitViewMapCache(), LoadMesh(), and ~Controller().