Blender
V3.3
|
#include <OccluderSource.h>
Public Member Functions | |
OccluderSource (const GridHelpers::Transform &transform, WingedEdge &we) | |
virtual | ~OccluderSource () |
void | begin () |
virtual bool | next () |
bool | isValid () |
WFace * | getWFace () |
Polygon3r | getCameraSpacePolygon () |
Polygon3r & | getGridSpacePolygon () |
virtual void | getOccluderProscenium (real proscenium[4]) |
virtual real | averageOccluderArea () |
Protected Member Functions | |
void | buildCachedPolygon () |
Protected Attributes | |
WingedEdge & | wingedEdge |
vector< WShape * >::const_iterator | currentShape |
vector< WShape * >::const_iterator | shapesEnd |
vector< WFace * >::const_iterator | currentFace |
vector< WFace * >::const_iterator | facesEnd |
bool | valid |
Polygon3r | cachedPolygon |
const GridHelpers::Transform & | transform |
Definition at line 20 of file OccluderSource.h.
Freestyle::OccluderSource::OccluderSource | ( | const GridHelpers::Transform & | transform, |
WingedEdge & | we | ||
) |
Definition at line 16 of file OccluderSource.cpp.
References begin().
|
virtualdefault |
|
virtual |
Definition at line 114 of file OccluderSource.cpp.
References blender::compositor::area(), begin(), cachedPolygon, Freestyle::Geometry::Polygon< Point >::getBBox(), isValid(), max, min, and next().
void Freestyle::OccluderSource::begin | ( | ) |
Definition at line 36 of file OccluderSource.cpp.
References buildCachedPolygon(), currentFace, currentShape, facesEnd, Freestyle::WingedEdge::getWShapes(), shapesEnd, valid, and wingedEdge.
Referenced by averageOccluderArea(), Freestyle::GridDensityProvider::calculateOptimalProscenium(), Freestyle::BoxGrid::distributePolygons(), Freestyle::SphericalGrid::distributePolygons(), getOccluderProscenium(), and OccluderSource().
|
protected |
Definition at line 24 of file OccluderSource.cpp.
References cachedPolygon, Freestyle::GridHelpers::enumerateVertices(), and transform.
Polygon3r Freestyle::OccluderSource::getCameraSpacePolygon | ( | ) |
Definition at line 87 of file OccluderSource.cpp.
References Freestyle::GridHelpers::enumerateVertices().
Polygon3r & Freestyle::OccluderSource::getGridSpacePolygon | ( | ) |
Definition at line 93 of file OccluderSource.cpp.
References cachedPolygon.
Referenced by Freestyle::GridDensityProvider::calculateOptimalProscenium(), Freestyle::BoxGrid::insertOccluder(), and Freestyle::SphericalGrid::insertOccluder().
Reimplemented in Freestyle::CulledOccluderSource.
Definition at line 98 of file OccluderSource.cpp.
References begin(), cachedPolygon, Freestyle::GridHelpers::expandProscenium(), G, G_DEBUG_FREESTYLE, Freestyle::Geometry::Polygon< Point >::getVertices(), isValid(), and next().
WFace * Freestyle::OccluderSource::getWFace | ( | ) |
Definition at line 82 of file OccluderSource.cpp.
References currentFace, and valid.
bool Freestyle::OccluderSource::isValid | ( | ) |
Definition at line 75 of file OccluderSource.cpp.
References valid.
Referenced by averageOccluderArea(), Freestyle::GridDensityProvider::calculateOptimalProscenium(), Freestyle::BoxGrid::distributePolygons(), Freestyle::SphericalGrid::distributePolygons(), and getOccluderProscenium().
|
virtual |
Reimplemented in Freestyle::CulledOccluderSource.
Definition at line 54 of file OccluderSource.cpp.
References buildCachedPolygon(), currentFace, currentShape, facesEnd, shapesEnd, and valid.
Referenced by averageOccluderArea(), Freestyle::GridDensityProvider::calculateOptimalProscenium(), Freestyle::BoxGrid::distributePolygons(), Freestyle::SphericalGrid::distributePolygons(), getOccluderProscenium(), and Freestyle::CulledOccluderSource::next().
|
protected |
Definition at line 47 of file OccluderSource.h.
Referenced by averageOccluderArea(), buildCachedPolygon(), getGridSpacePolygon(), and getOccluderProscenium().
Definition at line 43 of file OccluderSource.h.
Referenced by begin(), getWFace(), and next().
Definition at line 42 of file OccluderSource.h.
Definition at line 43 of file OccluderSource.h.
Definition at line 42 of file OccluderSource.h.
|
protected |
Definition at line 48 of file OccluderSource.h.
Referenced by buildCachedPolygon().
|
protected |
Definition at line 45 of file OccluderSource.h.
Referenced by begin(), Freestyle::CulledOccluderSource::CulledOccluderSource(), getWFace(), isValid(), and next().
|
protected |
Definition at line 41 of file OccluderSource.h.
Referenced by begin().