Blender V4.3
Freestyle::AppView Class Reference

#include <AppView.h>

Public Member Functions

 AppView (const char *iName=0)
virtual ~AppView ()
uint width ()
uint height ()
BBox< Vec2iborder ()
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< Vec3rscene3DBBox () const
real znear ()
real zfar ()
void DrawScene (SceneVisitor *iRenderer)
void Draw2DScene (SceneVisitor *iRenderer)

Protected Member Functions

int rabs (int x)
real rabs (real x)

Protected Attributes

uint _width
uint _height
BBox< Vec2i_border
float _thickness
float _Fovy
NodeGroup _RootNode
NodeDrawingStyle_ModelRootNode
NodeDrawingStyle_SilhouetteRootNode
NodeDrawingStyle_DebugRootNode
NodeGroup _Light
real _minBBox
real _maxBBox
real _maxAbs
real _minAbs
bool _Draw2DScene
bool _Draw3DScene
NodeGroup _p2DNode
NodeDrawingStyle_p2DSelectionNode

Detailed Description

Definition at line 28 of file AppView.h.

Constructor & Destructor Documentation

◆ AppView()

Freestyle::AppView::AppView ( const char * iName = 0)

◆ ~AppView()

Freestyle::AppView::~AppView ( )
virtual

Definition at line 81 of file AppView.cpp.

References _Light, _p2DNode, and _RootNode.

Member Function Documentation

◆ Add2DSilhouette()

void Freestyle::AppView::Add2DSilhouette ( NodeGroup * )
inline

Definition at line 110 of file AppView.h.

◆ Add2DVisibleSilhouette()

void Freestyle::AppView::Add2DVisibleSilhouette ( NodeGroup * )
inline

Definition at line 115 of file AppView.h.

◆ AddDebug()

void Freestyle::AppView::AddDebug ( NodeGroup * iDebug)
inline

Definition at line 130 of file AppView.h.

References _DebugRootNode.

Referenced by setDebug().

◆ AddModel()

void Freestyle::AppView::AddModel ( NodeGroup * iModel)
inline

Adds a model for displaying in the viewer

Definition at line 89 of file AppView.h.

References _maxAbs, _maxBBox, _minAbs, _minBBox, _ModelRootNode, and rabs().

Referenced by setModel().

◆ AddSilhouette()

void Freestyle::AppView::AddSilhouette ( NodeGroup * iSilhouette)
inline

Definition at line 105 of file AppView.h.

References _SilhouetteRootNode.

◆ border()

BBox< Vec2i > Freestyle::AppView::border ( )
inline

Definition at line 43 of file AppView.h.

References _border.

◆ DetachDebug()

void Freestyle::AppView::DetachDebug ( )
inline

Definition at line 180 of file AppView.h.

References _DebugRootNode.

◆ DetachModel() [1/2]

void Freestyle::AppView::DetachModel ( )
inline

Definition at line 151 of file AppView.h.

References _ModelRootNode, and _p2DNode.

◆ DetachModel() [2/2]

void Freestyle::AppView::DetachModel ( Node * iModel)
inline

Definition at line 135 of file AppView.h.

References _maxAbs, _maxBBox, _minAbs, _minBBox, _ModelRootNode, and rabs().

◆ DetachSilhouette()

void Freestyle::AppView::DetachSilhouette ( )
inline

Definition at line 164 of file AppView.h.

References _p2DSelectionNode, and _SilhouetteRootNode.

◆ DetachVisibleSilhouette()

void Freestyle::AppView::DetachVisibleSilhouette ( )
inline

Definition at line 174 of file AppView.h.

References _p2DSelectionNode.

◆ distanceToSceneCenter()

real Freestyle::AppView::distanceToSceneCenter ( )

◆ Draw2DScene()

void Freestyle::AppView::Draw2DScene ( SceneVisitor * iRenderer)

◆ DrawScene()

void Freestyle::AppView::DrawScene ( SceneVisitor * iRenderer)

Core scene drawing

◆ GetAspect()

real Freestyle::AppView::GetAspect ( ) const
inline

Definition at line 188 of file AppView.h.

References _height, and _width.

Referenced by setHorizontalFov().

◆ GetFocalLength()

real Freestyle::AppView::GetFocalLength ( )

Definition at line 157 of file AppView.cpp.

References _maxAbs, and distanceToSceneCenter().

◆ GetFovyDegrees()

real Freestyle::AppView::GetFovyDegrees ( ) const
inline

Definition at line 203 of file AppView.h.

References _Fovy, and M_PI.

◆ GetFovyRadian()

real Freestyle::AppView::GetFovyRadian ( ) const
inline

Definition at line 198 of file AppView.h.

References _Fovy.

◆ height()

uint Freestyle::AppView::height ( )
inline

Definition at line 39 of file AppView.h.

References _height.

Referenced by setHeight().

◆ rabs() [1/2]

int Freestyle::AppView::rabs ( int x)
inlineprotected

fabs or abs

Definition at line 225 of file AppView.h.

References abs(), and Freestyle::x.

Referenced by AddModel(), AppView(), and DetachModel().

◆ rabs() [2/2]

real Freestyle::AppView::rabs ( real x)
inlineprotected

