Blender V4.3
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 30 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 60 of file SilhouetteGeomEngine.h.

◆ 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 139 of file SilhouetteGeomEngine.cpp.

References beta(), fabs(), Freestyle::GeomUtils::fromCameraToRetina(), Freestyle::GeomUtils::fromImageToRetina(), Freestyle::GeomUtils::fromRetinaToImage(), Freestyle::GeomUtils::fromWorldToCamera(), G, G_DEBUG_FREESTYLE, sqrt(), 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.

Referenced by Freestyle::ViewEdgeXBuilder::MakeSVertex().

◆ 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 109 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 68 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 69 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 282 of file SilhouetteGeomEngine.cpp.

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


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