|
Blender V4.3
|
#include <AppView.h>
Public Member Functions | |
| AppView (const char *iName=0) | |
| virtual | ~AppView () |
| uint | width () |
| uint | height () |
| BBox< Vec2i > | border () |
| float | thickness () |
| void | setWidth (uint width) |
| void | setHeight (uint height) |
| void | setBorder (int xmin, int ymin, int xmax, int ymax) |
| void | setThickness (float thickness) |
| void | setModel (NodeGroup *iModel) |
| void | AddModel (NodeGroup *iModel) |
| void | AddSilhouette (NodeGroup *iSilhouette) |
| void | Add2DSilhouette (NodeGroup *) |
| void | Add2DVisibleSilhouette (NodeGroup *) |
| void | setDebug (NodeGroup *iDebug) |
| void | AddDebug (NodeGroup *iDebug) |
| void | DetachModel (Node *iModel) |
| void | DetachModel () |
| void | DetachSilhouette () |
| void | DetachVisibleSilhouette () |
| void | DetachDebug () |
| real | distanceToSceneCenter () |
| real | GetFocalLength () |
| real | GetAspect () const |
| void | setHorizontalFov (float hfov) |
| real | GetFovyRadian () const |
| real | GetFovyDegrees () const |
| BBox< Vec3r > | scene3DBBox () const |
| real | znear () |
| real | zfar () |
| void | DrawScene (SceneVisitor *iRenderer) |
| void | Draw2DScene (SceneVisitor *iRenderer) |
Protected Member Functions | |
| int | rabs (int x) |
| real | rabs (real x) |
| Freestyle::AppView::AppView | ( | const char * | iName = 0 | ) |
Definition at line 39 of file AppView.cpp.
References _DebugRootNode, _Fovy, _Light, _maxAbs, _maxBBox, _minAbs, _minBBox, _ModelRootNode, _p2DNode, _p2DSelectionNode, _RootNode, _SilhouetteRootNode, Freestyle::NodeGroup::AddChild(), Freestyle::Node::bbox(), DEG2RADF, Freestyle::DrawingStyle::LINES, rabs(), Freestyle::NodeDrawingStyle::setLightingEnabled(), Freestyle::NodeDrawingStyle::setLineWidth(), Freestyle::NodeDrawingStyle::setPointSize(), and Freestyle::NodeDrawingStyle::setStyle().
|
virtual |
Definition at line 81 of file AppView.cpp.
References _Light, _p2DNode, _RootNode, and Freestyle::NodeGroup::destroy().
|
inline |
Definition at line 110 of file AppView.h.
Referenced by Freestyle::Controller::ComputeViewMap().
|
inline |
Definition at line 115 of file AppView.h.
Referenced by Freestyle::Controller::ComputeViewMap().
|
inline |
Definition at line 130 of file AppView.h.
References _DebugRootNode, and Freestyle::NodeGroup::AddChild().
Referenced by Freestyle::Controller::ComputeViewMap(), and setDebug().
|
inline |
Adds a model for displaying in the viewer
Definition at line 89 of file AppView.h.
References _maxAbs, _maxBBox, _minAbs, _minBBox, _ModelRootNode, Freestyle::NodeGroup::AddChild(), Freestyle::Node::bbox(), rabs(), and Freestyle::NodeGroup::UpdateBBox().
Referenced by setModel().
|
inline |
Definition at line 105 of file AppView.h.
References _SilhouetteRootNode, and Freestyle::NodeGroup::AddChild().
Referenced by Freestyle::Controller::ComputeViewMap().
Definition at line 43 of file AppView.h.
References _border.
Referenced by Freestyle::AppCanvas::border().
|
inline |
Definition at line 180 of file AppView.h.
References _DebugRootNode, and Freestyle::NodeGroup::DetachChildren().
Referenced by Freestyle::Controller::DeleteViewMap().
|
inline |
Definition at line 151 of file AppView.h.
References _ModelRootNode, _p2DNode, Freestyle::Node::clearBBox(), and Freestyle::NodeGroup::DetachChildren().
|
inline |
Definition at line 135 of file AppView.h.
References _maxAbs, _maxBBox, _minAbs, _minBBox, _ModelRootNode, Freestyle::Node::bbox(), Freestyle::NodeGroup::DetachChild(), rabs(), and Freestyle::NodeGroup::UpdateBBox().
Referenced by Freestyle::Controller::ClearRootNode().
|
inline |
Definition at line 164 of file AppView.h.
References _p2DSelectionNode, _SilhouetteRootNode, Freestyle::NodeGroup::destroy(), and Freestyle::NodeGroup::DetachChildren().
Referenced by Freestyle::Controller::DeleteViewMap().
|
inline |
Definition at line 174 of file AppView.h.
References _p2DSelectionNode, and Freestyle::NodeGroup::destroy().
| real Freestyle::AppView::distanceToSceneCenter | ( | ) |
Definition at line 89 of file AppView.cpp.
References _ModelRootNode, Freestyle::Node::bbox(), g_freestyle, Freestyle::BBox< Point >::getMax(), Freestyle::BBox< Point >::getMin(), UNPACK3, v, and FreestyleGlobals::viewpoint.
Referenced by GetFocalLength().
| void Freestyle::AppView::Draw2DScene | ( | SceneVisitor * | iRenderer | ) |
2D Scene Drawing
| void Freestyle::AppView::DrawScene | ( | SceneVisitor * | iRenderer | ) |
Core scene drawing
|
inline |
Definition at line 188 of file AppView.h.
References _height, and _width.
Referenced by Freestyle::Controller::ComputeViewMap(), and setHorizontalFov().
| real Freestyle::AppView::GetFocalLength | ( | ) |
Definition at line 157 of file AppView.cpp.
References _maxAbs, and distanceToSceneCenter().
Referenced by Freestyle::Controller::ComputeViewMap().
|
inline |
|
inline |
Definition at line 198 of file AppView.h.
References _Fovy.
Referenced by Freestyle::Controller::ComputeViewMap().
|
inline |
Definition at line 39 of file AppView.h.
References _height.
Referenced by Freestyle::Controller::ComputeSteerableViewMap(), and setHeight().
fabs or abs
Definition at line 225 of file AppView.h.
References abs().
Referenced by AddModel(), AppView(), and DetachModel().
Definition at line 208 of file AppView.h.
References _ModelRootNode, and Freestyle::Node::bbox().
Referenced by Freestyle::AppCanvas::scene3DBBox().
|
inline |
Definition at line 120 of file AppView.h.
References _DebugRootNode, AddDebug(), Freestyle::Node::clearBBox(), Freestyle::NodeGroup::DetachChildren(), and Freestyle::NodeGroup::numberOfChildren().
Referenced by Freestyle::Controller::LoadMesh().
|
inline |
|
inline |
Definition at line 193 of file AppView.h.
References _Fovy, and GetAspect().
|
inline |
Sets the model to draw in the viewer iModel The Root Node of the model
Definition at line 78 of file AppView.h.
References _ModelRootNode, AddModel(), Freestyle::Node::clearBBox(), Freestyle::NodeGroup::DetachChildren(), and Freestyle::NodeGroup::numberOfChildren().
Referenced by Freestyle::Controller::LoadMesh().
|
inline |
Definition at line 63 of file AppView.h.
References _thickness, and thickness().
|
inline |
|
inline |
Definition at line 47 of file AppView.h.
References _thickness.
Referenced by setThickness(), and Freestyle::AppCanvas::thickness().
|
inline |
Definition at line 35 of file AppView.h.
References _width.
Referenced by Freestyle::Controller::ComputeSteerableViewMap(), and setWidth().
| real Freestyle::AppView::zfar | ( | ) |
Definition at line 128 of file AppView.cpp.
References _ModelRootNode, Freestyle::Node::bbox(), g_freestyle, Freestyle::BBox< Point >::getMax(), Freestyle::BBox< Point >::getMin(), norm(), UNPACK3, v, and FreestyleGlobals::viewpoint.
Referenced by Freestyle::Controller::ComputeViewMap().
| real Freestyle::AppView::znear | ( | ) |
Definition at line 99 of file AppView.cpp.
References _ModelRootNode, Freestyle::Node::bbox(), g_freestyle, Freestyle::BBox< Point >::getMax(), Freestyle::BBox< Point >::getMin(), norm(), UNPACK3, v, and FreestyleGlobals::viewpoint.
Referenced by Freestyle::Controller::ComputeViewMap().
Definition at line 70 of file AppView.h.
Referenced by border(), and setBorder().
|
protected |
Definition at line 241 of file AppView.h.
Referenced by AddDebug(), AppView(), DetachDebug(), and setDebug().
|
protected |
Definition at line 235 of file AppView.h.
Referenced by AppView(), GetFovyDegrees(), GetFovyRadian(), and setHorizontalFov().
|
protected |
Definition at line 69 of file AppView.h.
Referenced by GetAspect(), height(), and setHeight().
|
protected |
Definition at line 243 of file AppView.h.
Referenced by AppView(), and ~AppView().
|
protected |
Definition at line 247 of file AppView.h.
Referenced by AddModel(), AppView(), DetachModel(), and GetFocalLength().
|
protected |
Definition at line 246 of file AppView.h.
Referenced by AddModel(), AppView(), and DetachModel().
|
protected |
Definition at line 248 of file AppView.h.
Referenced by AddModel(), AppView(), and DetachModel().
|
protected |
Definition at line 245 of file AppView.h.
Referenced by AddModel(), AppView(), and DetachModel().
|
protected |
Definition at line 239 of file AppView.h.
Referenced by AddModel(), AppView(), DetachModel(), DetachModel(), distanceToSceneCenter(), scene3DBBox(), setModel(), zfar(), and znear().
|
protected |
Definition at line 253 of file AppView.h.
Referenced by AppView(), DetachModel(), and ~AppView().
|
protected |
Definition at line 254 of file AppView.h.
Referenced by AppView(), DetachSilhouette(), and DetachVisibleSilhouette().
|
protected |
Definition at line 238 of file AppView.h.
Referenced by AppView(), and ~AppView().
|
protected |
Definition at line 240 of file AppView.h.
Referenced by AddSilhouette(), AppView(), and DetachSilhouette().
|
protected |
Definition at line 71 of file AppView.h.
Referenced by setThickness(), and thickness().
|
protected |
Definition at line 69 of file AppView.h.
Referenced by GetAspect(), setWidth(), and width().