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

#include <HeightField.h>

Inheritance diagram for dyno::HeightField< TDataType >:
Collaboration diagram for dyno::HeightField< 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

 HeightField ()
 
 ~HeightField () override
 
void copyFrom (HeightField< TDataType > &hf)
 
void scale (Real s)
 
void scale (Coord s)
 
void translate (Coord t)
 
void setExtents (uint nx, uint ny)
 
Real getGridSpacing ()
 
void setGridSpacing (Real h)
 
Coord getOrigin ()
 
void setOrigin (Coord p)
 
uint width ()
 
uint height ()
 
DArray2D< Coord > & getDisplacement ()
 
DArray2D< Real > & calculateHeightField ()
 
- 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 Attributes

Coord mOrigin
 
Real mGridSpacing
 
DArray2D< CoordmDisplacement
 
DArray2D< RealmHeights
 
- Protected Attributes inherited from dyno::OBase
std::vector< FBase * > fields_input
 
std::vector< FBase * > fields_output
 
std::vector< FBase * > fields_param
 

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 ()
 

Detailed Description

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

Definition at line 9 of file HeightField.h.

Member Typedef Documentation

◆ Coord

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

Definition at line 14 of file HeightField.h.

◆ Real

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

Definition at line 13 of file HeightField.h.

Constructor & Destructor Documentation

◆ HeightField()

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

◆ ~HeightField()

template<typename TDataType>
dyno::HeightField< TDataType >::~HeightField ( )
override

Member Function Documentation

◆ calculateHeightField()

template<typename TDataType>
DArray2D< Real > & dyno::HeightField< TDataType >::calculateHeightField ( )

◆ copyFrom()

template<typename TDataType>
void dyno::HeightField< TDataType >::copyFrom ( HeightField< TDataType > & hf)
Here is the call graph for this function:

◆ getDisplacement()

template<typename TDataType>
DArray2D< Coord > & dyno::HeightField< TDataType >::getDisplacement ( )
inline

Definition at line 41 of file HeightField.h.

◆ getGridSpacing()

template<typename TDataType>
Real dyno::HeightField< TDataType >::getGridSpacing ( )
inline

Definition at line 32 of file HeightField.h.

◆ getOrigin()

template<typename TDataType>
Coord dyno::HeightField< TDataType >::getOrigin ( )
inline

Definition at line 35 of file HeightField.h.

◆ height()

template<typename TDataType>
uint dyno::HeightField< TDataType >::height ( )

◆ scale() [1/2]

template<typename TDataType>
void dyno::HeightField< TDataType >::scale ( Coord s)

◆ scale() [2/2]

template<typename TDataType>
void dyno::HeightField< TDataType >::scale ( Real s)

◆ setExtents()

template<typename TDataType>
void dyno::HeightField< TDataType >::setExtents ( uint nx,
uint ny )

◆ setGridSpacing()

template<typename TDataType>
void dyno::HeightField< TDataType >::setGridSpacing ( Real h)
inline

Definition at line 33 of file HeightField.h.

◆ setOrigin()

template<typename TDataType>
void dyno::HeightField< TDataType >::setOrigin ( Coord p)
inline

Definition at line 36 of file HeightField.h.

◆ translate()

template<typename TDataType>
void dyno::HeightField< TDataType >::translate ( Coord t)

◆ width()

template<typename TDataType>
uint dyno::HeightField< TDataType >::width ( )

Member Data Documentation

◆ mDisplacement

template<typename TDataType>
DArray2D<Coord> dyno::HeightField< TDataType >::mDisplacement
protected

Definition at line 50 of file HeightField.h.

◆ mGridSpacing

template<typename TDataType>
Real dyno::HeightField< TDataType >::mGridSpacing
protected

Definition at line 48 of file HeightField.h.

◆ mHeights

template<typename TDataType>
DArray2D<Real> dyno::HeightField< TDataType >::mHeights
protected

Definition at line 51 of file HeightField.h.

◆ mOrigin

template<typename TDataType>
Coord dyno::HeightField< TDataType >::mOrigin
protected

Definition at line 46 of file HeightField.h.


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