PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::HexahedronSet< TDataType > Class Template Reference

#include <HexahedronSet.h>

Inheritance diagram for dyno::HexahedronSet< TDataType >:
Collaboration diagram for dyno::HexahedronSet< TDataType >:

Public Types

typedef TDataType::Real Real
 
typedef TDataType::Coord Coord
 
typedef TopologyModule::Quad Quad
 
typedef TopologyModule::Hexahedron Hexahedron
 
- Public Types inherited from dyno::QuadSet< TDataType >
typedef TDataType::Real Real
 
typedef TDataType::Coord Coord
 
typedef TopologyModule::Quad Quad
 
- Public Types inherited from dyno::EdgeSet< TDataType >
typedef TDataType::Real Real
 
typedef TDataType::Coord Coord
 
typedef TopologyModule::Edge Edge
 
- Public Types inherited from dyno::PointSet< TDataType >
typedef TDataType::Real Real
 
typedef TDataType::Coord Coord
 
- Public Types inherited from dyno::TopologyModule
typedef PointType Point
 
typedef VectorND< PointType, 2 > Edge
 
typedef Vector< PointType, 3 > Triangle
 
typedef VectorND< PointType, 4 > Quad
 
typedef VectorND< PointType, 4 > Tetrahedron
 
typedef VectorND< PointType, 5 > Pyramid
 
typedef VectorND< PointType, 6 > Pentahedron
 
typedef VectorND< PointType, 8 > Hexahedron
 
typedef VectorND< PointType, 2 > Edg2Tri
 
typedef VectorND< PointType, 3 > Tri2Edg
 
typedef VectorND< PointType, 2 > Edg2Quad
 
typedef VectorND< PointType, 4 > Quad2Edg
 
typedef VectorND< PointType, 2 > Tri2Tet
 
typedef VectorND< PointType, 4 > Tet2Tri
 
typedef VectorND< PointType, 2 > Tri2Quad
 
typedef VectorND< PointType, 2 > Quad2Hex
 
typedef VectorND< PointType, 2 > Edg2Hex
 
typedef VectorND< PointType, 2 > Edg2Poly
 
- Public Types inherited from dyno::OBase
typedef std::vector< FBase * > FieldVector
 
typedef std::map< FieldID, FBase * > FieldMap
 

Public Member Functions

 HexahedronSet ()
 
 ~HexahedronSet ()
 
void setHexahedrons (std::vector< Hexahedron > &hexahedrons)
 
void setHexahedrons (DArray< Hexahedron > &hexahedrons)
 
DArray< Hexahedron > & getHexahedrons ()
 
DArray<::dyno::TopologyModule::Tri2Tet > & getQua2Hex ()
 
DArrayList< int > & getVer2Hex ()
 
void getVolume (DArray< Real > &volume)
 
void copyFrom (HexahedronSet< TDataType > hexSet)
 
- Public Member Functions inherited from dyno::QuadSet< TDataType >
 QuadSet ()
 
 ~QuadSet ()
 
DArray< Quad > & getQuads ()
 
void setQuads (std::vector< Quad > &quads)
 
void setQuads (DArray< Quad > &quads)
 
DArrayList< int > & getVertex2Quads ()
 
void copyFrom (QuadSet< TDataType > &quadSet)
 
bool isEmpty () override
 
 DEF_ARRAY_OUT (Coord, VertexNormal, DeviceType::GPU, "")
 
- Public Member Functions inherited from dyno::EdgeSet< TDataType >
 EdgeSet ()
 
 ~EdgeSet () override
 
void setEdges (std::vector< Edge > &edges)
 
void setEdges (DArray< Edge > &edges)
 
void requestPointNeighbors (DArrayList< int > &lists)
 Request the neighboring ids of each point according to the mesh topology Be sure update() is called as long as the topology is changed.
 
DArray< Edge > & getEdges ()
 Get all edges with each one containing the indices of two edge ends.
 
DArrayList< int > & vertex2Edge ()
 Get the Ver2 Edge object.
 
void copyFrom (EdgeSet< TDataType > &edgeSet)
 
void clear () override
 
void loadSmeshFile (std::string filename)
 
 EdgeSet ()
 
 ~EdgeSet () override
 
void setEdges (const DArray< Edge > &edges)
 
void setEdges (const std::vector< Edge > &edges)
 
DArray< Edge > & getEdges ()
 
void copyFrom (EdgeSet &es)
 
