Blender
V3.3
|
#include <ViewMap.h>
Public Types | |
typedef SVertex | vertex_type |
typedef ViewEdgeInternal::edge_iterator_base< Nonconst_traits< ViewEdge * > > | edge_iterator |
typedef ViewEdgeInternal::edge_iterator_base< Const_traits< ViewEdge * > > | const_edge_iterator |
typedef ViewEdgeInternal::fedge_iterator_base< Nonconst_traits< FEdge * > > | fedge_iterator |
typedef ViewEdgeInternal::fedge_iterator_base< Const_traits< FEdge * > > | const_fedge_iterator |
typedef ViewEdgeInternal::vertex_iterator_base< Nonconst_traits< SVertex * > > | vertex_iterator |
typedef ViewEdgeInternal::vertex_iterator_base< Const_traits< SVertex * > > | const_vertex_iterator |
Public Attributes | |
void * | userdata |
Friends | |
class | ViewShape |
Additional Inherited Members | |
![]() | |
unsigned | _timeStamp |
Class defining a ViewEdge. A ViewEdge in an edge of the image graph. it connects two ViewVertex. It is made by connecting a set of FEdges.
|
inline |
Default constructor.
Definition at line 959 of file ViewMap.h.
References NULL, and userdata.
Referenced by duplicate().
|
inline |
|
inline |
|
inline |
Definition at line 1003 of file ViewMap.h.
References NULL, UpdateFEdges(), and userdata.
|
inline |
|
inlinevirtual |
|
inline |
Returns the first ViewVertex.
Definition at line 1067 of file ViewMap.h.
Referenced by Freestyle::ChainingIterator::getVertex(), Freestyle::ChainingIterator::increment(), Freestyle::ViewMap::InsertViewVertex(), and Freestyle::ViewShape::SplitEdge().
|
inline |
Returns the shape that is occluded by the ViewShape to which this ViewEdge belongs to. If no object is occluded, NULL is returned.
Definition at line 1099 of file ViewMap.h.
Referenced by Freestyle::Functions0D::getOccludeeF0D(), Freestyle::Functions1D::getOccludeeF1D(), Freestyle::FEdge::occluded_shape(), and Freestyle::Functions1D::GetOccludeeF1D::operator()().
|
inline |
|
inline |
Returns the second ViewVertex.
Definition at line 1073 of file ViewMap.h.
Referenced by Freestyle::ChainingIterator::decrement(), Freestyle::ChainingIterator::getVertex(), Freestyle::ViewMap::InsertViewVertex(), and Freestyle::ViewShape::SplitEdge().
|
inline |
|
inlinevirtual |
Cloning method.
Definition at line 1041 of file ViewMap.h.
References ViewEdge().
Referenced by Freestyle::ViewShape::ViewShape().
ViewEdge::fedge_iterator Freestyle::ViewEdge::fedge_iterator_begin | ( | ) |
ViewEdge::const_fedge_iterator Freestyle::ViewEdge::fedge_iterator_begin | ( | ) | const |
Definition at line 681 of file ViewMap.cpp.
ViewEdge::fedge_iterator Freestyle::ViewEdge::fedge_iterator_end | ( | ) |
Definition at line 696 of file ViewMap.cpp.
Referenced by getLength2D().
ViewEdge::const_fedge_iterator Freestyle::ViewEdge::fedge_iterator_end | ( | ) | const |
Definition at line 701 of file ViewMap.cpp.
ViewEdge::fedge_iterator Freestyle::ViewEdge::fedge_iterator_last | ( | ) |
Definition at line 686 of file ViewMap.cpp.
Referenced by getLength2D().
ViewEdge::const_fedge_iterator Freestyle::ViewEdge::fedge_iterator_last | ( | ) | const |
Definition at line 691 of file ViewMap.cpp.
|
inline |
Returns the first FEdge that constitutes this ViewEdge.
Definition at line 1079 of file ViewMap.h.
Referenced by Freestyle::ViewMap::InsertViewVertex(), Freestyle::Chain::push_viewedge_back(), Freestyle::Chain::push_viewedge_front(), Freestyle::ViewShape::RemoveEdge(), and Freestyle::ViewShape::SplitEdge().
|
inline |
Returns the last FEdge that constitutes this ViewEdge.
Definition at line 1085 of file ViewMap.h.
Referenced by Freestyle::ViewMap::InsertViewVertex(), Freestyle::Chain::push_viewedge_back(), Freestyle::Chain::push_viewedge_front(), and Freestyle::ViewShape::SplitEdge().
|
inline |
Returns the time stamp of this ViewEdge.
Definition at line 1114 of file ViewMap.h.
Referenced by Freestyle::Functions1D::IncrementChainingTimeStampF1D::operator()().
|
inlinevirtual |
Returns the string "ViewEdge".
Reimplemented from Freestyle::Interface1D.
|
inlinevirtual |
Returns the Id of the vertex.
Reimplemented from Freestyle::Interface1D.
Definition at line 908 of file ViewMap.h.
Referenced by Freestyle::ViewMap::InsertViewVertex(), and Freestyle::ViewShape::SplitEdge().
|
virtual |
Returns the 2D length of the Viewedge.
Reimplemented from Freestyle::Interface1D.
Definition at line 650 of file ViewMap.cpp.
References fedge_iterator_begin(), fedge_iterator_end(), fedge_iterator_last(), blender::math::length(), and Freestyle::VecMat::Vec< T, N >::norm().
Referenced by Freestyle::ViewEdgeInternal::SVertexIterator::u(), and verticesEnd().
|
inlinevirtual |
Returns the nature of the ViewEdge.
Reimplemented from Freestyle::Interface1D.
Definition at line 914 of file ViewMap.h.
Referenced by Freestyle::ViewMap::InsertViewVertex(), Freestyle::Functions0D::CurveNatureF0D::operator()(), Freestyle::Functions1D::CurveNatureF1D::operator()(), Freestyle::ChainSilhouetteIterator::traverse(), and Freestyle::FEdge::viewedge_nature().
|
inline |
Definition at line 1242 of file ViewMap.h.
References Freestyle::GeomUtils::include2dSeg2dArea(), Freestyle::FEdge::nextEdge(), Freestyle::SVertex::point2D(), Freestyle::FEdge::vertexA(), and Freestyle::FEdge::vertexB().
Definition at line 1224 of file ViewMap.h.
References Freestyle::GeomUtils::intersect2dSeg2dArea(), Freestyle::FEdge::nextEdge(), Freestyle::SVertex::point2D(), Freestyle::FEdge::vertexA(), and Freestyle::FEdge::vertexB().
|
inline |
|
inline |
Definition at line 1801 of file ViewMap.h.
References Freestyle::ViewShape::sshape().
|
inline |
Definition at line 1307 of file ViewMap.h.
References Freestyle::FEdge::aFace().
|
inline |
Definition at line 1314 of file ViewMap.h.
Referenced by Freestyle::FEdge::occludee_empty().
Definition at line 1129 of file ViewMap.h.
Referenced by Freestyle::Functions1D::getOccludersF1D(), and Freestyle::Functions1D::GetOccludersF1D::operator()().
|
inline |
Definition at line 1287 of file ViewMap.h.
Referenced by Freestyle::Functions0D::getOccludersF0D(), and Freestyle::FEdge::occluders_begin().
|
inline |
Definition at line 1302 of file ViewMap.h.
Referenced by Freestyle::FEdge::occluders_empty().
|
inline |
Definition at line 1292 of file ViewMap.h.
Referenced by Freestyle::Functions0D::getOccludersF0D(), and Freestyle::FEdge::occluders_end().
|
inline |
Definition at line 1297 of file ViewMap.h.
Referenced by Freestyle::FEdge::occluders_size().
|
virtual |
Returns an Interface0DIterator to iterate over the points of this ViewEdge at a given resolution. The returned Interface0DIterator points on the first Point of the ViewEdge.
t | the sampling value. |
Reimplemented from Freestyle::Interface1D.
Definition at line 751 of file ViewMap.cpp.
References verticesBegin().
|
virtual |
Returns an Interface0DIterator to iterate over the points of this ViewEdge at a given resolution. The returned Interface0DIterator points after the last Point of the ViewEdge.
t | the sampling value. |
Reimplemented from Freestyle::Interface1D.
Definition at line 756 of file ViewMap.cpp.
References verticesEnd().
|
inline |
Definition at line 1282 of file ViewMap.h.
Referenced by Freestyle::FEdge::invisibility(), Freestyle::Functions0D::QuantitativeInvisibilityF0D::operator()(), Freestyle::Functions1D::QuantitativeInvisibilityF1D::operator()(), and setQI().
|
inline |
Sets the first ViewVertex of the ViewEdge.
Definition at line 1146 of file ViewMap.h.
Referenced by Freestyle::ViewEdgeXBuilder::BuildSharpViewEdge(), Freestyle::ViewEdgeXBuilder::BuildSmoothViewEdge(), Freestyle::ViewMap::InsertViewVertex(), and Freestyle::ViewShape::SplitEdge().
|
inline |
Sets the last ViewVertex of the ViewEdge.
Definition at line 1152 of file ViewMap.h.
Referenced by Freestyle::ViewEdgeXBuilder::BuildSharpViewEdge(), Freestyle::ViewEdgeXBuilder::BuildSmoothViewEdge(), Freestyle::ViewMap::InsertViewVertex(), and Freestyle::ViewShape::SplitEdge().
|
inline |
Sets the time stamp value.
Definition at line 1203 of file ViewMap.h.
Referenced by Freestyle::Functions1D::IncrementChainingTimeStampF1D::operator()(), and Freestyle::Functions1D::ChainingTimeStampF1D::operator()().
Sets the first FEdge of the ViewEdge.
Definition at line 1164 of file ViewMap.h.
Referenced by Freestyle::ViewEdgeXBuilder::BuildSharpViewEdge(), Freestyle::ViewEdgeXBuilder::BuildSmoothViewEdge(), Freestyle::ViewMap::InsertViewVertex(), and Freestyle::ViewShape::SplitEdge().
Sets the last FEdge of the ViewEdge.
Definition at line 1170 of file ViewMap.h.
Referenced by Freestyle::ViewEdgeXBuilder::BuildSharpViewEdge(), Freestyle::ViewEdgeXBuilder::BuildSmoothViewEdge(), Freestyle::ViewMap::InsertViewVertex(), and Freestyle::ViewShape::SplitEdge().
Sets the ViewEdge id.
Definition at line 1182 of file ViewMap.h.
References id.
Referenced by Freestyle::ViewEdgeXBuilder::BuildSharpViewEdge(), Freestyle::ViewEdgeXBuilder::BuildSmoothViewEdge(), Freestyle::ViewMap::InsertViewVertex(), and Freestyle::ViewShape::SplitEdge().
|
inline |
Sets the nature of the ViewEdge.
Definition at line 1158 of file ViewMap.h.
Referenced by Freestyle::ViewEdgeXBuilder::BuildSharpViewEdge(), Freestyle::ViewEdgeXBuilder::BuildSmoothViewEdge(), Freestyle::ViewMap::InsertViewVertex(), and Freestyle::ViewShape::SplitEdge().
|
inline |
Sets the ViewShape to which this ViewEdge belongs to.
Definition at line 1176 of file ViewMap.h.
Referenced by Freestyle::ViewShape::AddEdge().
Definition at line 1213 of file ViewMap.h.
References id.
Referenced by Freestyle::ViewShape::SplitEdge().
|
inline |
Definition at line 1329 of file ViewMap.h.
References Freestyle::SVertex::shape(), and Freestyle::FEdge::vertexA().
|
inline |
Definition at line 1324 of file ViewMap.h.
References Freestyle::SShape::getId(), Freestyle::SVertex::shape(), and Freestyle::FEdge::vertexA().
|
inline |
Definition at line 1334 of file ViewMap.h.
References Freestyle::FEdge::shape_importance().
|
inline |
Definition at line 1134 of file ViewMap.h.
Referenced by Freestyle::ViewShape::SplitEdge().
void Freestyle::ViewEdge::UpdateFEdges | ( | ) |
Sets Viewedge to this for all embedded fedges
Definition at line 817 of file ViewMap.cpp.
References ELEM, Freestyle::FEdge::nextEdge(), NULL, and Freestyle::FEdge::setViewEdge().
Referenced by Freestyle::ViewShape::SplitEdge(), and ViewEdge().
ViewEdge::vertex_iterator Freestyle::ViewEdge::vertices_begin | ( | ) |
Definition at line 712 of file ViewMap.cpp.
References Freestyle::FEdge::vertexA().
ViewEdge::const_vertex_iterator Freestyle::ViewEdge::vertices_begin | ( | ) | const |
embedding vertex iterator
Definition at line 707 of file ViewMap.cpp.
References Freestyle::FEdge::vertexA().
Referenced by Freestyle::Chain::push_viewedge_back(), and Freestyle::Chain::push_viewedge_front().
ViewEdge::vertex_iterator Freestyle::ViewEdge::vertices_end | ( | ) |
Definition at line 732 of file ViewMap.cpp.
ViewEdge::const_vertex_iterator Freestyle::ViewEdge::vertices_end | ( | ) | const |
Definition at line 727 of file ViewMap.cpp.
Referenced by Freestyle::Chain::push_viewedge_back(), and Freestyle::Chain::push_viewedge_front().
ViewEdge::vertex_iterator Freestyle::ViewEdge::vertices_last | ( | ) |
Definition at line 722 of file ViewMap.cpp.
References Freestyle::FEdge::vertexB().
ViewEdge::const_vertex_iterator Freestyle::ViewEdge::vertices_last | ( | ) | const |
Definition at line 717 of file ViewMap.cpp.
References Freestyle::FEdge::vertexB().
Referenced by Freestyle::Chain::push_viewedge_back(), and Freestyle::Chain::push_viewedge_front().
|
virtual |
Returns an Interface0DIterator to iterate over the SVertex constituting the embedding of this ViewEdge. The returned Interface0DIterator points to the first SVertex of the ViewEdge.
Reimplemented from Freestyle::Interface1D.
Definition at line 737 of file ViewMap.cpp.
References ret, and Freestyle::FEdge::vertexA().
Referenced by pointsBegin().
|
virtual |
Returns an Interface0DIterator to iterate over the SVertex constituting the embedding of this ViewEdge. The returned Interface0DIterator points after the last SVertex of the ViewEdge.
Reimplemented from Freestyle::Interface1D.
Definition at line 744 of file ViewMap.cpp.
References getLength2D(), ret, and Freestyle::FEdge::vertexA().
Referenced by pointsEnd().
ViewEdge::edge_iterator Freestyle::ViewEdge::ViewEdge_iterator | ( | ) |
view edge iterator
Definition at line 665 of file ViewMap.cpp.
ViewEdge::const_edge_iterator Freestyle::ViewEdge::ViewEdge_iterator | ( | ) | const |
Definition at line 670 of file ViewMap.cpp.
|
inline |
Returns the ViewShape to which this ViewEdge belongs to.
Definition at line 1091 of file ViewMap.h.
Referenced by Freestyle::ViewMapBuilder::ComputeSweepLineIntersections(), Freestyle::ViewMap::CreateTVertex(), Freestyle::Functions0D::getShapeF0D(), Freestyle::Functions1D::getShapeF1D(), Freestyle::ViewMap::InsertViewVertex(), and Freestyle::Functions1D::GetShapeF1D::operator()().
void* Freestyle::ViewEdge::userdata |
A field that can be used by the user to store any data. This field must be reset afterwards using ResetUserData().
Definition at line 956 of file ViewMap.h.
Referenced by ViewEdge(), and Freestyle::ViewShape::ViewShape().