PolyFEM
Loading...
Searching...
No Matches
polyfem::utils::SpecifiedSelection Class Reference

#include <Selection.hpp>

Inheritance diagram for polyfem::utils::SpecifiedSelection:
[legend]
Collaboration diagram for polyfem::utils::SpecifiedSelection:
[legend]

Public Member Functions

 SpecifiedSelection (const std::vector< int > &ids)
 
virtual bool inside (const size_t p_id, const std::vector< int > &vs, const RowVectorNd &p) const override
 
virtual int id (const size_t element_id, const std::vector< int > &vs, const RowVectorNd &p) const override
 
- Public Member Functions inherited from polyfem::utils::Selection
 Selection (const int id)
 
virtual ~Selection ()
 

Protected Member Functions

 SpecifiedSelection ()
 
- Protected Member Functions inherited from polyfem::utils::Selection
 Selection ()
 

Protected Attributes

std::vector< int > ids_
 
- Protected Attributes inherited from polyfem::utils::Selection
size_t id_
 

Additional Inherited Members

- Public Types inherited from polyfem::utils::Selection
typedef std::array< RowVectorNd, 2 > BBox
 
- Static Public Member Functions inherited from polyfem::utils::Selection
static std::shared_ptr< Selectionbuild (const json &j_selections, const BBox &mesh_bbox, const std::string &root_path="")
 Build a selection objects from a JSON selection.
 
static std::vector< std::shared_ptr< utils::Selection > > build_selections (const json &j_selections, const BBox &mesh_bbox, const std::string &root_path="")
 Build a vector of selection objects from a JSON selection(s).
 

Detailed Description

Definition at line 168 of file Selection.hpp.

Constructor & Destructor Documentation

◆ SpecifiedSelection() [1/2]

polyfem::utils::SpecifiedSelection::SpecifiedSelection ( const std::vector< int > &  ids)

Definition at line 293 of file Selection.cpp.

◆ SpecifiedSelection() [2/2]

polyfem::utils::SpecifiedSelection::SpecifiedSelection ( )
inlineprotected

Definition at line 179 of file Selection.hpp.

Member Function Documentation

◆ id()

int polyfem::utils::SpecifiedSelection::id ( const size_t  element_id,
const std::vector< int > &  vs,
const RowVectorNd p 
) const
overridevirtual

Reimplemented from polyfem::utils::Selection.

Reimplemented in polyfem::utils::FileSelection.

Definition at line 300 of file Selection.cpp.

References ids_.

Referenced by polyfem::utils::FileSelection::id().

Here is the caller graph for this function:

◆ inside()

virtual bool polyfem::utils::SpecifiedSelection::inside ( const size_t  p_id,
const std::vector< int > &  vs,
const RowVectorNd p 
) const
inlineoverridevirtual

Implements polyfem::utils::Selection.

Reimplemented in polyfem::utils::FileSelection.

Definition at line 174 of file Selection.hpp.

Referenced by polyfem::utils::FileSelection::inside().

Here is the caller graph for this function:

Member Data Documentation

◆ ids_

std::vector<int> polyfem::utils::SpecifiedSelection::ids_
protected

Definition at line 181 of file Selection.hpp.

Referenced by polyfem::utils::FileSelection::FileSelection(), and id().


The documentation for this class was generated from the following files: