|
TTK
|
TTK contourAroundPoint processing package. More...
#include <ContourAroundPoint.hpp>
Public Member Functions | |
| ContourAroundPoint () | |
| ~ContourAroundPoint () override=default | |
| template<class triangulationType = AbstractTriangulation> | |
| int | setInputField (triangulationType *triangulation, void *scalars, double sizeFilter, double radius=0.) |
| int | setInputPoints (float *coords, float *scalars, float *isovals, int *flags, std::size_t np) |
| template<class scalarT > | |
| int | execute () const |
| template<class Triang > | |
| int | setInputField (Triang *triangulation, void *scalars, double sizeFilter, double radius) |
| template<class Triang > | |
| ttk::SimplexId | findInpFldVert (SimplexId p) const |
Public Member Functions inherited from ttk::Debug | |
| Debug () | |
| ~Debug () override | |
| virtual int | setDebugLevel (const int &debugLevel) |
| int | setWrapper (const Wrapper *wrapper) override |
| int | printMsg (const std::string &msg, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const |
| int | printMsg (const std::vector< std::string > &msgs, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const |
| int | printErr (const std::string &msg, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cerr) const |
| int | printWrn (const std::string &msg, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cerr) const |
| int | printMsg (const std::string &msg, const double &progress, const double &time, const int &threads, const double &memory, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const |
| int | printMsg (const std::string &msg, const double &progress, const double &time, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const |
| int | printMsg (const std::string &msg, const double &progress, const double &time, const int &threads, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const |
| int | printMsg (const std::string &msg, const double &progress, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const |
| int | printMsg (const std::string &msg, const double &progress, const debug::Priority &priority, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const |
| int | printMsg (const std::vector< std::vector< std::string > > &rows, const debug::Priority &priority=debug::Priority::INFO, const bool hasHeader=true, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const |
| int | printMsg (const debug::Separator &separator, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::INFO, std::ostream &stream=std::cout) const |
| int | printMsg (const debug::Separator &separator, const debug::Priority &priority, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const |
| int | printMsg (const std::string &msg, const debug::Separator &separator, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::INFO, std::ostream &stream=std::cout) const |
| void | setDebugMsgPrefix (const std::string &prefix) |
Public Member Functions inherited from ttk::BaseClass | |
| BaseClass () | |
| virtual | ~BaseClass ()=default |
| int | getThreadNumber () const |
| virtual int | setThreadNumber (const int threadNumber) |
Protected Member Functions | |
| template<class triangulationType = AbstractTriangulation> | |
| SimplexId | findInpFldVert (SimplexId p) const |
| template<class triangulationType = AbstractTriangulation> | |
| float | compDist2 (SimplexId v, SimplexId p) const |
| template<typename scalarT , class triangulationType = AbstractTriangulation> | |
| void | handleOneInpPt (SimplexId vBeg, float isoval, int flag, float scalar) const |
| template<typename scalarT , class triangulationType = AbstractTriangulation> | |
| void | extendOutFld (const std::set< SimplexId > &inpEdges, float isoval, int flag) const |
| template<typename scalarT , class triangulationType = AbstractTriangulation> | |
| void | extendOutPts (const std::vector< SimplexId > &vertices, float isoval, int flag, float scalar) const |
| template<class triangulationType = AbstractTriangulation> | |
| double | compRadius () |
| Set and return _radius. | |
Protected Member Functions inherited from ttk::Debug | |
| int | printMsgInternal (const std::string &msg, const std::string &right, const std::string &filler, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const |
| int | printMsgInternal (const std::string &msg, const debug::Priority &priority, const debug::LineMode &lineMode, std::ostream &stream=std::cout) const |
| int | welcomeMsg (std::ostream &stream) |
Static Protected Member Functions | |
| template<class PointIterable , class WeightIterable > | |
| static std::array< double, std::tuple_size< typename PointIterable::value_type >::value > | average (const PointIterable &pts, const WeightIterable &ws) |
Protected Attributes | |
| double | _radius = 0. |
| void * | _inpFldTriang = nullptr |
| void * | _inpFldScalars = nullptr |
| SimplexId | _inpDimMax = 0 |
| std::size_t | _sizeMin = 0 |
| float * | _inpPtsCoords = nullptr |
| float * | _inpPtsScalars = nullptr |
| float * | _inpPtsIsovals = nullptr |
| int * | _inpPtsFlags = nullptr |
| std::size_t | _inpPtsNum = 0 |
| std::vector< LongSimplexId > | _outContoursCinfos |
| SimplexId | _outContoursNc = 0 |
| std::vector< float > | _outContoursCoords |
| std::vector< float > | _outContoursScalars |
| std::vector< int > | _outContoursFlags |
| std::vector< float > | _outCentroidsCoords |
| std::vector< float > | _outCentroidsScalars |
| std::vector< int > | _outCentroidsFlags |
Protected Attributes inherited from ttk::Debug | |
| int | debugLevel_ |
| std::string | debugMsgPrefix_ |
| std::string | debugMsgNamePrefix_ |
Protected Attributes inherited from ttk::BaseClass | |
| bool | lastObject_ |
| int | threadNumber_ |
| Wrapper * | wrapper_ |
Additional Inherited Members | |
Static Protected Attributes inherited from ttk::Debug | |
| static COMMON_EXPORTS debug::LineMode | lastLineMode = ttk::debug::LineMode::NEW |
TTK contourAroundPoint processing package.
ContourAroundPoint is a TTK processing package that takes a scalar field on the input and produces a scalar field on the output.
Definition at line 26 of file ContourAroundPoint.hpp.
|
inline |
Definition at line 29 of file ContourAroundPoint.hpp.
|
overridedefault |
|
staticprotected |
PointIterable and WeightIterable must provide random access. PointIterable must contain sth. like a tuple, pair or array.
Definition at line 600 of file ContourAroundPoint.hpp.
|
protected |
Compute the squared distance between input field vertex v and input point p.
Definition at line 270 of file ContourAroundPoint.hpp.
|
inlineprotected |
Set and return _radius.
Definition at line 123 of file ContourAroundPoint.hpp.
| int ttk::ContourAroundPoint::execute | ( | ) | const |
Execute the package.
Definition at line 224 of file ContourAroundPoint.hpp.
|
protected |
Extract the contour from the input edges that intersect it. inpEdges may be empty.
Definition at line 363 of file ContourAroundPoint.hpp.
|
protected |
Compute one point based on the vertices within one contoured region. vertices must contain at least one vertex.
Definition at line 451 of file ContourAroundPoint.hpp.
|
protected |
Given one of the input points, find the nearest vertex in the input field. N.B.: Typically, the points are actually vertices of the input field.
| ttk::SimplexId ttk::ContourAroundPoint::findInpFldVert | ( | SimplexId | p | ) | const |
Definition at line 282 of file ContourAroundPoint.hpp.
|
protected |
Definition at line 300 of file ContourAroundPoint.hpp.
| int ttk::ContourAroundPoint::setInputField | ( | Triang * | triangulation, |
| void * | scalars, | ||
| double | sizeFilter, | ||
| double | radius | ||
| ) |
Definition at line 182 of file ContourAroundPoint.hpp.
| int ttk::ContourAroundPoint::setInputField | ( | triangulationType * | triangulation, |
| void * | scalars, | ||
| double | sizeFilter, | ||
| double | radius = 0. |
||
| ) |
Setup a (valid) triangulation object for this TTK base object.
| triangulation | Pointer to a valid triangulation. |
| scalars | Scalar for each vertex. |
| sizeFilter | 0 --> all pass, 10000 none pass. |
| radius | If all vertices lie on a sphere and the output is supposed to do so as well, pass the radius of the sphere here or -1 to have it computed. The default 0 signals that the data is not spherical. |
| int ttk::ContourAroundPoint::setInputPoints | ( | float * | coords, |
| float * | scalars, | ||
| float * | isovals, | ||
| int * | flags, | ||
| std::size_t | np | ||
| ) |
Input the point data (e.g. from the wrapped algorithm).
| coords | 3D point coordinates in an interleaved array. |
| scalars | Scalar value for each point. |
| isovals | Isovalue corresponding to each point. |
| flags | isMax-flag for each point. |
| np | Number of points. |
Definition at line 5 of file ContourAroundPoint.cpp.
|
protected |
Definition at line 144 of file ContourAroundPoint.hpp.
|
protected |
Definition at line 141 of file ContourAroundPoint.hpp.
|
protected |
Definition at line 140 of file ContourAroundPoint.hpp.
|
protected |
Definition at line 149 of file ContourAroundPoint.hpp.
|
protected |
Definition at line 154 of file ContourAroundPoint.hpp.
|
protected |
Definition at line 151 of file ContourAroundPoint.hpp.
|
protected |
Definition at line 155 of file ContourAroundPoint.hpp.
|
protected |
Definition at line 150 of file ContourAroundPoint.hpp.
|
mutableprotected |
Definition at line 165 of file ContourAroundPoint.hpp.
|
mutableprotected |
Definition at line 167 of file ContourAroundPoint.hpp.
|
mutableprotected |
Definition at line 166 of file ContourAroundPoint.hpp.
|
mutableprotected |
Definition at line 159 of file ContourAroundPoint.hpp.
|
mutableprotected |
Definition at line 161 of file ContourAroundPoint.hpp.
|
mutableprotected |
Definition at line 163 of file ContourAroundPoint.hpp.
|
mutableprotected |
Definition at line 160 of file ContourAroundPoint.hpp.
|
mutableprotected |
Definition at line 162 of file ContourAroundPoint.hpp.
|
protected |
If greater than 0, means the coordinates are supposed to lie on a sphere with fixed radius.
Definition at line 136 of file ContourAroundPoint.hpp.
|
protected |
Definition at line 147 of file ContourAroundPoint.hpp.