|
Blender
V2.93
|
#include <Silhouette.h>
Public Member Functions | |
| SShape () | |
| SShape (SShape &iBrother) | |
| virtual SShape * | duplicate () |
| virtual | ~SShape () |
| void | AddEdge (FEdge *iEdge) |
| void | AddNewVertex (SVertex *iv) |
| void | AddChain (FEdge *iEdge) |
| SVertex * | CreateSVertex (const Vec3r &P3D, const Vec3r &P2D, const Id &id) |
| void | SplitEdge (FEdge *fe, const vector< Vec2r > &iParameters, vector< FEdge * > &ioNewEdges) |
| FEdge * | SplitEdgeIn2 (FEdge *ioEdge, SVertex *ioNewVertex) |
| void | setBBox (const BBox< Vec3r > &iBBox) |
| void | ComputeBBox () |
| void | RemoveEdgeFromChain (FEdge *iEdge) |
| void | RemoveEdge (FEdge *iEdge) |
| vector< SVertex * > & | getVertexList () |
| vector< FEdge * > & | getEdgeList () |
| vector< FEdge * > & | getChains () |
| const BBox< Vec3r > & | bbox () |
| const FrsMaterial & | frs_material (unsigned i) const |
| const vector< FrsMaterial > & | frs_materials () const |
| ViewShape * | viewShape () |
| float | importance () const |
| Id | getId () const |
| const string & | getName () const |
| const string & | getLibraryPath () const |
| void | setId (Id id) |
| void | setName (const string &name) |
| void | setLibraryPath (const string &path) |
| void | setFrsMaterials (const vector< FrsMaterial > &iMaterials) |
| void | setViewShape (ViewShape *iShape) |
| void | setImportance (float importance) |
Public Attributes | |
| void * | userdata |
Class to define a feature shape. It is the gathering of feature elements from an identified input shape
Definition at line 1418 of file Silhouette.h.
|
inline |
|
inline |
Copy constructor
Definition at line 1448 of file Silhouette.h.
References bbox(), Freestyle::FEdge::duplicate(), e, getChains(), getEdgeList(), getVertexList(), NULL, Freestyle::SVertex::setShape(), Freestyle::FEdge::setVertexA(), and Freestyle::FEdge::userdata.
|
inlinevirtual |
|
inline |
Definition at line 1579 of file Silhouette.h.
Referenced by Freestyle::ViewMap::InsertViewVertex(), and Freestyle::ViewMapIO::Internal::load().
|
inline |
Adds a FEdge to the list of FEdges.
Definition at line 1565 of file Silhouette.h.
Referenced by Freestyle::ViewMapIO::Internal::load(), Freestyle::Chain::push_viewedge_back(), and Freestyle::Chain::push_viewedge_front().
|
inline |
Adds a SVertex to the list of SVertex of this Shape. The SShape attribute of the SVertex is also set to 'this'.
Definition at line 1573 of file Silhouette.h.
References Freestyle::SVertex::setShape().
Referenced by Freestyle::ViewMapIO::Internal::load().
Returns the bounding box of the shape.
Definition at line 1874 of file Silhouette.h.
Referenced by SShape().
|
inline |
Compute the bbox of the sshape
Definition at line 1783 of file Silhouette.h.
Referenced by Freestyle::ViewMapBuilder::computeInitialViewEdges().
|
inline |
Definition at line 1584 of file Silhouette.h.
References Freestyle::SVertex::setPoint2D().
Referenced by Freestyle::ViewMap::CreateTVertex().
|
inlinevirtual |
Cloning method.
Definition at line 1532 of file Silhouette.h.
|
inline |
Returns the ith material of the shape.
Definition at line 1880 of file Silhouette.h.
Referenced by Freestyle::FEdgeSharp::aFrsMaterial(), Freestyle::FEdgeSharp::bFrsMaterial(), Freestyle::FEdgeSmooth::frs_material(), and Freestyle::ViewMapIO::Internal::save().
|
inline |
Returns the list of materials of the Shape.
Definition at line 1886 of file Silhouette.h.
Referenced by Freestyle::ViewMapIO::Internal::save().
Definition at line 1868 of file Silhouette.h.
Referenced by Freestyle::ViewMapIO::Internal::save(), and SShape().
Returns the list of FEdges of the Shape.
Definition at line 1863 of file Silhouette.h.
Referenced by Freestyle::ViewMapIO::Internal::save(), and SShape().
|
inline |
Returns the Id of the Shape.
Definition at line 1902 of file Silhouette.h.
Referenced by Freestyle::ViewShape::getId(), Freestyle::ViewMapIO::Internal::save(), Freestyle::SVertex::shape_id(), Freestyle::FEdge::shape_id(), and Freestyle::ViewEdge::shape_id().
|
inline |
Returns the library path of the Shape.
Definition at line 1914 of file Silhouette.h.
Referenced by Freestyle::ViewShape::getLibraryPath().
|
inline |
Returns the name of the Shape.
Definition at line 1908 of file Silhouette.h.
Referenced by Freestyle::ViewShape::getName().
Returns the list of SVertex of the Shape.
Definition at line 1857 of file Silhouette.h.
Referenced by Freestyle::ViewMapIO::Internal::save(), and SShape().
|
inline |
Definition at line 1896 of file Silhouette.h.
Referenced by Freestyle::ViewMapIO::Internal::save(), Freestyle::SVertex::shape_importance(), and Freestyle::FEdge::shape_importance().
|
inline |
Definition at line 1844 of file Silhouette.h.
Referenced by Freestyle::ViewShape::RemoveEdge().
|
inline |
Definition at line 1833 of file Silhouette.h.
Referenced by Freestyle::ViewMap::InsertViewVertex(), and Freestyle::ViewShape::SplitEdge().
Sets the Bounding Box of the Shape
Definition at line 1777 of file Silhouette.h.
|
inline |
Sets the list of materials for the shape
Definition at line 1939 of file Silhouette.h.
Referenced by Freestyle::ViewMapBuilder::computeInitialViewEdges(), and Freestyle::ViewMapIO::Internal::load().
|
inline |
Sets the Id of the shape.
Definition at line 1921 of file Silhouette.h.
References id.
Referenced by Freestyle::ViewMapBuilder::computeInitialViewEdges(), and Freestyle::ViewMapIO::Internal::load().
|
inline |
Definition at line 1949 of file Silhouette.h.
Referenced by Freestyle::ViewMapIO::Internal::load().
|
inline |
Sets the library path of the shape.
Definition at line 1933 of file Silhouette.h.
Referenced by Freestyle::ViewMapBuilder::computeInitialViewEdges().
|
inline |
Sets the name of the shape.
Definition at line 1927 of file Silhouette.h.
Referenced by Freestyle::ViewMapBuilder::computeInitialViewEdges().
|
inline |
Definition at line 1944 of file Silhouette.h.
Referenced by Freestyle::ViewMapIO::load().
|
inline |
Splits an edge into several edges. The edge's vertices are passed rather than the edge itself. This way, all feature edges (SILHOUETTE, CREASE, BORDER) are split in the same time. The processed edges are flagged as done (using the user-data flag).One single new vertex is created whereas several split edges might created for the different kinds of edges. These new elements are added to the lists maintained by the shape. New chains are also created. ioA The first vertex for the edge that gets split. ioB The second vertex for the edge that gets split. iParameters A vector containing 2D real vectors indicating the parameters giving the intersections coordinates in 3D and in 2D. These intersections points must be sorted from B to A. Each parameter defines the intersection point I as I=A+T*AB. T<0 and T>1 are then incorrect insofar as they give intersections points that lie outside the segment. ioNewEdges The edges that are newly created (the initial edges are not included) are added to this list.
Definition at line 1610 of file Silhouette.h.
References A, Freestyle::a, Freestyle::FEdgeSharp::aFrsMaterialIndex(), B, Freestyle::FEdgeSharp::bFrsMaterialIndex(), Freestyle::FEdgeSmooth::frs_materialIndex(), Freestyle::Id::getFirst(), Freestyle::SVertex::getId(), Freestyle::FEdge::getId(), Freestyle::Id::getSecond(), id, Freestyle::FEdge::isSmooth(), Freestyle::FEdge::nextEdge(), NULL, Freestyle::SVertex::point2D(), Freestyle::SVertex::point3D(), Freestyle::SVertex::Replace(), Freestyle::FEdgeSharp::setaFrsMaterialIndex(), Freestyle::FEdgeSharp::setbFrsMaterialIndex(), Freestyle::FEdgeSmooth::setFrsMaterialIndex(), Freestyle::FEdge::setId(), Freestyle::FEdge::setNature(), Freestyle::FEdge::setNextEdge(), Freestyle::SVertex::setPoint2D(), Freestyle::FEdge::setPreviousEdge(), T, t, Freestyle::FEdge::vertexA(), and Freestyle::FEdge::vertexB().
Definition at line 1709 of file Silhouette.h.
References Freestyle::SVertex::AddFEdge(), Freestyle::FEdgeSharp::aFaceMark(), Freestyle::FEdgeSharp::aFrsMaterialIndex(), B, Freestyle::FEdgeSharp::bFaceMark(), Freestyle::FEdgeSharp::bFrsMaterialIndex(), Freestyle::FEdgeSmooth::faceMark(), Freestyle::FEdgeSmooth::frs_materialIndex(), Freestyle::Id::getFirst(), Freestyle::FEdge::getId(), Freestyle::FEdge::getNature(), Freestyle::Id::getSecond(), id, Freestyle::FEdge::isSmooth(), Freestyle::FEdge::nextEdge(), Freestyle::FEdgeSmooth::normal(), Freestyle::FEdgeSharp::normalA(), Freestyle::FEdgeSharp::normalB(), Freestyle::FEdgeSharp::setaFaceMark(), Freestyle::FEdgeSharp::setaFrsMaterialIndex(), Freestyle::FEdgeSharp::setbFaceMark(), Freestyle::FEdgeSharp::setbFrsMaterialIndex(), Freestyle::FEdgeSmooth::setFaceMark(), Freestyle::FEdgeSmooth::setFrsMaterialIndex(), Freestyle::FEdge::setId(), Freestyle::FEdge::setNature(), Freestyle::FEdge::setNextEdge(), Freestyle::FEdgeSmooth::setNormal(), Freestyle::FEdgeSharp::setNormalA(), Freestyle::FEdgeSharp::setNormalB(), Freestyle::FEdge::setPreviousEdge(), Freestyle::FEdge::setVertexB(), and Freestyle::FEdge::vertexB().
Referenced by Freestyle::ViewShape::SplitEdge().
|
inline |
Definition at line 1891 of file Silhouette.h.
| void* Freestyle::SShape::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 1437 of file Silhouette.h.