|
Blender V5.0
|
#include <Controller.h>
Public Attributes | |
| ViewMap * | _ViewMap |
| AppCanvas * | _Canvas |
Definition at line 39 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.
| 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.
| void Freestyle::Controller::ClearRootNode | ( | ) |
Definition at line 380 of file Controller.cpp.
Referenced by CloseFile(), and LoadMesh().
| void Freestyle::Controller::CloseFile | ( | ) |
Definition at line 362 of file Controller.cpp.
References _Canvas, ClearRootNode(), DeleteViewMap(), DeleteWingedEdge(), Freestyle::WShape::setCurrentId(), setPassDiffuse(), and setPassZ().
| 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(), G, G_DEBUG_FREESTYLE, Freestyle::GrayImage::getArray(), Freestyle::FrsImage::height(), i, Freestyle::Canvas::NB_STEERABLE_VIEWMAP, Freestyle::GrayImage::pixel(), Freestyle::SteerableViewMap::Reset(), Freestyle::GrayImage::setPixel(), v, 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::BaseObject::addRef(), Freestyle::ViewMapBuilder::BuildViewMap(), ComputeSteerableViewMap(), DeleteViewMap(), DeleteWingedEdge(), G, G_DEBUG_FREESTYLE, g_freestyle, i, printf, resetModified(), Freestyle::ViewMapBuilder::setEnableQI(), Freestyle::ViewMapBuilder::setFrustum(), Freestyle::ViewMapBuilder::setGrid(), Freestyle::ViewMapTesselator::setNature(), Freestyle::ViewMapBuilder::setRenderMonitor(), Freestyle::ViewMapBuilder::setTransform(), Freestyle::ViewMapBuilder::setViewpoint(), Freestyle::ViewMapTesselator::Tesselate(), and UNPACK3.
Referenced by toggleEdgeTesselationNature().
| void Freestyle::Controller::DeleteViewMap | ( | bool | freeCache = false | ) |
Definition at line 408 of file Controller.cpp.
References _ViewMap.
Referenced by CloseFile(), ComputeViewMap(), and DrawStrokes().
| void Freestyle::Controller::DeleteWingedEdge | ( | ) |
Definition at line 392 of file Controller.cpp.
Referenced by CloseFile(), ComputeViewMap(), and LoadMesh().
| void Freestyle::Controller::displayDensityCurves | ( | int | x, |
| int | y ) |
Definition at line 1049 of file Controller.cpp.
References _Canvas, Freestyle::SteerableViewMap::getNumberOfOrientations(), Freestyle::SteerableViewMap::getNumberOfPyramidLevels(), i, Freestyle::SteerableViewMap::readSteerableViewMapPixel(), Freestyle::x, and y.
| int Freestyle::Controller::DrawStrokes | ( | ) |
Definition at line 865 of file Controller.cpp.
References _Canvas, _ViewMap, DeleteViewMap(), G, G_DEBUG_FREESTYLE, and resetModified().
| bool Freestyle::Controller::getComputeMaterialBoundariesFlag | ( | ) | const |
Definition at line 850 of file Controller.cpp.
| bool Freestyle::Controller::getComputeRidgesAndValleysFlag | ( | ) | const |
Definition at line 830 of file Controller.cpp.
| 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.
|
inline |
Definition at line 128 of file Controller.h.
| bool Freestyle::Controller::getFaceSmoothness | ( | ) | const |
Definition at line 820 of file Controller.cpp.
| 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 136 of file Controller.h.
|
inline |
Definition at line 144 of file Controller.h.
| 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 | ( | ) |
| 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::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, and BLI_path_extension_check().
| void Freestyle::Controller::InsertStyleModule | ( | uint | index, |
| const char * | iName, | ||
| const char * | iBuffer ) |
Definition at line 935 of file Controller.cpp.
References _Canvas.
| void Freestyle::Controller::InsertStyleModule | ( | uint | index, |
| const char * | iName, | ||
| struct Text * | iText ) |
Definition at line 941 of file Controller.cpp.
References _Canvas.
| int Freestyle::Controller::Load3DSFile | ( | const char * | iFileName | ) |
References Freestyle::x, and y.
Definition at line 222 of file Controller.cpp.
References _ViewMap, Freestyle::NodeGroup::accept(), BLI_path_normalize(), BLI_strncpy(), ClearRootNode(), DeleteWingedEdge(), depsgraph, Freestyle::NodeGroup::destroy(), FILE_MAX, G, G_DEBUG_FREESTYLE, g_freestyle, Freestyle::WingedEdgeBuilder::getWingedEdge(), hitViewMapCache(), i, Freestyle::BlenderFileLoader::Load(), Freestyle::NodeGroup::numberOfChildren(), Freestyle::BlenderFileLoader::numFacesRead(), printf, Render::scene, Freestyle::NodeCamera::setProjectionMatrix(), Freestyle::BlenderFileLoader::setRenderMonitor(), and Freestyle::WingedEdgeBuilder::setRenderMonitor().
| void Freestyle::Controller::ReloadStyleModule | ( | uint | index, |
| const char * | iFileName ) |
Definition at line 962 of file Controller.cpp.
References _Canvas.
| void Freestyle::Controller::RemoveStyleModule | ( | uint | index | ) |
Definition at line 952 of file Controller.cpp.
References _Canvas.
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, and Freestyle::BlenderStrokeRenderer::RenderScene().
| void Freestyle::Controller::resetInterpreter | ( | ) |
Definition at line 1042 of file Controller.cpp.
| void Freestyle::Controller::resetModified | ( | bool | iMod = false | ) |
Definition at line 995 of file Controller.cpp.
References _Canvas.
Referenced by ComputeViewMap(), and DrawStrokes().
| void Freestyle::Controller::ResetRenderCount | ( | ) |
Definition at line 887 of file Controller.cpp.
| void Freestyle::Controller::saveSteerableViewMapImages | ( | ) |
Definition at line 721 of file Controller.cpp.
References _Canvas, and Freestyle::SteerableViewMap::saveSteerableViewMap().
References Freestyle::x, and y.
References Freestyle::x, and y.
| void Freestyle::Controller::setComputeMaterialBoundariesFlag | ( | bool | b | ) |
Definition at line 845 of file Controller.cpp.
References b.
| void Freestyle::Controller::setComputeRidgesAndValleysFlag | ( | bool | b | ) |
Definition at line 825 of file Controller.cpp.
References 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 | ) |
Definition at line 835 of file Controller.cpp.
References b.
| void Freestyle::Controller::setContext | ( | bContext * | C | ) |
Definition at line 204 of file Controller.cpp.
References Freestyle::PythonInterpreter::setContext().
|
inline |
Definition at line 124 of file Controller.h.
References angle().
| void Freestyle::Controller::setFaceSmoothness | ( | bool | iBool | ) |
Definition at line 815 of file Controller.cpp.
| 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, and updateCausalStyleModules().
| void Freestyle::Controller::setModulesDir | ( | const string & | dir | ) |
Definition at line 1030 of file Controller.cpp.
| void Freestyle::Controller::setPassDiffuse | ( | float * | buf, |
| int | width, | ||
| int | height ) |
Definition at line 190 of file Controller.cpp.
References _Canvas, BLI_assert, and Freestyle::AppCanvas::setPassDiffuse().
Referenced by CloseFile(), and init_options().
| void Freestyle::Controller::setPassZ | ( | float * | buf, |
| int | width, | ||
| int | height ) |
Definition at line 197 of file Controller.cpp.
References _Canvas, BLI_assert, and Freestyle::AppCanvas::setPassZ().
Referenced by CloseFile(), and init_options().
| 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.
|
inline |
Definition at line 132 of file Controller.h.
|
inline |
Definition at line 140 of file Controller.h.
| void Freestyle::Controller::setView | ( | AppView * | iView | ) |
Definition at line 175 of file Controller.cpp.
References _Canvas.
| void Freestyle::Controller::setViewMapCache | ( | bool | iBool | ) |
Definition at line 795 of file Controller.cpp.
| 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.
Definition at line 968 of file Controller.cpp.
References _Canvas.
| 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.
| 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 | ) |
| AppCanvas* Freestyle::Controller::_Canvas |
Definition at line 163 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 160 of file Controller.h.
Referenced by ComputeSteerableViewMap(), ComputeViewMap(), Controller(), DeleteViewMap(), DrawStrokes(), hitViewMapCache(), LoadMesh(), and ~Controller().