|
Blender
V2.93
|
#include <ViewMap.h>
Inherits Freestyle::Interface1D.
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 | |
Protected Attributes inherited from Freestyle::Interface1D | |
| 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 969 of file ViewMap.h.
References NULL, and userdata.
Referenced by duplicate().
|
inline |
|
inline |
|
inline |
Definition at line 1013 of file ViewMap.h.
References NULL, UpdateFEdges(), and userdata.
|
inline |
|
inlinevirtual |
|
inline |
Returns the first ViewVertex.
Definition at line 1077 of file ViewMap.h.
Referenced by Freestyle::ChainingIterator::getVertex(), Freestyle::ChainingIterator::increment(), Freestyle::ViewMap::InsertViewVertex(), Freestyle::ViewMapIO::Internal::save(), and Freestyle::ViewShape::SplitEdge().
|
inline |
Definition at line 1218 of file ViewMap.h.
Referenced by Freestyle::ViewMapIO::Internal::load().
|
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 1109 of file ViewMap.h.
Referenced by Freestyle::Functions0D::getOccludeeF0D(), Freestyle::Functions1D::getOccludeeF1D(), Freestyle::FEdge::occluded_shape(), Freestyle::Functions1D::GetOccludeeF1D::operator()(), and Freestyle::ViewMapIO::Internal::save().
|
inline |
|
inline |
Returns the second ViewVertex.
Definition at line 1083 of file ViewMap.h.
Referenced by Freestyle::ChainingIterator::decrement(), Freestyle::ChainingIterator::getVertex(), Freestyle::ViewMap::InsertViewVertex(), Freestyle::ViewMapIO::Internal::save(), and Freestyle::ViewShape::SplitEdge().
|
inline |
|
inlinevirtual |
Cloning method.
Definition at line 1051 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 695 of file ViewMap.cpp.
| ViewEdge::fedge_iterator Freestyle::ViewEdge::fedge_iterator_end | ( | ) |
Definition at line 710 of file ViewMap.cpp.
Referenced by getLength2D().
| ViewEdge::const_fedge_iterator Freestyle::ViewEdge::fedge_iterator_end | ( | ) | const |
Definition at line 715 of file ViewMap.cpp.
| ViewEdge::fedge_iterator Freestyle::ViewEdge::fedge_iterator_last | ( | ) |
Definition at line 700 of file ViewMap.cpp.
Referenced by getLength2D().
| ViewEdge::const_fedge_iterator Freestyle::ViewEdge::fedge_iterator_last | ( | ) | const |
Definition at line 705 of file ViewMap.cpp.
|
inline |
Returns the first FEdge that constitutes this ViewEdge.
Definition at line 1089 of file ViewMap.h.
Referenced by Freestyle::ViewMap::InsertViewVertex(), Freestyle::Chain::push_viewedge_back(), Freestyle::Chain::push_viewedge_front(), Freestyle::ViewShape::RemoveEdge(), Freestyle::ViewMapIO::Internal::save(), and Freestyle::ViewShape::SplitEdge().
|
inline |
Returns the last FEdge that constitutes this ViewEdge.
Definition at line 1095 of file ViewMap.h.
Referenced by Freestyle::ViewMap::InsertViewVertex(), Freestyle::Chain::push_viewedge_back(), Freestyle::Chain::push_viewedge_front(), Freestyle::ViewMapIO::Internal::save(), and Freestyle::ViewShape::SplitEdge().
|
inline |
Returns the time stamp of this ViewEdge.
Definition at line 1124 of file ViewMap.h.
Referenced by Freestyle::AdjacencyIterator::isValid(), Freestyle::Predicates1D::EqualToChainingTimeStampUP1D::operator()(), and 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 918 of file ViewMap.h.
Referenced by Freestyle::ViewMap::InsertViewVertex(), Freestyle::ViewMapIO::Internal::save(), and Freestyle::ViewShape::SplitEdge().
|
virtual |
Returns the 2D length of the Viewedge.
Reimplemented from Freestyle::Interface1D.
Definition at line 664 of file ViewMap.cpp.
References fedge_iterator_begin(), fedge_iterator_end(), fedge_iterator_last(), 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 924 of file ViewMap.h.
Referenced by Freestyle::ViewMap::InsertViewVertex(), Freestyle::Functions0D::CurveNatureF0D::operator()(), Freestyle::Functions1D::CurveNatureF1D::operator()(), Freestyle::ViewMapIO::Internal::save(), Freestyle::ChainSilhouetteIterator::traverse(), and Freestyle::FEdge::viewedge_nature().
|
inline |
Definition at line 1252 of file ViewMap.h.
References Freestyle::GeomUtils::include2dSeg2dArea(), Freestyle::FEdge::nextEdge(), Freestyle::SVertex::point2D(), Freestyle::FEdge::vertexA(), and Freestyle::FEdge::vertexB().
Definition at line 1234 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 1811 of file ViewMap.h.
References Freestyle::ViewShape::sshape().
|
inline |
Definition at line 1317 of file ViewMap.h.
References Freestyle::FEdge::aFace().
|
inline |
Definition at line 1324 of file ViewMap.h.
Referenced by Freestyle::FEdge::occludee_empty().
Definition at line 1139 of file ViewMap.h.
Referenced by Freestyle::Functions1D::getOccludersF1D(), Freestyle::Functions1D::GetOccludersF1D::operator()(), and Freestyle::ViewMapIO::Internal::save().
|
inline |
Definition at line 1297 of file ViewMap.h.
Referenced by Freestyle::Functions0D::getOccludersF0D(), and Freestyle::FEdge::occluders_begin().
|
inline |
Definition at line 1312 of file ViewMap.h.
Referenced by Freestyle::FEdge::occluders_empty().
|
inline |
Definition at line 1302 of file ViewMap.h.
Referenced by Freestyle::Functions0D::getOccludersF0D(), and Freestyle::FEdge::occluders_end().
|
inline |
Definition at line 1307 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 765 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 770 of file ViewMap.cpp.
References verticesEnd().
|
inline |
Definition at line 1292 of file ViewMap.h.
Referenced by Freestyle::FEdge::invisibility(), Freestyle::Functions0D::QuantitativeInvisibilityF0D::operator()(), Freestyle::Functions1D::QuantitativeInvisibilityF1D::operator()(), Freestyle::ViewMapIO::Internal::save(), and setQI().
|
inline |
Sets the first ViewVertex of the ViewEdge.
Definition at line 1156 of file ViewMap.h.
Referenced by Freestyle::ViewEdgeXBuilder::BuildSharpViewEdge(), Freestyle::ViewEdgeXBuilder::BuildSmoothViewEdge(), Freestyle::ViewMap::InsertViewVertex(), Freestyle::ViewMapIO::Internal::load(), and Freestyle::ViewShape::SplitEdge().
|
inline |
Sets the occluded ViewShape
Definition at line 1201 of file ViewMap.h.
Referenced by Freestyle::ViewMapIO::Internal::load().
|
inline |
Sets the last ViewVertex of the ViewEdge.
Definition at line 1162 of file ViewMap.h.
Referenced by Freestyle::ViewEdgeXBuilder::BuildSharpViewEdge(), Freestyle::ViewEdgeXBuilder::BuildSmoothViewEdge(), Freestyle::ViewMap::InsertViewVertex(), Freestyle::ViewMapIO::Internal::load(), and Freestyle::ViewShape::SplitEdge().
|
inline |
Sets the time stamp value.
Definition at line 1213 of file ViewMap.h.
Referenced by Freestyle::Functions1D::IncrementChainingTimeStampF1D::operator()(), and Freestyle::Functions1D::ChainingTimeStampF1D::operator()().
|
inline |
Sets the first FEdge of the ViewEdge.
Definition at line 1174 of file ViewMap.h.
Referenced by Freestyle::ViewEdgeXBuilder::BuildSharpViewEdge(), Freestyle::ViewEdgeXBuilder::BuildSmoothViewEdge(), Freestyle::ViewMap::InsertViewVertex(), Freestyle::ViewMapIO::Internal::load(), and Freestyle::ViewShape::SplitEdge().
|
inline |
Sets the last FEdge of the ViewEdge.
Definition at line 1180 of file ViewMap.h.
Referenced by Freestyle::ViewEdgeXBuilder::BuildSharpViewEdge(), Freestyle::ViewEdgeXBuilder::BuildSmoothViewEdge(), Freestyle::ViewMap::InsertViewVertex(), Freestyle::ViewMapIO::Internal::load(), and Freestyle::ViewShape::SplitEdge().
|
inline |
Sets the ViewEdge id.
Definition at line 1192 of file ViewMap.h.
References id.
Referenced by Freestyle::ViewEdgeXBuilder::BuildSharpViewEdge(), Freestyle::ViewEdgeXBuilder::BuildSmoothViewEdge(), Freestyle::ViewMap::InsertViewVertex(), Freestyle::ViewMapIO::Internal::load(), and Freestyle::ViewShape::SplitEdge().
|
inline |
|
inline |
Sets the nature of the ViewEdge.
Definition at line 1168 of file ViewMap.h.
Referenced by Freestyle::ViewEdgeXBuilder::BuildSharpViewEdge(), Freestyle::ViewEdgeXBuilder::BuildSmoothViewEdge(), Freestyle::ViewMap::InsertViewVertex(), Freestyle::ViewMapIO::Internal::load(), and Freestyle::ViewShape::SplitEdge().
|
inline |
Sets the quantitative invisibility value.
Definition at line 1207 of file ViewMap.h.
References qi().
Referenced by Freestyle::ViewMapIO::Internal::load().
|
inline |
Sets the ViewShape to which this ViewEdge belongs to.
Definition at line 1186 of file ViewMap.h.
Referenced by Freestyle::ViewShape::AddEdge(), and Freestyle::ViewMapIO::Internal::load().
|
inline |
Definition at line 1223 of file ViewMap.h.
References id.
Referenced by Freestyle::ViewShape::SplitEdge().
|
inline |
Definition at line 1339 of file ViewMap.h.
References Freestyle::SVertex::shape(), and Freestyle::FEdge::vertexA().
Referenced by Freestyle::ViewMapIO::Internal::save().
|
inline |
Definition at line 1334 of file ViewMap.h.
References Freestyle::SShape::getId(), Freestyle::SVertex::shape(), and Freestyle::FEdge::vertexA().
|
inline |
Definition at line 1344 of file ViewMap.h.
References Freestyle::FEdge::shape_importance().
|
inline |
Definition at line 1144 of file ViewMap.h.
Referenced by Freestyle::ViewShape::SplitEdge().
| void Freestyle::ViewEdge::UpdateFEdges | ( | ) |
Sets Viewedge to this for all embedded fedges
Definition at line 831 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 726 of file ViewMap.cpp.
References Freestyle::FEdge::vertexA().
| ViewEdge::const_vertex_iterator Freestyle::ViewEdge::vertices_begin | ( | ) | const |
embedding vertex iterator
Definition at line 721 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 746 of file ViewMap.cpp.
| ViewEdge::const_vertex_iterator Freestyle::ViewEdge::vertices_end | ( | ) | const |
Definition at line 741 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 736 of file ViewMap.cpp.
References Freestyle::FEdge::vertexB().
| ViewEdge::const_vertex_iterator Freestyle::ViewEdge::vertices_last | ( | ) | const |
Definition at line 731 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 751 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 758 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 679 of file ViewMap.cpp.
| ViewEdge::const_edge_iterator Freestyle::ViewEdge::ViewEdge_iterator | ( | ) | const |
Definition at line 684 of file ViewMap.cpp.
|
inline |
Returns the ViewShape to which this ViewEdge belongs to .
Definition at line 1101 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 966 of file ViewMap.h.
Referenced by ViewEdge(), and Freestyle::ViewShape::ViewShape().