PeriDyno 0.8.2
Public Types | Public Member Functions | Protected Member Functions | List of all members
dyno::GmshGenerator< TDataType > Class Template Reference

#include <GmshGenerator.h>

Inheritance diagram for dyno::GmshGenerator< TDataType >:
Inheritance graph
[legend]
Collaboration diagram for dyno::GmshGenerator< TDataType >:
Collaboration graph
[legend]

Public Types

typedef TDataType::Real Real
 
typedef TDataType::Coord Coord
 
- Public Types inherited from dyno::Node
template<class T >
using SPtr = std::shared_ptr< T >
 
- Public Types inherited from dyno::OBase
typedef std::vector< FBase * > FieldVector
 
typedef std::map< FieldID, FBase * > FieldMap
 

Public Member Functions

 GmshGenerator ()
 
virtual ~GmshGenerator ()
 
 DEF_INSTANCE_OUT (TriangleSet< TDataType >, Gmsh, "")
 
- Public Member Functions inherited from dyno::Node
 Node (std::string name="default")
 
 ~Node () override
 
void setName (std::string name)
 
std::string getName () override
 
virtual std::string getNodeType ()
 
bool isControllable ()
 
void setControllable (bool con)
 
bool canExported ()
 
void allowExported (bool ex)
 To allow exporting the node. More...
 
virtual bool isActive ()
 Check the state of dynamics. More...
 
virtual void setActive (bool active)
 Set the state of dynamics. More...
 
virtual bool isVisible ()
 Check the visibility of context. More...
 
virtual void setVisible (bool visible)
 Set the visibility of context. More...
 
virtual Real getDt ()
 Simulation timestep. More...
 
void setDt (Real dt)
 
void setSceneGraph (SceneGraph *scn)
 
SceneGraphgetSceneGraph ()
 
std::vector< NodePort * > & getImportNodes ()
 
std::vector< NodePort * > & getExportNodes ()
 
bool addModule (std::shared_ptr< Module > module)
 Add a module to m_module_list and other special module lists. More...
 
bool deleteModule (std::shared_ptr< Module > module)
 
template<class TModule >
bool addModule (std::shared_ptr< TModule > tModule)
 Add a speical kind of module. More...
 
template<class TModule >
bool deleteModule (std::shared_ptr< TModule > tModule)
 
std::list< std::shared_ptr< Module > > & getModuleList ()
 
bool hasModule (std::string name)
 
std::shared_ptr< ModulegetModule (std::string name)
 Get a module by its name. More...
 
template<class TModule >
std::shared_ptr< TModule > getModule ()
 Get the Module by the module class name. More...
 
template<class TModule >
std::shared_ptr< TModule > getModule (std::string name)
 
std::shared_ptr< AnimationPipelineanimationPipeline ()
 
std::shared_ptr< GraphicsPipelinegraphicsPipeline ()
 
template<class TModule >
std::shared_ptr< TModule > addModule (std::string name)
 
void initialize ()
 Initialize all states, called before the node is first updated. More...
 
void update ()
 Called every time interval. More...
 
void updateGraphicsContext ()
 
void reset ()
 
virtual NBoundingBox boundingBox ()
 
bool connect (NodePort *nPort)
 
bool disconnect (NodePort *nPort)
 
bool attachField (FBase *field, std::string name, std::string desc, bool autoDestroy=true) override
 Attach a field to Node. More...
 
std::vector< NodePort * > & getAllNodePorts ()
 
uint sizeOfNodePorts ()
 
uint sizeOfImportNodes () const
 
uint sizeOfExportNodes () const
 
 DEF_VAR_STATE (Real, ElapsedTime, 0, "Elapsed Time")
 
 DEF_VAR_STATE (Real, TimeStep, Real(0.033), "Time step size")
 
 DEF_VAR_STATE (uint, FrameNumber, 0, "Frame number")
 
- Public Member Functions inherited from dyno::OBase
 OBase ()
 
 ~OBase () override
 
virtual std::string caption ()
 Return the caption. More...
 
virtual bool captionVisible ()
 Whether to hide the caption in the GUI. More...
 
virtual std::string description ()
 Return a description for the node or module, override this function to support user-defined description. More...
 
virtual std::string getName ()
 
bool addField (FBase *data)
 Add a field to Base FieldID will be set to the name of Field by default. More...
 
bool addField (FieldID name, FBase *data)
 Add a field to Base. More...
 
bool addFieldAlias (FieldID name, FBase *data)
 
bool addFieldAlias (FieldID name, FBase *data, FieldMap &fieldAlias)
 
bool findField (FBase *data)
 Find a field by its pointer. More...
 
bool findFieldAlias (const FieldID name)
 Find a field by its name. More...
 
bool findFieldAlias (const FieldID name, FieldMap &fieldAlias)
 Find a field in fieldAlias by its name This function is typically called by other functions. More...
 
bool removeField (FBase *data)
 Remove a field by its pointer. More...
 
bool removeFieldAlias (const FieldID name)
 Remove a field by its name. More...
 
bool removeFieldAlias (const FieldID name, FieldMap &fieldAlias)
 
FBasegetField (const FieldID name)
 Return a field by its name. More...
 
std::vector< FBase * > & getAllFields ()
 
virtual bool attachField (FBase *field, std::string name, std::string desc, bool autoDestroy=true)
 Attach a field to Base. More...
 
template<typename T >
TgetField (FieldID name)
 
bool isAllFieldsReady ()
 Check the completeness of all required fields. More...
 
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 resetStates () override
 
- Protected Member Functions inherited from dyno::Node
bool appendExportNode (NodePort *nodePort)
 
bool removeExportNode (NodePort *nodePort)
 
virtual void preUpdateStates ()
 
virtual void updateStates ()
 
virtual void postUpdateStates ()
 
virtual void updateTopology ()
 
virtual void resetStates ()
 
virtual bool validateInputs ()
 
void tick ()
 notify all state and output fields are updated More...
 

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. More...
 
- Public Attributes inherited from dyno::Node
std::string m_node_name
 
- 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::GmshGenerator< TDataType >

Definition at line 24 of file GmshGenerator.h.

Member Typedef Documentation

◆ Coord

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

Definition at line 29 of file GmshGenerator.h.

◆ Real

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

Definition at line 28 of file GmshGenerator.h.

Constructor & Destructor Documentation

◆ GmshGenerator()

template<typename TDataType >
dyno::GmshGenerator< TDataType >::GmshGenerator

Definition at line 9 of file GmshGenerator.cpp.

◆ ~GmshGenerator()

template<typename TDataType >
dyno::GmshGenerator< TDataType >::~GmshGenerator
virtual

Definition at line 15 of file GmshGenerator.cpp.

Member Function Documentation

◆ DEF_INSTANCE_OUT()

template<typename TDataType >
dyno::GmshGenerator< TDataType >::DEF_INSTANCE_OUT ( TriangleSet< TDataType >  ,
Gmsh  ,
""   
)

◆ resetStates()

template<typename TDataType >
void dyno::GmshGenerator< TDataType >::resetStates
overrideprotectedvirtual

Reimplemented from dyno::Node.

Definition at line 20 of file GmshGenerator.cpp.

Here is the call graph for this function:

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