- Public Member Functions inherited from dyno::PointSet< TDataType >
 PointSet ()
 
 ~PointSet () override
 
void copyFrom (PointSet< TDataType > &pointSet)
 
void setPoints (const std::vector< Coord > &pos)
 
void setPoints (const DArray< Coord > &pos)
 
void setSize (int size)
 
int getPointSize ()
 
void requestBoundingBox (Coord &lo, Coord &hi)
 Return the lower and upper bounds for all points.
 
void scale (const Real s)
 
void scale (const Coord s)
 
void translate (const Coord t)
 
virtual void rotate (const Coord angle)
 
virtual void rotate (const Quat< Real > q)
 
void loadObjFile (std::string filename)
 
DArray< Coord > & getPoints ()
 Return the array of points.
 
 PointSet ()
 
 ~PointSet () override
 
DArray< Vec3f > & getPoints ()
 
void setPoints (std::vector< Vec3f > &points)
 
void setPoints (const DArray< Vec3f > &points)
 
void clear ()
 
- Public Member Functions inherited from dyno::TopologyModule
 TopologyModule ()
 
 ~TopologyModule () override
 
virtual int getDOF ()
 
void tagAsChanged ()
 
void tagAsUnchanged ()
 
bool isTopologyChanged ()
 
void update ()
 
- Public Member Functions inherited from dyno::OBase
 OBase ()
 
 ~OBase () override
 
virtual std::string caption ()
 Return the caption.
 
virtual bool captionVisible ()
 Whether to hide the caption in the GUI.
 
virtual std::string description ()
 Return a description for the node or module, override this function to support user-defined description.
 
virtual std::string getName ()
 
bool addField (FBase *data)
 Add a field to Base FieldID will be set to the name of Field by default.
 
bool addField (FieldID name, FBase *data)
 Add a field to Base.
 
bool addFieldAlias (FieldID name, FBase *data)
 
bool addFieldAlias (FieldID name, FBase *data, FieldMap &fieldAlias)
 
bool findField (FBase *data)
 Find a field by its pointer.
 
bool findFieldAlias (const FieldID name)
 Find a field by its name.
 
bool findFieldAlias (const FieldID name, FieldMap &fieldAlias)
 Find a field in fieldAlias by its name This function is typically called by other functions.
 
bool removeField (FBase *data)
 Remove a field by its pointer.
 
bool removeFieldAlias (const FieldID name)
 Remove a field by its name.
 
bool removeFieldAlias (const FieldID name, FieldMap &fieldAlias)
 
FBasegetField (const FieldID name)
 Return a field by its name.
 
std::vector< FBase * > & getAllFields ()
 
virtual bool attachField (FBase *field, std::string name, std::string desc, bool autoDestroy=true)
 Attach a field to Base.
 
template<typename T>
TgetField (FieldID name)
 
bool isAllFieldsReady ()
 Check the completeness of all required fields.
 
std::vector< FieldIDgetFieldAlias (FBase *data)
 
int getFieldAliasCount (FBase *data)
 
void setBlockCoord (float x, float y)
 
float bx ()
 
float by ()
 
bool findInputField (FBase *field)
 
bool addInputField (FBase *field)
 
bool removeInputField (FBase *field)
 
std::vector< FBase * > & getInputFields ()
 
bool findOutputField (FBase *field)
 
bool addOutputField (FBase *field)
 
bool addToOutput (FBase *field)
 
bool removeOutputField (FBase *field)
 
bool removeFromOutput (FBase *field)
 
std::vector< FBase * > & getOutputFields ()
 
bool findParameter (FBase *field)
 
bool addParameter (FBase *field)
 
bool removeParameter (FBase *field)
 
std::vector< FBase * > & getParameters ()
 
- Public Member Functions inherited from dyno::Object
 Object ()
 
virtual ~Object ()
 
ObjectId objectId ()
 

Protected Member Functions

void updateQuads () override
 
- Protected Member Functions inherited from dyno::QuadSet< TDataType >
void updateTopology () override
 
void updateEdges () override
 
void updateVertexNormal ()
 

Private Attributes

DArray<::dyno::TopologyModule::Hexahedronm_hexahedrons
 
DArray<::dyno::TopologyModule::Quad2Hexquad2Hex
 
DArrayList< int > m_ver2Hex
 

Additional Inherited Members

- Static Public Member Functions inherited from dyno::Object
static bool registerClass (ClassInfo *ci)
 
