Blender  V3.3
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Freestyle::AppView Class Reference

#include <AppView.h>

Public Member Functions

 AppView (const char *iName=0)
 
virtual ~AppView ()
 
unsigned int width ()
 
unsigned int height ()
 
BBox< Vec2iborder ()
 
float thickness ()
 
void setWidth (unsigned int width)
 
void setHeight (unsigned int 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

unsigned int _width
 
unsigned int _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 26 of file AppView.h.

Constructor & Destructor Documentation

◆ AppView()

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

◆ ~AppView()

Freestyle::AppView::~AppView ( )
virtual

Definition at line 78 of file AppView.cpp.

References _Light, _p2DNode, _RootNode, and Freestyle::NodeGroup::destroy().

Member Function Documentation

◆ Add2DSilhouette()

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

Definition at line 108 of file AppView.h.

Referenced by Freestyle::Controller::ComputeViewMap().

◆ Add2DVisibleSilhouette()

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

Definition at line 113 of file AppView.h.

Referenced by Freestyle::Controller::ComputeViewMap().

◆ AddDebug()

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

Definition at line 128 of file AppView.h.

Referenced by Freestyle::Controller::ComputeViewMap().

◆ AddModel()

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

Adds a model for displaying in the viewer

Definition at line 87 of file AppView.h.

References max, and min.

◆ AddSilhouette()

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

Definition at line 103 of file AppView.h.

Referenced by Freestyle::Controller::ComputeViewMap().

◆ border()

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

Definition at line 41 of file AppView.h.

Referenced by Freestyle::AppCanvas::border().

◆ DetachDebug()

void Freestyle::AppView::DetachDebug ( )
inline

Definition at line 178 of file AppView.h.

Referenced by Freestyle::Controller::DeleteViewMap().

◆ DetachModel() [1/2]

void Freestyle::AppView::DetachModel ( )
inline

Definition at line 149 of file AppView.h.

◆ DetachModel() [2/2]

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

Definition at line 133 of file AppView.h.

References max, and min.

Referenced by Freestyle::Controller::ClearRootNode().

◆ DetachSilhouette()

void Freestyle::AppView::DetachSilhouette ( )
inline

Definition at line 162 of file AppView.h.

Referenced by Freestyle::Controller::DeleteViewMap().

◆ DetachVisibleSilhouette()

void Freestyle::AppView::DetachVisibleSilhouette ( )
inline

Definition at line 172 of file AppView.h.

◆ distanceToSceneCenter()

real Freestyle::AppView::distanceToSceneCenter ( )

◆ Draw2DScene()

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

2D Scene Drawing

◆ DrawScene()

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

Core scene drawing

◆ GetAspect()

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

Definition at line 186 of file AppView.h.

Referenced by Freestyle::Controller::ComputeViewMap().

◆ GetFocalLength()

real Freestyle::AppView::GetFocalLength ( )

Definition at line 154 of file AppView.cpp.

References _maxAbs, distanceToSceneCenter(), and max.

Referenced by Freestyle::Controller::ComputeViewMap().

◆ GetFovyDegrees()

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

Definition at line 201 of file AppView.h.

References M_PI.

◆ GetFovyRadian()

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

Definition at line 196 of file AppView.h.

Referenced by Freestyle::Controller::ComputeViewMap().

◆ height()

unsigned int Freestyle::AppView::height ( void  )
inline

Definition at line 37 of file AppView.h.

Referenced by Freestyle::Controller::ComputeSteerableViewMap().

◆ rabs() [1/2]

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

fabs or abs

Definition at line 223 of file AppView.h.

References blender::math::abs(), and Freestyle::x.

Referenced by AppView().

◆ rabs() [2/2]

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

Definition at line 227 of file AppView.h.

References fabs(), and Freestyle::x.

◆ scene3DBBox()

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

Definition at line 206 of file AppView.h.

Referenced by Freestyle::AppCanvas::scene3DBBox().

◆ setBorder()

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

Definition at line 57 of file AppView.h.

Referenced by init_view().

◆ setDebug()

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

Definition at line 118 of file AppView.h.

Referenced by Freestyle::Controller::LoadMesh().

◆ setHeight()

void Freestyle::AppView::setHeight ( unsigned int  height)
inline

Definition at line 53 of file AppView.h.

References height.

Referenced by init_view().

◆ setHorizontalFov()

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

Definition at line 191 of file AppView.h.

References KDL::atan(), and KDL::tan().

◆ 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 76 of file AppView.h.

Referenced by Freestyle::Controller::LoadMesh().

◆ setThickness()

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

Definition at line 61 of file AppView.h.

Referenced by init_view().

◆ setWidth()

void Freestyle::AppView::setWidth ( unsigned int  width)
inline

Definition at line 49 of file AppView.h.

References width.

Referenced by init_view().

◆ thickness()

float Freestyle::AppView::thickness ( )
inline

Definition at line 45 of file AppView.h.

Referenced by Freestyle::AppCanvas::thickness().

◆ width()

unsigned int Freestyle::AppView::width ( void  )
inline

Definition at line 33 of file AppView.h.

Referenced by Freestyle::Controller::ComputeSteerableViewMap().

◆ zfar()

real Freestyle::AppView::zfar ( )

◆ znear()

real Freestyle::AppView::znear ( )

Member Data Documentation

◆ _border

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

Definition at line 68 of file AppView.h.

◆ _DebugRootNode

NodeDrawingStyle* Freestyle::AppView::_DebugRootNode
protected

Definition at line 239 of file AppView.h.

Referenced by AppView().

◆ _Draw2DScene

bool Freestyle::AppView::_Draw2DScene
protected

Definition at line 249 of file AppView.h.

◆ _Draw3DScene

bool Freestyle::AppView::_Draw3DScene
protected

Definition at line 250 of file AppView.h.

◆ _Fovy

float Freestyle::AppView::_Fovy
protected

Definition at line 233 of file AppView.h.

Referenced by AppView().

◆ _height

unsigned int Freestyle::AppView::_height
protected

Definition at line 67 of file AppView.h.

◆ _Light

NodeGroup Freestyle::AppView::_Light
protected

Definition at line 241 of file AppView.h.

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

◆ _maxAbs

real Freestyle::AppView::_maxAbs
protected

Definition at line 245 of file AppView.h.

Referenced by AppView(), and GetFocalLength().

◆ _maxBBox

real Freestyle::AppView::_maxBBox
protected

Definition at line 244 of file AppView.h.

Referenced by AppView().

◆ _minAbs

real Freestyle::AppView::_minAbs
protected

Definition at line 246 of file AppView.h.

Referenced by AppView().

◆ _minBBox

real Freestyle::AppView::_minBBox
protected

Definition at line 243 of file AppView.h.

Referenced by AppView().

◆ _ModelRootNode

NodeDrawingStyle* Freestyle::AppView::_ModelRootNode
protected

Definition at line 237 of file AppView.h.

Referenced by AppView(), distanceToSceneCenter(), zfar(), and znear().

◆ _p2DNode

NodeGroup Freestyle::AppView::_p2DNode
protected

Definition at line 251 of file AppView.h.

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

◆ _p2DSelectionNode

NodeDrawingStyle* Freestyle::AppView::_p2DSelectionNode
protected

Definition at line 252 of file AppView.h.

Referenced by AppView().

◆ _RootNode

NodeGroup Freestyle::AppView::_RootNode
protected

Definition at line 236 of file AppView.h.

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

◆ _SilhouetteRootNode

NodeDrawingStyle* Freestyle::AppView::_SilhouetteRootNode
protected

Definition at line 238 of file AppView.h.

Referenced by AppView().

◆ _thickness

float Freestyle::AppView::_thickness
protected

Definition at line 69 of file AppView.h.

◆ _width

unsigned int Freestyle::AppView::_width
protected

Definition at line 67 of file AppView.h.


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