Definition at line 229 of file AppView.h.

References fabs(), and Freestyle::x.

◆ scene3DBBox()

BBox< Vec3r > Freestyle::AppView::scene3DBBox ( ) const
inline

Definition at line 208 of file AppView.h.

References _ModelRootNode.

◆ setBorder()

void Freestyle::AppView::setBorder ( int xmin,
int ymin,
int xmax,
int ymax )
inline

Definition at line 59 of file AppView.h.

References _border.

◆ setDebug()

void Freestyle::AppView::setDebug ( NodeGroup * iDebug)
inline

Definition at line 120 of file AppView.h.

References _DebugRootNode, and AddDebug().

◆ setHeight()

void Freestyle::AppView::setHeight ( uint height)
inline

Definition at line 55 of file AppView.h.

References _height, and height().

◆ setHorizontalFov()

void Freestyle::AppView::setHorizontalFov ( float hfov)
inline

Definition at line 193 of file AppView.h.

References _Fovy, and GetAspect().

◆ setModel()

void Freestyle::AppView::setModel ( NodeGroup * iModel)
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, and AddModel().

◆ setThickness()

void Freestyle::AppView::setThickness ( float thickness)
inline

Definition at line 63 of file AppView.h.

References _thickness, and thickness().

◆ setWidth()

void Freestyle::AppView::setWidth ( uint width)
inline

Definition at line 51 of file AppView.h.

References _width, and width().

◆ thickness()

float Freestyle::AppView::thickness ( )
inline

Definition at line 47 of file AppView.h.

References _thickness.

Referenced by setThickness().

◆ width()

uint Freestyle::AppView::width ( )
inline

Definition at line 35 of file AppView.h.

References _width.

Referenced by setWidth().

◆ zfar()

real Freestyle::AppView::zfar ( )

◆ znear()

real Freestyle::AppView::znear ( )

Member Data Documentation

◆ _border

BBox<Vec2i> Freestyle::AppView::_border
protected

Definition at line 70 of file AppView.h.

Referenced by border(), and setBorder().

◆ _DebugRootNode

NodeDrawingStyle* Freestyle::AppView::_DebugRootNode
protected

Definition at line 241 of file AppView.h.

Referenced by AddDebug(), AppView(), DetachDebug(), and setDebug().

◆ _Draw2DScene

bool Freestyle::AppView::_Draw2DScene
protected

Definition at line 251 of file AppView.h.

◆ _Draw3DScene

bool Freestyle::AppView::_Draw3DScene
protected

Definition at line 252 of file AppView.h.

◆ _Fovy

float Freestyle::AppView::_Fovy
protected

Definition at line 235 of file AppView.h.

Referenced by AppView(), GetFovyDegrees(), GetFovyRadian(), and setHorizontalFov().

◆ _height

uint Freestyle::AppView::_height
protected

Definition at line 69 of file AppView.h.

Referenced by GetAspect(), height(), and setHeight().

◆ _Light

NodeGroup Freestyle::AppView::_Light
protected

Definition at line 243 of file AppView.h.

Referenced by AppView(), and ~AppView().

◆ _maxAbs

real Freestyle::AppView::_maxAbs
protected

Definition at line 247 of file AppView.h.

Referenced by AddModel(), AppView(), DetachModel(), and GetFocalLength().

◆ _maxBBox

real Freestyle::AppView::_maxBBox
protected

Definition at line 246 of file AppView.h.

Referenced by AddModel(), AppView(), and DetachModel().

◆ _minAbs

real Freestyle::AppView::_minAbs
protected

Definition at line 248 of file AppView.h.

Referenced by AddModel(), AppView(), and DetachModel().

◆ _minBBox

real Freestyle::AppView::_minBBox
protected

Definition at line 245 of file AppView.h.

Referenced by AddModel(), AppView(), and DetachModel().

◆ _ModelRootNode

NodeDrawingStyle* Freestyle::AppView::_ModelRootNode
protected

◆ _p2DNode

NodeGroup Freestyle::AppView::_p2DNode
protected

Definition at line 253 of file AppView.h.

Referenced by AppView(), DetachModel(), and ~AppView().

◆ _p2DSelectionNode

NodeDrawingStyle* Freestyle::AppView::_p2DSelectionNode
protected

Definition at line 254 of file AppView.h.

Referenced by AppView(), DetachSilhouette(), and DetachVisibleSilhouette().

◆ _RootNode

NodeGroup Freestyle::AppView::_RootNode
protected

Definition at line 238 of file AppView.h.

Referenced by AppView(), and ~AppView().

◆ _SilhouetteRootNode

NodeDrawingStyle* Freestyle::AppView::_SilhouetteRootNode
protected

Definition at line 240 of file AppView.h.

Referenced by AddSilhouette(), AppView(), and DetachSilhouette().

◆ _thickness

float Freestyle::AppView::_thickness
protected

Definition at line 71 of file AppView.h.

Referenced by setThickness(), and thickness().

◆ _width

uint Freestyle::AppView::_width
protected

Definition at line 69 of file AppView.h.

Referenced by GetAspect(), setWidth(), and width().


The documentation for this class was generated from the following files: