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

#include <UniformGrid.h>

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

Public Types

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

 UniformGrid3D ()
 
 ~UniformGrid3D ()
 
 UniformGrid3D ()
 
 ~UniformGrid3D ()
 
float spacing ()
 
dyno::Vec3f orgin ()
 
uint32_t nx ()
 
uint32_t ny ()
 
uint32_t nz ()
 
uint32_t totalGridSize ()
 
void setNx (uint32_t nx)
 
void setNy (uint32_t ny)
 
void setNz (uint32_t nz)
 
void setSpacing (float s)
 
void setOrigin (dyno::Vec3f pos)
 
GridInfo getGridInfo ()
 
- 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 ()
 

Private Attributes

DArray3D< Coordm_coords
 
float mSpacing
 
dyno::Vec3f mOrigin
 
dyno::Vec3u mDimension
 

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.
 
- Protected Member Functions inherited from dyno::TopologyModule
virtual void updateTopology ()
 
- 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::UniformGrid3D< TDataType >

Definition at line 7 of file UniformGrid.h.

Member Typedef Documentation

◆ Coord

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

Definition at line 11 of file UniformGrid.h.

◆ Real

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

Definition at line 10 of file UniformGrid.h.

Constructor & Destructor Documentation

◆ UniformGrid3D() [1/2]

template<typename TDataType>
dyno::UniformGrid3D< TDataType >::UniformGrid3D ( )

Definition at line 9 of file UniformGrid.cpp.

◆ ~UniformGrid3D() [1/2]

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

Definition at line 15 of file UniformGrid.cpp.

◆ UniformGrid3D() [2/2]

template<typename TDataType>
dyno::UniformGrid3D< TDataType >::UniformGrid3D ( )

◆ ~UniformGrid3D() [2/2]

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

Member Function Documentation

◆ getGridInfo()

template<typename TDataType>
GridInfo dyno::UniformGrid3D< TDataType >::getGridInfo ( )

Definition at line 15 of file UniformGrid.cpp.

◆ nx()

template<typename TDataType>
uint32_t dyno::UniformGrid3D< TDataType >::nx ( )
inline

Definition at line 29 of file UniformGrid.h.

Here is the caller graph for this function:

◆ ny()

template<typename TDataType>
uint32_t dyno::UniformGrid3D< TDataType >::ny ( )
inline

Definition at line 30 of file UniformGrid.h.

Here is the caller graph for this function:

◆ nz()

template<typename TDataType>
uint32_t dyno::UniformGrid3D< TDataType >::nz ( )
inline

Definition at line 31 of file UniformGrid.h.

Here is the caller graph for this function:

◆ orgin()

template<typename TDataType>
dyno::Vec3f dyno::UniformGrid3D< TDataType >::orgin ( )
inline

Definition at line 27 of file UniformGrid.h.

◆ setNx()

template<typename TDataType>
void dyno::UniformGrid3D< TDataType >::setNx ( uint32_t nx)
inline

Definition at line 37 of file UniformGrid.h.

Here is the call graph for this function:

◆ setNy()

template<typename TDataType>
void dyno::UniformGrid3D< TDataType >::setNy ( uint32_t ny)
inline

Definition at line 38 of file UniformGrid.h.

Here is the call graph for this function:

◆ setNz()

template<typename TDataType>
void dyno::UniformGrid3D< TDataType >::setNz ( uint32_t nz)
inline

Definition at line 39 of file UniformGrid.h.

Here is the call graph for this function:

◆ setOrigin()

template<typename TDataType>
void dyno::UniformGrid3D< TDataType >::setOrigin ( dyno::Vec3f pos)
inline

Definition at line 42 of file UniformGrid.h.

◆ setSpacing()

template<typename TDataType>
void dyno::UniformGrid3D< TDataType >::setSpacing ( float s)
inline

Definition at line 41 of file UniformGrid.h.

◆ spacing()

template<typename TDataType>
float dyno::UniformGrid3D< TDataType >::spacing ( )
inline

Definition at line 25 of file UniformGrid.h.

◆ totalGridSize()

template<typename TDataType>
uint32_t dyno::UniformGrid3D< TDataType >::totalGridSize ( )
inline

Definition at line 33 of file UniformGrid.h.

Member Data Documentation

◆ m_coords

template<typename TDataType>
DArray3D<Coord> dyno::UniformGrid3D< TDataType >::m_coords
private

Definition at line 17 of file UniformGrid.h.

◆ mDimension

template<typename TDataType>
dyno::Vec3u dyno::UniformGrid3D< TDataType >::mDimension
private

Definition at line 50 of file UniformGrid.h.

◆ mOrigin

template<typename TDataType>
dyno::Vec3f dyno::UniformGrid3D< TDataType >::mOrigin
private

Definition at line 49 of file UniformGrid.h.

◆ mSpacing

template<typename TDataType>
float dyno::UniformGrid3D< TDataType >::mSpacing
private

Definition at line 47 of file UniformGrid.h.


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