OGS
FileIO::Gocad::GocadSplitNode Class Referencefinal

Detailed Description

Definition at line 121 of file GocadNode.h.

#include <GocadNode.h>

Inheritance diagram for FileIO::Gocad::GocadSplitNode:
[legend]
Collaboration diagram for FileIO::Gocad::GocadSplitNode:
[legend]

Public Member Functions

 GocadSplitNode (double const *const coords, std::size_t id, std::array< std::size_t, 3 > const &grid_coords, std::bitset< 8 > const &affected_cells, std::size_t layer_transition_idx)
 
std::array< std::size_t, 3 > const & getGridCoords () const
 
std::bitset< 8 > const & getAffectedCells () const
 
void transmitFaceDirections (GocadNode const &gocad_node)
 
- Public Member Functions inherited from FileIO::Gocad::GocadNode
 GocadNode (double const *const coords, std::size_t id, std::size_t layer_transition_idx)
 
 GocadNode ()=delete
 
 GocadNode (GocadNode const &src)=default
 
 GocadNode (GocadNode &&src)=default
 
GocadNodeoperator= (GocadNode &&rhs)=default
 
GocadNodeoperator= (GocadNode const &rhs)=default
 
 ~GocadNode () override=default
 
void setFaceSet (std::size_t face_set_number, std::size_t face_indicator)
 
bool isMemberOfFaceSet (std::size_t face_set_number) const
 
bool isMemberOfAnyFaceSet () const
 
void resetID (std::size_t id)
 
std::bitset< 128 > const & getFaceSetMembership () const
 
FaceDirection getFaceDirection (std::size_t const face_set_number) const
 
std::size_t getLayerTransitionIndex () const
 
- Public Member Functions inherited from MeshLib::Node
 Node (const double coords[3], std::size_t id=std::numeric_limits< std::size_t >::max())
 Constructor using a coordinate array.
 
 Node (std::array< double, 3 > const &coords, std::size_t id=std::numeric_limits< std::size_t >::max())
 Constructor using a coordinate array.
 
 Node (double x, double y, double z, std::size_t id=std::numeric_limits< std::size_t >::max())
 Constructor using single coordinates.
 
 Node (const Node &node)
 Copy constructor.
 
- Public Member Functions inherited from MathLib::Point3dWithID
 Point3dWithID (double x0, double x1, double x2, std::size_t id=std::numeric_limits< std::size_t >::max())
 
 Point3dWithID (std::array< double, 3 > const &coords, std::size_t id=std::numeric_limits< std::size_t >::max())
 
 Point3dWithID (MathLib::Point3d const &pnt, std::size_t id=std::numeric_limits< std::size_t >::max())
 
 Point3dWithID ()
 
std::size_t getID () const
 
- Public Member Functions inherited from MathLib::Point3d
 Point3d ()
 
 Point3d (std::array< double, 3 > x)
 
virtual ~Point3d ()=default
 
 Point3d (Point3d const &)=default
 
Point3doperator= (Point3d const &)=default
 
const double & operator[] (std::size_t idx) const
 const access operator The access to the point coordinates is like the access to a field. Code example:
 
double & operator[] (std::size_t idx)
 access operator (see book Effektiv C++ programmieren - subsection 1.3.2 ).
 
const double * data () const
 
double * data ()
 
Eigen::Vector3d const & asEigenVector3d () const
 
Eigen::Vector3d & asEigenVector3d ()
 

Private Attributes

std::array< std::size_t, 3 > _grid_coords
 
std::bitset< 8 > const _affected_cells
 

Additional Inherited Members

- Protected Member Functions inherited from MathLib::Point3dWithID
void setID (std::size_t id)
 Sets the ID of a node to the given value.
 
- Protected Attributes inherited from FileIO::Gocad::GocadNode
std::vector< std::pair< std::size_t, FaceDirection > > _face_directions
 

Constructor & Destructor Documentation

◆ GocadSplitNode()

FileIO::Gocad::GocadSplitNode::GocadSplitNode ( double const *const coords,
std::size_t id,
std::array< std::size_t, 3 > const & grid_coords,
std::bitset< 8 > const & affected_cells,
std::size_t layer_transition_idx )
inline

Definition at line 124 of file GocadNode.h.

128 : GocadNode(coords, id, layer_transition_idx),
129 _grid_coords(grid_coords),
130 _affected_cells(affected_cells)
131 {
132 }
std::array< std::size_t, 3 > _grid_coords
Definition GocadNode.h:148
std::bitset< 8 > const _affected_cells
Definition GocadNode.h:149

Member Function Documentation

◆ getAffectedCells()

std::bitset< 8 > const & FileIO::Gocad::GocadSplitNode::getAffectedCells ( ) const
inline

Definition at line 138 of file GocadNode.h.

139 {
140 return _affected_cells;
141 }

References _affected_cells.

◆ getGridCoords()

std::array< std::size_t, 3 > const & FileIO::Gocad::GocadSplitNode::getGridCoords ( ) const
inline

Definition at line 134 of file GocadNode.h.

135 {
136 return _grid_coords;
137 }

References _grid_coords.

◆ transmitFaceDirections()

void FileIO::Gocad::GocadSplitNode::transmitFaceDirections ( GocadNode const & gocad_node)
inline

Definition at line 142 of file GocadNode.h.

143 {
144 _face_directions = gocad_node._face_directions;
145 }
std::vector< std::pair< std::size_t, FaceDirection > > _face_directions
Definition GocadNode.h:112

References FileIO::Gocad::GocadNode::_face_directions.

Member Data Documentation

◆ _affected_cells

std::bitset<8> const FileIO::Gocad::GocadSplitNode::_affected_cells
private

Definition at line 149 of file GocadNode.h.

Referenced by getAffectedCells().

◆ _grid_coords

std::array<std::size_t, 3> FileIO::Gocad::GocadSplitNode::_grid_coords
private

Definition at line 148 of file GocadNode.h.

Referenced by getGridCoords().


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