FVGenericSelection class specialized for selections with volume box primitive shapes. More...
#include <FVMeshSelection.hpp>
Protected Member Functions | |
void | buildPorts () |
void | swap (FVSelectionByBox &) noexcept |
Protected Member Functions inherited from mimmo::FVGenericSelection | |
bool | checkCoherenceBulkBoundary () |
void | cleanUpBoundaryPatch () |
MimmoSharedPointer< MimmoObject > | createInternalBoundaryPatch () |
virtual void | plotOptionalResults () |
void | swap (FVGenericSelection &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) |
Detailed Description
FVGenericSelection class specialized for selections with volume box primitive shapes.
Use SelectionByBox internally to extract bulk+boundary sub-patches.
Ports available in FVSelectionByBox Class :
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 FVGenericSelection
Port Input | ||
---|---|---|
PortType | variable/function | DataType |
M_VALUEB | setDual | (MC_SCALAR, MD_BOOL) |
M_GEOM | setGeometry | (MC_SCALAR, MD_MIMMO_) |
M_GEOM2 | setBoundary | (MC_SCALAR, MD_MIMMO_) |
Port Output | ||
---|---|---|
PortType | variable/function | DataType |
M_GEOM | getVolumePatch | (MC_SCALAR, MD_MIMMO_) |
M_GEOM2 | getBoundaryPatch | (MC_SCALAR, MD_MIMMO_) |
M_GEOM3 | getInternalBoundaryPatch | (MC_SCALAR, MD_MIMMO_) |
The xml available parameters, sections and subsections are the following :
Inherited from BaseManipulation:
- ClassName: name of the class as
mimmo.FVSelectionByBox
; - 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.
Proper of the class:
- Topology : 1 for volume mesh+surface boundary, 2 for surface mesh + 3Dcurve boundary. No other value allowed.
- 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 has to be mandatorily passed through port.
Definition at line 192 of file FVMeshSelection.hpp.
Constructor & Destructor Documentation
◆ FVSelectionByBox() [1/4]
mimmo::FVSelectionByBox::FVSelectionByBox | ( | int | topo = 1 | ) |
Basic Constructor. Parameter topo get topology of the target MimmoFvMesh where performing extraction:
- 1 for volume bulk and surface boundary
- 2 for surface bulk and 3DCurve boundary
No other values are allowed
- Parameters
-
[in] topo topology of the target MimmoFvMesh.
Definition at line 38 of file FVSelectionByBox.cpp.
◆ FVSelectionByBox() [2/4]
mimmo::FVSelectionByBox::FVSelectionByBox | ( | const bitpit::Config::Section & | rootXML | ) |
Custom constructor reading xml data
- Parameters
-
[in] rootXML reference to your xml tree section
Definition at line 47 of file FVSelectionByBox.cpp.
◆ FVSelectionByBox() [3/4]
Custom Constructor
- Parameters
-
[in] topo topology of the target MimmoFvMesh.See Basic Constructor doxy. [in] origin Origin of the box->baricenter. [in] span Span of the box, width/height/depth.
Definition at line 77 of file FVSelectionByBox.cpp.
◆ ~FVSelectionByBox()
|
virtual |
Destructor
Definition at line 90 of file FVSelectionByBox.cpp.
◆ FVSelectionByBox() [4/4]
mimmo::FVSelectionByBox::FVSelectionByBox | ( | const FVSelectionByBox & | other | ) |
Copy Constructor
Definition at line 95 of file FVSelectionByBox.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::BaseManipulation.
Definition at line 163 of file FVSelectionByBox.cpp.
◆ buildPorts()
|
protectedvirtual |
It builds the input/output ports of the object.
Reimplemented from mimmo::FVGenericSelection.
Definition at line 119 of file FVSelectionByBox.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::BaseManipulation.
Definition at line 265 of file FVSelectionByBox.cpp.
◆ operator=()
FVSelectionByBox & mimmo::FVSelectionByBox::operator= | ( | FVSelectionByBox | other | ) |
Copy operator - CAS idiom
Definition at line 100 of file FVSelectionByBox.cpp.
◆ setOrigin()
void mimmo::FVSelectionByBox::setOrigin | ( | darray3E | origin | ) |
Set origin of the box. The origin is meant as the box baricenter.
- Parameters
-
[in] origin new origin point
Definition at line 136 of file FVSelectionByBox.cpp.
◆ setRefSystem()
void mimmo::FVSelectionByBox::setRefSystem | ( | dmatrix33E | axes | ) |
Set new axis orientation of the local reference system
- Parameters
-
[in] axes
Definition at line 153 of file FVSelectionByBox.cpp.
◆ setSpan()
void mimmo::FVSelectionByBox::setSpan | ( | darray3E | span | ) |
Set span of the box according to its local reference system of axes
- Parameters
-
[in] span
Definition at line 144 of file FVSelectionByBox.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 FVSelectionByBox object
Definition at line 110 of file FVSelectionByBox.cpp.
The documentation for this class was generated from the following files:
- src/geohandlers/FVMeshSelection.hpp
- src/geohandlers/FVSelectionByBox.cpp