|
Blender V4.5
|
#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::Path::getHomeDir(), Freestyle::Config::Path::getInstance(), init_options(), Freestyle::PythonInterpreter::PythonInterpreter(), and Freestyle::ViewMapBuilder::ray_casting_adaptive_traditional.
Referenced by FRS_init().
| 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.
Referenced by Load3DSFile().
| 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().
Referenced by SelectFEdge().
| void Freestyle::Controller::Clear | ( | ) |
Definition at line 957 of file Controller.cpp.
References _Canvas, and Freestyle::Canvas::Clear().
Referenced by FRS_end_stroke_rendering(), FRS_init(), and Load3DSFile().
| void Freestyle::Controller::ClearRootNode | ( | ) |
Definition at line 380 of file Controller.cpp.
Referenced by CloseFile(), Load3DSFile(), 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(), and Load3DSFile().
| 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::NodeGroup::destroy(), Freestyle::ViewMap::FEdges(), G, G_DEBUG_FREESTYLE, Freestyle::GrayImage::getArray(), Freestyle::Canvas::getSteerableViewMap(), Freestyle::GrayImage::GrayImage(), Freestyle::FrsImage::height(), i, Freestyle::LineRep::LineRep(), Freestyle::Canvas::NB_STEERABLE_VIEWMAP, Freestyle::GrayImage::pixel(), Freestyle::SteerableViewMap::Reset(), Freestyle::GrayImage::setPixel(), v, Freestyle::FrsImage::width(), x, and y.
Referenced by ComputeViewMap(), and Load3DSFile().
| 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, FreestyleGlobals::mv, printf, 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(), FreestyleGlobals::viewpoint, and FreestyleGlobals::viewport.
Referenced by Load3DSFile(), prepare(), and toggleEdgeTesselationNature().
| void Freestyle::Controller::DeleteViewMap | ( | bool | freeCache = false | ) |
Definition at line 408 of file Controller.cpp.
References _ViewMap, and Freestyle::ViewMap::Clean().
Referenced by CloseFile(), ComputeViewMap(), DrawStrokes(), FRS_free_view_map_cache(), and Load3DSFile().
| void Freestyle::Controller::DeleteWingedEdge | ( | ) |
Definition at line 392 of file Controller.cpp.
Referenced by CloseFile(), ComputeViewMap(), Load3DSFile(), 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(), Freestyle::Canvas::getSteerableViewMap(), i, Freestyle::SteerableViewMap::readSteerableViewMapPixel(), x, and y.
Referenced by Load3DSFile().
| 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(), and resetModified().
Referenced by FRS_do_stroke_rendering(), and Load3DSFile().
| 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 128 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 136 of file Controller.h.
Referenced by prepare().
|
inline |
Definition at line 144 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.
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(), Freestyle::Canvas::InsertStyleModule(), and Freestyle::StyleModule::StyleModule().
Referenced by Load3DSFile(), and prepare().
| void Freestyle::Controller::InsertStyleModule | ( | uint | index, |
| const char * | iName, | ||
| const char * | iBuffer ) |
Definition at line 935 of file Controller.cpp.
References _Canvas, Freestyle::BufferedStyleModule::BufferedStyleModule(), 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, Freestyle::BlenderStyleModule::BlenderStyleModule(), and Freestyle::Canvas::InsertStyleModule().
| int Freestyle::Controller::Load3DSFile | ( | const char * | iFileName | ) |
References AddStyleModule(), Clear(), ClearRootNode(), CloseFile(), ComputeSteerableViewMap(), ComputeViewMap(), DeleteViewMap(), DeleteWingedEdge(), displayDensityCurves(), DrawStrokes(), InsertStyleModule(), ReloadStyleModule(), RemoveStyleModule(), RenderStrokes(), resetModified(), ResetRenderCount(), saveSteerableViewMapImages(), setModified(), SwapStyleModules(), toggleEdgeTesselationNature(), toggleLayer(), updateCausalStyleModules(), x, and y.
Definition at line 222 of file Controller.cpp.
References _ViewMap, Freestyle::NodeGroup::accept(), BLI_path_normalize(), BLI_strncpy(), ClearRootNode(), DeleteWingedEdge(), Freestyle::NodeGroup::destroy(), FILE_MAX, G, G_DEBUG_FREESTYLE, g_freestyle, Freestyle::WingedEdgeBuilder::getWingedEdge(), hitViewMapCache(), i, Freestyle::BlenderFileLoader::Load(), Freestyle::NodeViewLayer::NodeViewLayer(), Freestyle::NodeGroup::numberOfChildren(), Freestyle::BlenderFileLoader::numFacesRead(), printf, FreestyleGlobals::proj, Render::scene, Freestyle::NodeCamera::setProjectionMatrix(), Freestyle::BlenderFileLoader::setRenderMonitor(), and Freestyle::WingedEdgeBuilder::setRenderMonitor().
Referenced by prepare().
| void Freestyle::Controller::ReloadStyleModule | ( | uint | index, |
| const char * | iFileName ) |
Definition at line 962 of file Controller.cpp.
References _Canvas, Freestyle::Canvas::ReplaceStyleModule(), and Freestyle::StyleModule::StyleModule().
Referenced by Load3DSFile().
| void Freestyle::Controller::RemoveStyleModule | ( | uint | index | ) |
Definition at line 952 of file Controller.cpp.
References _Canvas, and Freestyle::Canvas::RemoveStyleModule().
Referenced by Load3DSFile().
Definition at line 892 of file Controller.cpp.
References _Canvas, Freestyle::BlenderStrokeRenderer::BlenderStrokeRenderer(), G, 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 FRS_do_stroke_rendering(), and Load3DSFile().
| 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, and Freestyle::Canvas::resetModified().
Referenced by ComputeViewMap(), DrawStrokes(), and Load3DSFile().
| void Freestyle::Controller::ResetRenderCount | ( | ) |
Definition at line 887 of file Controller.cpp.
Referenced by FRS_init_stroke_renderer(), and Load3DSFile().
| void Freestyle::Controller::saveSteerableViewMapImages | ( | ) |
Definition at line 721 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 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().
Referenced by Load3DSFile().
| 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(), init_options(), and prepare().
| 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(), 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 132 of file Controller.h.
Referenced by prepare().
|
inline |
Definition at line 140 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().
Referenced by Load3DSFile().
| void Freestyle::Controller::toggleEdgeTesselationNature | ( | Nature::EdgeNature | iNature | ) |
Definition at line 1012 of file Controller.cpp.
References ComputeViewMap().
Referenced by Load3DSFile().
| void Freestyle::Controller::toggleLayer | ( | uint | index, |
| bool | iDisplay ) |
Definition at line 973 of file Controller.cpp.
References _Canvas, and Freestyle::Canvas::setVisible().
Referenced by Load3DSFile(), and 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 Load3DSFile(), and setModified().
| 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(), FRS_do_stroke_rendering(), hitViewMapCache(), LoadMesh(), and ~Controller().