|
Blender
V2.93
|
#include <OccluderSource.h>
Inherited by Freestyle::CulledOccluderSource.
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 34 of file OccluderSource.h.
| Freestyle::OccluderSource::OccluderSource | ( | const GridHelpers::Transform & | transform, |
| WingedEdge & | we | ||
| ) |
Definition at line 30 of file OccluderSource.cpp.
References begin().
|
virtualdefault |
|
virtual |
Definition at line 128 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 50 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 38 of file OccluderSource.cpp.
References cachedPolygon, Freestyle::GridHelpers::enumerateVertices(), and transform.
| Polygon3r Freestyle::OccluderSource::getCameraSpacePolygon | ( | ) |
Definition at line 101 of file OccluderSource.cpp.
References Freestyle::GridHelpers::enumerateVertices().
| Polygon3r & Freestyle::OccluderSource::getGridSpacePolygon | ( | ) |
Definition at line 107 of file OccluderSource.cpp.
References cachedPolygon.
Referenced by Freestyle::GridDensityProvider::calculateOptimalProscenium(), Freestyle::BoxGrid::insertOccluder(), and Freestyle::SphericalGrid::insertOccluder().
|
virtual |
Reimplemented in Freestyle::CulledOccluderSource.
Definition at line 112 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 96 of file OccluderSource.cpp.
References currentFace, and valid.
| bool Freestyle::OccluderSource::isValid | ( | ) |
Definition at line 89 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 68 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 61 of file OccluderSource.h.
Referenced by averageOccluderArea(), buildCachedPolygon(), getGridSpacePolygon(), and getOccluderProscenium().
Definition at line 57 of file OccluderSource.h.
Referenced by begin(), getWFace(), and next().
Definition at line 56 of file OccluderSource.h.
Definition at line 57 of file OccluderSource.h.
Definition at line 56 of file OccluderSource.h.
|
protected |
Definition at line 62 of file OccluderSource.h.
Referenced by buildCachedPolygon().
|
protected |
Definition at line 59 of file OccluderSource.h.
Referenced by begin(), Freestyle::CulledOccluderSource::CulledOccluderSource(), getWFace(), isValid(), and next().
|
protected |
Definition at line 55 of file OccluderSource.h.
Referenced by begin().