static ObjectcreateObject (std::string name)
 
static std::map< std::string, ClassInfo * > * getClassMap ()
 
static ObjectId baseId ()
 Base Id.
 
- Public Attributes inherited from dyno::EdgeSet< TDataType >
DArray< EdgemEdgeIndex
 
- Public Attributes inherited from dyno::PointSet< TDataType >
DArray< Vec3fmPoints
 
- Protected Attributes inherited from dyno::EdgeSet< TDataType >
DArray< EdgemEdges
 
DArrayList< int > mVer2Edge
 
- Protected Attributes inherited from dyno::PointSet< TDataType >
DArray< CoordmCoords
 
- Protected Attributes inherited from dyno::OBase
std::vector< FBase * > fields_input
 
std::vector< FBase * > fields_output
 
std::vector< FBase * > fields_param
 

Detailed Description

template<typename TDataType>
class dyno::HexahedronSet< TDataType >

Definition at line 6 of file HexahedronSet.h.

Member Typedef Documentation

◆ Coord

template<typename TDataType>
typedef TDataType::Coord dyno::HexahedronSet< TDataType >::Coord

Definition at line 10 of file HexahedronSet.h.

◆ Hexahedron

template<typename TDataType>
typedef TopologyModule::Hexahedron dyno::HexahedronSet< TDataType >::Hexahedron

Definition at line 12 of file HexahedronSet.h.

◆ Quad

template<typename TDataType>
typedef TopologyModule::Quad dyno::HexahedronSet< TDataType >::Quad

Definition at line 11 of file HexahedronSet.h.

◆ Real

template<typename TDataType>
typedef TDataType::Real dyno::HexahedronSet< TDataType >::Real

Definition at line 9 of file HexahedronSet.h.

Constructor & Destructor Documentation

◆ HexahedronSet()

template<typename TDataType>
dyno::HexahedronSet< TDataType >::HexahedronSet ( )
Here is the caller graph for this function:

◆ ~HexahedronSet()

template<typename TDataType>
dyno::HexahedronSet< TDataType >::~HexahedronSet ( )

Member Function Documentation

◆ copyFrom()

template<typename TDataType>
void dyno::HexahedronSet< TDataType >::copyFrom ( HexahedronSet< TDataType > hexSet)
Here is the call graph for this function:

◆ getHexahedrons()

template<typename TDataType>
DArray< Hexahedron > & dyno::HexahedronSet< TDataType >::getHexahedrons ( )
inline

Definition at line 22 of file HexahedronSet.h.

◆ getQua2Hex()

template<typename TDataType>
DArray<::dyno::TopologyModule::Tri2Tet > & dyno::HexahedronSet< TDataType >::getQua2Hex ( )
inline

Definition at line 23 of file HexahedronSet.h.

◆ getVer2Hex()

template<typename TDataType>
DArrayList< int > & dyno::HexahedronSet< TDataType >::getVer2Hex ( )

◆ getVolume()

template<typename TDataType>
void dyno::HexahedronSet< TDataType >::getVolume ( DArray< Real > & volume)

◆ setHexahedrons() [1/2]

template<typename TDataType>
void dyno::HexahedronSet< TDataType >::setHexahedrons ( DArray< Hexahedron > & hexahedrons)

◆ setHexahedrons() [2/2]

template<typename TDataType>
void dyno::HexahedronSet< TDataType >::setHexahedrons ( std::vector< Hexahedron > & hexahedrons)

◆ updateQuads()

template<typename TDataType>
void dyno::HexahedronSet< TDataType >::updateQuads ( )
overrideprotectedvirtual

Reimplemented from dyno::QuadSet< TDataType >.

Member Data Documentation

◆ m_hexahedrons

template<typename TDataType>
DArray<::dyno::TopologyModule::Hexahedron> dyno::HexahedronSet< TDataType >::m_hexahedrons
private

Definition at line 35 of file HexahedronSet.h.

◆ m_ver2Hex

template<typename TDataType>
DArrayList<int> dyno::HexahedronSet< TDataType >::m_ver2Hex
private

Definition at line 37 of file HexahedronSet.h.

◆ quad2Hex

template<typename TDataType>
DArray<::dyno::TopologyModule::Quad2Hex> dyno::HexahedronSet< TDataType >::quad2Hex
private

Definition at line 36 of file HexahedronSet.h.


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