|
Blender V4.3
|
#include <Controller.h>
Public Attributes | |
| ViewMap * | _ViewMap |
| AppCanvas * | _Canvas |
Definition at line 41 of file Controller.h.
| Freestyle::Controller::Controller | ( | ) |
Definition at line 62 of file Controller.cpp.
References _Canvas, _ViewMap, Freestyle::BaseObject::addRef(), Freestyle::Config::APPLICATION_NAME(), Freestyle::Nature::BORDER, Freestyle::Nature::CREASE, Freestyle::Config::DIR_SEP(), Freestyle::Config::Path::getHomeDir(), Freestyle::Config::Path::getInstance(), init_options(), Freestyle::Config::OPTIONS_CURRENT_DIRS_FILE(), Freestyle::Config::OPTIONS_DIR(), Freestyle::ViewMapBuilder::ray_casting_adaptive_traditional, and Freestyle::Nature::SILHOUETTE.
| Freestyle::Controller::~Controller | ( | ) |
Definition at line 122 of file Controller.cpp.
References _Canvas, _ViewMap, and Freestyle::NodeGroup::destroy().
| void Freestyle::Controller::AddStyleModule | ( | const char * | iFileName | ) |
Definition at line 947 of file Controller.cpp.
| NodeGroup * Freestyle::Controller::BuildRep | ( | vector< ViewEdge * >::iterator | vedges_begin, |
| vector< ViewEdge * >::iterator | vedges_end ) |
Definition at line 1001 of file Controller.cpp.
References Freestyle::FrsMaterial::setDiffuse(), Freestyle::ViewMapTesselator::setFrsMaterial(), and Freestyle::ViewMapTesselator::Tesselate().
| void Freestyle::Controller::Clear | ( | ) |
Definition at line 957 of file Controller.cpp.
References _Canvas, and Freestyle::Canvas::Clear().
Referenced by FRS_end_stroke_rendering(), and FRS_init().
| void Freestyle::Controller::ClearRootNode | ( | ) |
Definition at line 380 of file Controller.cpp.
References Freestyle::BaseObject::addRef(), Freestyle::Node::clearBBox(), Freestyle::NodeGroup::destroy(), and Freestyle::AppView::DetachModel().
Referenced by CloseFile(), and LoadMesh().
| void Freestyle::Controller::CloseFile | ( | ) |
Definition at line 362 of file Controller.cpp.
References _Canvas, Freestyle::Canvas::Clear(), ClearRootNode(), DeleteViewMap(), DeleteWingedEdge(), Freestyle::WShape::setCurrentId(), setPassDiffuse(), and setPassZ().
Referenced by FRS_do_stroke_rendering().
| void Freestyle::Controller::ComputeSteerableViewMap | ( | ) |
Definition at line 625 of file Controller.cpp.
References _Canvas, _ViewMap, Freestyle::NodeGroup::AddChild(), Freestyle::SteerableViewMap::AddFEdge(), Freestyle::NodeShape::AddRep(), Freestyle::SteerableViewMap::buildImagesPyramids(), Freestyle::c, Freestyle::NodeGroup::destroy(), Freestyle::ViewMap::FEdges(), G, G_DEBUG_FREESTYLE, Freestyle::GrayImage::getArray(), Freestyle::Canvas::getSteerableViewMap(), Freestyle::AppView::height(), Freestyle::FrsImage::height(), Freestyle::Canvas::NB_STEERABLE_VIEWMAP, Freestyle::GrayImage::pixel(), Freestyle::SteerableViewMap::Reset(), Freestyle::GrayImage::setPixel(), v, Freestyle::AppView::width(), Freestyle::FrsImage::width(), Freestyle::x, and y.
Referenced by ComputeViewMap().
| void Freestyle::Controller::ComputeViewMap | ( | ) |
Definition at line 456 of file Controller.cpp.
References _ViewMap, Freestyle::AppView::Add2DSilhouette(), Freestyle::AppView::Add2DVisibleSilhouette(), Freestyle::AppView::AddDebug(), Freestyle::BaseObject::addRef(), Freestyle::AppView::AddSilhouette(), Freestyle::ViewMapBuilder::BuildViewMap(), ComputeSteerableViewMap(), DeleteViewMap(), DeleteWingedEdge(), Freestyle::FEdgeXDetector::enableFaceSmoothness(), Freestyle::FEdgeXDetector::enableMaterialBoundaries(), Freestyle::FEdgeXDetector::enableOrthographicProjection(), Freestyle::FEdgeXDetector::enableRidgesAndValleysFlag(), Freestyle::FEdgeXDetector::enableSuggestiveContours(), G, G_DEBUG_FREESTYLE, g_freestyle, Freestyle::AppView::GetAspect(), Freestyle::AppView::GetFocalLength(), Freestyle::AppView::GetFovyRadian(), FreestyleGlobals::mv, printf, Freestyle::FEdgeXDetector::processShapes(), FreestyleGlobals::proj, resetModified(), Freestyle::FEdgeXDetector::setCreaseAngle(), Freestyle::ViewMapBuilder::setEnableQI(), Freestyle::ViewMapBuilder::setFrustum(), Freestyle::ViewMapBuilder::setGrid(), Freestyle::ViewMapTesselator::setNature(), Freestyle::FEdgeXDetector::setRenderMonitor(), Freestyle::ViewMapBuilder::setRenderMonitor(), Freestyle::ViewMap::setScene3dBBox(), Freestyle::FEdgeXDetector::setSphereRadius(), Freestyle::FEdgeXDetector::setSuggestiveContourKrDerivativeEpsilon(), Freestyle::ViewMapBuilder::setTransform(), Freestyle::FEdgeXDetector::setViewpoint(), Freestyle::ViewMapBuilder::setViewpoint(), Freestyle::Chronometer::start(), Freestyle::Chronometer::stop(), Freestyle::ViewMapTesselator::Tesselate(), Freestyle::RenderMonitor::testBreak(), UNPACK3, Freestyle::ViewMap::viewedges_size(), FreestyleGlobals::viewpoint, FreestyleGlobals::viewport, Freestyle::AppView::zfar(), and Freestyle::AppView::znear().
Referenced by prepare(), and toggleEdgeTesselationNature().
| void Freestyle::Controller::DeleteViewMap | ( | bool | freeCache = false | ) |
Definition at line 408 of file Controller.cpp.
References _ViewMap, Freestyle::ViewMap::Clean(), Freestyle::AppView::DetachDebug(), and Freestyle::AppView::DetachSilhouette().
Referenced by CloseFile(), ComputeViewMap(), DrawStrokes(), and FRS_free_view_map_cache().
| void Freestyle::Controller::DeleteWingedEdge | ( | ) |
Definition at line 392 of file Controller.cpp.
References Freestyle::FastGrid::clear().
Referenced by CloseFile(), ComputeViewMap(), and LoadMesh().
| int Freestyle::Controller::DrawStrokes | ( | ) |
Definition at line 865 of file Controller.cpp.
References _Canvas, _ViewMap, DeleteViewMap(), Freestyle::Canvas::Draw(), G, G_DEBUG_FREESTYLE, Freestyle::Canvas::getStrokeCount(), resetModified(), Freestyle::Chronometer::start(), and Freestyle::Chronometer::stop().
Referenced by FRS_do_stroke_rendering().
| bool Freestyle::Controller::getComputeMaterialBoundariesFlag | ( | ) | const |
Definition at line 850 of file Controller.cpp.
Referenced by prepare().
| bool Freestyle::Controller::getComputeRidgesAndValleysFlag | ( | ) | const |
Definition at line 830 of file Controller.cpp.
Referenced by prepare().
| bool Freestyle::Controller::getComputeSteerableViewMapFlag | ( | ) | const |
Definition at line 860 of file Controller.cpp.
| bool Freestyle::Controller::getComputeSuggestiveContoursFlag | ( | ) | const |
Definition at line 840 of file Controller.cpp.
Referenced by prepare().
|
inline |
Definition at line 130 of file Controller.h.
Referenced by prepare().
| bool Freestyle::Controller::getFaceSmoothness | ( | ) | const |
Definition at line 820 of file Controller.cpp.
Referenced by prepare().
| string Freestyle::Controller::getModelsDir | ( | ) | const |
Definition at line 1023 of file Controller.cpp.
| string Freestyle::Controller::getModulesDir | ( | ) | const |
Definition at line 1035 of file Controller.cpp.
| bool Freestyle::Controller::getQuantitativeInvisibility | ( | ) | const |
Definition at line 810 of file Controller.cpp.
|
inline |
Definition at line 138 of file Controller.h.
Referenced by prepare().
|
inline |
Definition at line 146 of file Controller.h.
Referenced by prepare().
| bool Freestyle::Controller::getViewMapCache | ( | ) | const |
Definition at line 800 of file Controller.cpp.
| int Freestyle::Controller::getVisibilityAlgo | ( | ) |
Definition at line 771 of file Controller.cpp.
References FREESTYLE_ALGO_ADAPTIVE_CUMULATIVE, FREESTYLE_ALGO_ADAPTIVE_TRADITIONAL, FREESTYLE_ALGO_CULLED_ADAPTIVE_CUMULATIVE, FREESTYLE_ALGO_CULLED_ADAPTIVE_TRADITIONAL, FREESTYLE_ALGO_FAST, FREESTYLE_ALGO_REGULAR, 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 210 of file Controller.cpp.
References _ViewMap, Freestyle::SceneHash::match(), and Freestyle::SceneHash::store().
Referenced by LoadMesh(), and prepare().
| void Freestyle::Controller::init_options | ( | ) |
Definition at line 1095 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 924 of file Controller.cpp.
References _Canvas, BLI_path_extension_check(), and Freestyle::Canvas::InsertStyleModule().
Referenced by prepare().
| void Freestyle::Controller::InsertStyleModule | ( | uint | index, |
| const char * | iName, | ||
| const char * | iBuffer ) |
Definition at line 935 of file Controller.cpp.
References _Canvas, and Freestyle::Canvas::InsertStyleModule().
| void Freestyle::Controller::InsertStyleModule | ( | uint | index, |
| const char * | iName, | ||
| struct Text * | iText ) |
Definition at line 941 of file Controller.cpp.
References _Canvas, and Freestyle::Canvas::InsertStyleModule().
| int Freestyle::Controller::Load3DSFile | ( | const char * | iFileName | ) |
Definition at line 222 of file Controller.cpp.
References _ViewMap, Freestyle::NodeGroup::accept(), Freestyle::NodeGroup::AddChild(), Freestyle::Node::bbox(), BLI_path_normalize(), BLI_strncpy(), ClearRootNode(), DeleteWingedEdge(), depsgraph, Freestyle::NodeGroup::destroy(), FILE_MAX, G, G_DEBUG_FREESTYLE, g_freestyle, Freestyle::WingedEdge::getNumFaces(), Freestyle::WingedEdgeBuilder::getWingedEdge(), hitViewMapCache(), Freestyle::BlenderFileLoader::Load(), norm(), Freestyle::NodeGroup::numberOfChildren(), Freestyle::BlenderFileLoader::numFacesRead(), printf, FreestyleGlobals::proj, Freestyle::SceneHash::reset(), Render::scene, Freestyle::AppView::setDebug(), Freestyle::AppView::setModel(), Freestyle::NodeCamera::setProjectionMatrix(), Freestyle::BlenderFileLoader::setRenderMonitor(), Freestyle::WingedEdgeBuilder::setRenderMonitor(), Freestyle::Chronometer::start(), Freestyle::Chronometer::stop(), Freestyle::RenderMonitor::testBreak(), Freestyle::SceneHash::toString(), and Freestyle::NodeGroup::UpdateBBox().
Referenced by prepare().
| void Freestyle::Controller::ReloadStyleModule | ( | uint | index, |
| const char * | iFileName ) |
Definition at line 962 of file Controller.cpp.
References _Canvas, and Freestyle::Canvas::ReplaceStyleModule().
| void Freestyle::Controller::RemoveStyleModule | ( | uint | index | ) |
Definition at line 952 of file Controller.cpp.
References _Canvas, and Freestyle::Canvas::RemoveStyleModule().
Definition at line 892 of file Controller.cpp.
References _Canvas, G, G_DEBUG_FREESTYLE, Freestyle::BlenderStrokeRenderer::GenerateScene(), MEM_get_memory_in_use, MEM_get_peak_memory, mem_in_use, printf, Freestyle::Canvas::Render(), Freestyle::BlenderStrokeRenderer::RenderScene(), Freestyle::Chronometer::start(), and Freestyle::Chronometer::stop().
Referenced by FRS_do_stroke_rendering().
| void Freestyle::Controller::resetInterpreter | ( | ) |
Definition at line 1042 of file Controller.cpp.
References Freestyle::Interpreter::reset().
| void Freestyle::Controller::resetModified | ( | bool | iMod = false | ) |
Definition at line 995 of file Controller.cpp.
References _Canvas, and Freestyle::Canvas::resetModified().
Referenced by ComputeViewMap(), and DrawStrokes().
| void Freestyle::Controller::ResetRenderCount | ( | ) |
Definition at line 887 of file Controller.cpp.
Referenced by FRS_init_stroke_renderer().
| void Freestyle::Controller::saveSteerableViewMapImages | ( | ) |
Definition at line 721 of file Controller.cpp.
References _Canvas, Freestyle::Canvas::getSteerableViewMap(), and Freestyle::SteerableViewMap::saveSteerableViewMap().
| void Freestyle::Controller::setComputeMaterialBoundariesFlag | ( | bool | b | ) |
| void Freestyle::Controller::setComputeRidgesAndValleysFlag | ( | bool | b | ) |
| void Freestyle::Controller::setComputeSteerableViewMapFlag | ( | bool | iBool | ) |
Definition at line 855 of file Controller.cpp.
Referenced by init_options().
| void Freestyle::Controller::setComputeSuggestiveContoursFlag | ( | bool | b | ) |
| void Freestyle::Controller::setContext | ( | bContext * | C | ) |
Definition at line 204 of file Controller.cpp.
References Freestyle::PythonInterpreter::setContext().
Referenced by FRS_set_context().
|
inline |
| void Freestyle::Controller::setFaceSmoothness | ( | bool | iBool | ) |
Definition at line 815 of file Controller.cpp.
Referenced by prepare().
| void Freestyle::Controller::setModelsDir | ( | const string & | dir | ) |
Definition at line 1018 of file Controller.cpp.
| void Freestyle::Controller::setModified | ( | uint | index, |
| bool | iMod ) |
Definition at line 978 of file Controller.cpp.
References _Canvas, Freestyle::Canvas::setModified(), and updateCausalStyleModules().
| void Freestyle::Controller::setModulesDir | ( | const string & | dir | ) |
Definition at line 1030 of file Controller.cpp.
Definition at line 190 of file Controller.cpp.
References _Canvas, BLI_assert, and Freestyle::AppCanvas::setPassDiffuse().
Referenced by CloseFile(), init_options(), and prepare().
Definition at line 197 of file Controller.cpp.
References _Canvas, BLI_assert, and Freestyle::AppCanvas::setPassZ().
Referenced by CloseFile(), init_options(), and prepare().
| void Freestyle::Controller::setQuantitativeInvisibility | ( | bool | iBool | ) |
Definition at line 805 of file Controller.cpp.
Referenced by init_options().
| void Freestyle::Controller::setRenderMonitor | ( | RenderMonitor * | iRenderMonitor | ) |
Definition at line 185 of file Controller.cpp.
Referenced by FRS_do_stroke_rendering().
|
inline |
Definition at line 134 of file Controller.h.
Referenced by prepare().
|
inline |
Definition at line 142 of file Controller.h.
Referenced by prepare().
| void Freestyle::Controller::setView | ( | AppView * | iView | ) |
Definition at line 175 of file Controller.cpp.
References _Canvas, and Freestyle::AppCanvas::setViewer().
Referenced by FRS_init().
| void Freestyle::Controller::setViewMapCache | ( | bool | iBool | ) |
Definition at line 795 of file Controller.cpp.
Referenced by FRS_do_stroke_rendering().
| void Freestyle::Controller::setVisibilityAlgo | ( | int | algo | ) |
Definition at line 744 of file Controller.cpp.
References FREESTYLE_ALGO_ADAPTIVE_CUMULATIVE, FREESTYLE_ALGO_ADAPTIVE_TRADITIONAL, FREESTYLE_ALGO_CULLED_ADAPTIVE_CUMULATIVE, FREESTYLE_ALGO_CULLED_ADAPTIVE_TRADITIONAL, FREESTYLE_ALGO_FAST, FREESTYLE_ALGO_REGULAR, 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 prepare().
Definition at line 968 of file Controller.cpp.
References _Canvas, and Freestyle::Canvas::SwapStyleModules().
| void Freestyle::Controller::toggleEdgeTesselationNature | ( | Nature::EdgeNature | iNature | ) |
Definition at line 1012 of file Controller.cpp.
References ComputeViewMap().
| void Freestyle::Controller::toggleLayer | ( | uint | index, |
| bool | iDisplay ) |
Definition at line 973 of file Controller.cpp.
References _Canvas, and Freestyle::Canvas::setVisible().
Referenced by prepare().
| void Freestyle::Controller::toggleVisibilityAlgo | ( | ) |
Definition at line 731 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 985 of file Controller.cpp.
References _Canvas, Freestyle::Canvas::causalStyleModules(), and Freestyle::Canvas::setModified().
Referenced by 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(), FRS_do_stroke_rendering(), hitViewMapCache(), LoadMesh(), and ~Controller().