Blender  V3.3
Static Public Member Functions | List of all members
Freestyle::SilhouetteGeomEngine Class Reference

#include <SilhouetteGeomEngine.h>

Static Public Member Functions

static SilhouetteGeomEnginegetInstance ()
 
static void setViewpoint (const Vec3r &ivp)
 
static void setTransform (const real iModelViewMatrix[4][4], const real iProjectionMatrix[4][4], const int iViewport[4], real iFocal)
 
static void setFrustum (real iZNear, real iZFar)
 
static void retrieveViewport (int viewport[4])
 
static void ProjectSilhouette (std::vector< SVertex * > &ioVertices)
 
static void ProjectSilhouette (SVertex *ioVertex)
 
static real ImageToWorldParameter (FEdge *fe, real t)
 
static Vec3r WorldToImage (const Vec3r &M)
 
static Vec3r CameraToImage (const Vec3r &M)
 

Detailed Description

Definition at line 28 of file SilhouetteGeomEngine.h.

Member Function Documentation

◆ CameraToImage()

Vec3r Freestyle::SilhouetteGeomEngine::CameraToImage ( const Vec3r M)
static

◆ getInstance()

static SilhouetteGeomEngine* Freestyle::SilhouetteGeomEngine::getInstance ( )
inlinestatic

retrieves an instance on the singleton

Definition at line 58 of file SilhouetteGeomEngine.h.

References NULL.

◆ ImageToWorldParameter()

real Freestyle::SilhouetteGeomEngine::ImageToWorldParameter ( FEdge fe,
real  t 
)
static

transforms the parameter t defining a 2D intersection for edge fe in order to obtain the parameter giving the corresponding 3D intersection. Returns the 3D parameter fe The edge t The parameter for the 2D intersection.

Definition at line 135 of file SilhouetteGeomEngine.cpp.

References beta(), fabs(), Freestyle::GeomUtils::fromCameraToRetina(), Freestyle::GeomUtils::fromImageToRetina(), Freestyle::GeomUtils::fromRetinaToImage(), Freestyle::GeomUtils::fromWorldToCamera(), G, G_DEBUG_FREESTYLE, sqrt(), T, and t.

Referenced by Freestyle::ViewMapBuilder::ComputeSweepLineIntersections(), and Freestyle::CurvePoint::normal().

◆ ProjectSilhouette() [1/2]

static void Freestyle::SilhouetteGeomEngine::ProjectSilhouette ( std::vector< SVertex * > &  ioVertices)
static

Projects the silhouette in camera coordinates This method modifies the ioEdges passed as argument. ioVertices The vertices to project. It is modified during the operation.

◆ ProjectSilhouette() [2/2]

void Freestyle::SilhouetteGeomEngine::ProjectSilhouette ( SVertex ioVertex)
static

◆ retrieveViewport()

void Freestyle::SilhouetteGeomEngine::retrieveViewport ( int  viewport[4])
static

◆ setFrustum()

void Freestyle::SilhouetteGeomEngine::setFrustum ( real  iZNear,
real  iZFar 
)
static

Sets the current znear and zfar

Definition at line 105 of file SilhouetteGeomEngine.cpp.

Referenced by Freestyle::ViewMapBuilder::setFrustum().

◆ setTransform()

void Freestyle::SilhouetteGeomEngine::setTransform ( const real  iModelViewMatrix[4][4],
const real  iProjectionMatrix[4][4],
const int  iViewport[4],
real  iFocal 
)
static

Sets the current transformation iModelViewMatrix The 4x4 model view matrix, in column major order (openGL like). iProjection matrix The 4x4 projection matrix, in column major order (openGL like). iViewport The viewport. 4 real array: origin.x, origin.y, width, length iFocal The focal length

Definition at line 64 of file SilhouetteGeomEngine.cpp.

Referenced by Freestyle::ViewMapBuilder::setTransform().

◆ setViewpoint()

static void Freestyle::SilhouetteGeomEngine::setViewpoint ( const Vec3r ivp)
inlinestatic

Sets the current viewpoint

Definition at line 67 of file SilhouetteGeomEngine.h.

Referenced by Freestyle::ViewMapBuilder::setViewpoint().

◆ WorldToImage()

Vec3r Freestyle::SilhouetteGeomEngine::WorldToImage ( const Vec3r M)
static

From world to image

Definition at line 278 of file SilhouetteGeomEngine.cpp.

References Freestyle::GeomUtils::fromWorldToImage(), and M.


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