Selection through volume box primitive. More...
#include <MeshSelection.hpp>
Protected Member Functions | |
void | swap (SelectionByBoxWithScalar &) noexcept |
Protected Member Functions inherited from mimmo::SelectionByBox | |
livector1D | extractSelection () |
void | swap (SelectionByBox &) noexcept |
Protected Member Functions inherited from mimmo::GenericSelection | |
void | swap (GenericSelection &x) noexcept |
Protected Member Functions inherited from mimmo::BaseManipulation | |
void | _apply (MimmoPiercedVector< darray3E > &displacements) |
void | addChild (BaseManipulation *child) |
void | addParent (BaseManipulation *parent) |
void | addPinIn (BaseManipulation *objIn, PortID portR) |
void | addPinOut (BaseManipulation *objOut, PortID portS, PortID portR) |
virtual void | apply () |
void | cleanBufferIn (PortID port) |
template<typename T , typename O > | |
bool | createPortIn (O *obj, void(O::*setVar_)(T), PortID portR, bool mandatory=false, int family=0) |
template<typename T , typename O > | |
bool | createPortIn (T *var_, PortID portR, bool mandatory=false, int family=0) |
template<typename T , typename O > | |
bool | createPortOut (O *obj, T(O::*getVar_)(), PortID portS) |
template<typename T , typename O > | |
bool | createPortOut (T *var_, PortID portS) |
void | deletePorts () |
PortID | findPinIn (PortIn &pin) |
PortID | findPinOut (PortOut &pin) |
void | initializeLogger (bool logexists) |
void | readBufferIn (PortID port) |
void | removePinIn (BaseManipulation *objIn, PortID portR) |
void | removePinIn (PortID portR, int j) |
void | removePinOut (BaseManipulation *objOut, PortID portS) |
void | removePinOut (PortID portS, int j) |
void | setBufferIn (PortID port, mimmo::IBinaryStream &input) |
void | swap (BaseManipulation &x) noexcept |
void | unsetChild (BaseManipulation *child) |
void | unsetParent (BaseManipulation *parent) |
void | write (MimmoSharedPointer< MimmoObject > geometry) |
template<typename mpv_t > | |
void | write (MimmoSharedPointer< MimmoObject > geometry, MimmoPiercedVector< mpv_t > &data) |
template<typename mpv_t , typename... Args> | |
void | write (MimmoSharedPointer< MimmoObject > geometry, MimmoPiercedVector< mpv_t > &data, Args ... args) |
template<typename mpv_t > | |
void | write (MimmoSharedPointer< MimmoObject > geometry, std::vector< MimmoPiercedVector< mpv_t > * > &data) |
template<typename mpv_t , typename... Args> | |
void | write (MimmoSharedPointer< MimmoObject > geometry, std::vector< MimmoPiercedVector< mpv_t > * > &data, Args ... args) |
template<typename mpv_t > | |
void | write (MimmoSharedPointer< MimmoObject > geometry, std::vector< MimmoPiercedVector< mpv_t >> &data) |
template<typename mpv_t , typename... Args> | |
void | write (MimmoSharedPointer< MimmoObject > geometry, std::vector< MimmoPiercedVector< mpv_t >> &data, Args ... args) |
Protected Member Functions inherited from mimmo::BasicShape | |
darray3E | checkNearestPointToAABBox (const darray3E &point, const darray3E &bMin, const darray3E &bMax) |
uint32_t | intersectShapePlane (int level, const darray3E &target) |
void | swap (BasicShape &) noexcept |
Protected Attributes | |
dmpvector1D | m_field |
Protected Attributes inherited from mimmo::GenericSelection | |
bool | m_dual |
mimmo::MimmoSharedPointer< MimmoObject > | m_subpatch |
int | m_topo |
SelectionType | m_type |
Protected Attributes inherited from mimmo::BaseManipulation | |
bool | m_active |
bool | m_apply |
bool | m_arePortsBuilt |
bmumap | m_child |
int | m_counter |
bool | m_execPlot |
MimmoSharedPointer< MimmoObject > | m_geometry |
bitpit::Logger * | m_log |
std::string | m_name |
std::string | m_outputPlot |
bmumap | m_parent |
std::unordered_map< PortID, PortIn * > | m_portIn |
std::unordered_map< PortID, PortOut * > | m_portOut |
ConnectionType | m_portsType |
uint | m_priority |
Protected Attributes inherited from mimmo::BasicShape | |
dvecarr3E | m_bbox |
darray3E | m_infLimits |
darray3E | m_origin |
darray3E | m_scaling |
dmatrix33E | m_sdr |
dmatrix33E | m_sdr_inverse |
ShapeType | m_shape |
darray3E | m_span |
std::array< CoordType, 3 > | m_typeCoord |
Additional Inherited Members | |
Public Types inherited from mimmo::BaseManipulation | |
typedef std::unordered_map< BaseManipulation *, int > | bmumap |
typedef pin::ConnectionType | ConnectionType |
typedef std::string | PortID |
Static Protected Member Functions inherited from mimmo::BasicShape | |
static dmatrix33E | inverse (const dmatrix33E &mat) |
static darray3E | matmul (const darray3E &vec, const dmatrix33E &mat) |
static darray3E | matmul (const dmatrix33E &mat, const darray3E &vec) |
static dmatrix33E | transpose (const dmatrix33E &mat) |
Static Protected Attributes inherited from mimmo::BaseManipulation | |
static int | sm_baseManipulationCounter |
Detailed Description
Selection through volume box primitive.
Selection Object managing selection of MimmoObject Data Structure. Select all elements contained in a box and extract a scalar field if it is present.
Ports available in SelectionByBoxWithScalar Class :
Port Input | ||
---|---|---|
PortType | variable/function | DataType |
M_SCALARFIELD | setField | (MC_SCALAR, MD_MPVECFLOAT_) |
Port Output | ||
---|---|---|
PortType | variable/function | DataType |
M_SCALARFIELD | getField | (MC_VECTOR, MD_MPVECFLOAT_) |
Inherited from SelectionByBox
Port Input | ||
---|---|---|
PortType | variable/function | DataType |
M_POINT | setOrigin | (MC_ARRAY3, MD_FLOAT) |
M_AXES | setRefSystem | (MC_ARR3ARR3, MD_FLOAT) |
M_SPAN | setSpan | (MC_ARRAY3, MD_FLOAT) |
Port Output | ||
---|---|---|
PortType | variable/function | DataType |
Inherited from GenericSelection
Port Input | ||
---|---|---|
PortType | variable/function | DataType |
M_VALUEB | setDual | (MC_SCALAR, MD_BOOL) |
M_GEOM | setGeometry | (MC_SCALAR, MD_MIMMO_) |
Port Output | ||
---|---|---|
PortType | variable/function | DataType |
M_VECTORLI | constrainedBoundary | (MC_VECTOR, MD_LONG) |
M_GEOM | getPatch | (MC_SCALAR, MD_MIMMO_) |
The xml available parameters, sections and subsections are the following :
Inherited from BaseManipulation:
- ClassName: name of the class as
mimmo.SelectionByBoxWithScalar
; - Priority: uint marking priority in multi-chain execution;
- PlotInExecution: boolean 0/1 print optional results of the class;
- OutputPlot: target directory for optional results writing.
Inherited from SelectionByBox:
- Dual: boolean to get straight what given by selection method or its exact dual;
- Origin: array of 3 doubles identifying origin (space separated);
- Span: span of the box (width height depth);
- RefSystem: reference system of the box:
<RefSystem>
<axis0> 1.0 0.0 0.0 </axis0>
<axis1> 0.0 1.0 0.0 </axis1>
<axis2> 0.0 0.0 1.0 </axis2>
</RefSystem>
Geometry and fields have to be mandatorily passed/recovered through ports.
Definition at line 678 of file MeshSelection.hpp.
Constructor & Destructor Documentation
◆ SelectionByBoxWithScalar() [1/4]
mimmo::SelectionByBoxWithScalar::SelectionByBoxWithScalar | ( | ) |
Basic Constructor
Definition at line 33 of file SelectionByBoxWithScalar.cpp.
◆ SelectionByBoxWithScalar() [2/4]
mimmo::SelectionByBoxWithScalar::SelectionByBoxWithScalar | ( | const bitpit::Config::Section & | rootXML | ) |
Custom constructor reading xml data
- Parameters
-
[in] rootXML reference to your xml tree section
Definition at line 41 of file SelectionByBoxWithScalar.cpp.
◆ SelectionByBoxWithScalar() [3/4]
mimmo::SelectionByBoxWithScalar::SelectionByBoxWithScalar | ( | darray3E | origin, |
darray3E | span, | ||
mimmo::MimmoSharedPointer< MimmoObject > | target | ||
) |
Custom Constructor
- Parameters
-
[in] origin Origin of the box->baricenter. [in] span Span of the box, width/height/depth. [in] target Pointer to MimmoObject target geometry.
Definition at line 61 of file SelectionByBoxWithScalar.cpp.
◆ ~SelectionByBoxWithScalar()
|
virtual |
Destructor
Definition at line 72 of file SelectionByBoxWithScalar.cpp.
◆ SelectionByBoxWithScalar() [4/4]
mimmo::SelectionByBoxWithScalar::SelectionByBoxWithScalar | ( | const SelectionByBoxWithScalar & | other | ) |
Copy Constructor
Definition at line 77 of file SelectionByBoxWithScalar.cpp.
Member Function Documentation
◆ absorbSectionXML()
|
virtual |
It sets infos reading from a XML bitpit::Config::section.
- Parameters
-
[in] slotXML bitpit::Config::Section of XML file [in] name name associated to the slot
Reimplemented from mimmo::SelectionByBox.
Definition at line 192 of file SelectionByBoxWithScalar.cpp.
◆ buildPorts()
|
virtual |
It builds the input/output ports of the object
Reimplemented from mimmo::SelectionByBox.
Definition at line 105 of file SelectionByBoxWithScalar.cpp.
◆ clear()
void mimmo::SelectionByBoxWithScalar::clear | ( | ) |
Clear content of the class
Definition at line 120 of file SelectionByBoxWithScalar.cpp.
◆ execute()
|
virtual |
Execute your object. A selection is extracted and trasferred in an indipendent MimmoObject structure pointed by m_subpatch member. The extracted field attached to the selection is built starting from the intial whole scalar field given as input and stored in member m_field (modified after the execution).
Reimplemented from mimmo::GenericSelection.
Definition at line 151 of file SelectionByBoxWithScalar.cpp.
◆ flushSectionXML()
|
virtual |
It sets infos from class members in a XML bitpit::Config::section.
- Parameters
-
[in] slotXML bitpit::Config::Section of XML file [in] name name associated to the slot
Reimplemented from mimmo::SelectionByBox.
Definition at line 204 of file SelectionByBoxWithScalar.cpp.
◆ getField()
dmpvector1D * mimmo::SelectionByBoxWithScalar::getField | ( | ) |
It gets the scalar field attached to the extracted patch.
- Returns
- Scalar field.
Definition at line 138 of file SelectionByBoxWithScalar.cpp.
◆ operator=()
SelectionByBoxWithScalar & mimmo::SelectionByBoxWithScalar::operator= | ( | SelectionByBoxWithScalar | other | ) |
Copy operator
Definition at line 84 of file SelectionByBoxWithScalar.cpp.
◆ plotOptionalResults()
|
virtual |
Plot optional result of the class in execution. It plots the selected patch as standard vtk unstructured grid and the related scalar field.
Reimplemented from mimmo::GenericSelection.
Definition at line 179 of file SelectionByBoxWithScalar.cpp.
◆ setField()
void mimmo::SelectionByBoxWithScalar::setField | ( | dmpvector1D * | field | ) |
It sets the starting scalar field attached to the whole patch.
- Parameters
-
[in] field Scalar field.
Definition at line 129 of file SelectionByBoxWithScalar.cpp.
◆ swap()
|
protectednoexcept |
Swap function. Assign data of this class to another of the same type and vice-versa. Resulting patch of selection is not swapped, ever.
- Parameters
-
[in] x SelectionByBoxWithScalar object
Definition at line 94 of file SelectionByBoxWithScalar.cpp.
Member Data Documentation
◆ m_field
|
protected |
Scalar field attached to the patch (related to the whole patch before execution, related to the selected patch after execution).
Definition at line 680 of file MeshSelection.hpp.
The documentation for this class was generated from the following files:
- src/geohandlers/MeshSelection.hpp
- src/geohandlers/SelectionByBoxWithScalar.cpp