39 Module(std::string name =
"default");
74 bool attachField(
FBase* field, std::string name, std::string desc,
bool autoDestroy =
true)
override;
149 std::string(
"Ancestor") + std::string(
"(s)"),
virtual void updateImpl()
SceneGraph * getSceneGraph()
void setName(std::string name)
virtual bool validateOutputs()
virtual bool allowImported()
MultipleModulePort< Module > mAncestors
virtual void setParentNode(Node *node)
Set the parent node.
virtual std::string getModuleType()
virtual void preprocess()
virtual bool allowExported()
std::vector< ModulePort * > mExportModules
void setUpdateAlways(bool b)
Set the update strategy for the module.
virtual void postprocess()
virtual bool initializeImpl()
bool appendExportModule(ModulePort *nodePort)
bool isInputComplete()
Check the completeness of input fields.
bool connect(ModulePort *nPort)
std::string getName() override
virtual void updateStarted()
Two functions called at the beginning and end of update() used for debug.
bool addModulePort(ModulePort *port)
Module(std::string name="default")
std::vector< ModulePort * > & getExportModules()
std::vector< ModulePort * > & getImportModules()
std::vector< ModulePort * > mImportModules
bool removeExportModule(ModulePort *nodePort)
virtual bool requireUpdate()
DEF_VAR(bool, ForceUpdate, false, "")
std::string m_module_name
bool disconnect(ModulePort *nPort)
virtual void updateEnded()
virtual bool validateInputs()
MultipleModulePort< Module > * importModules()
Used to ensure modules can be executed in the correct order.
bool attachField(FBase *field, std::string name, std::string desc, bool autoDestroy=true) override
Attach a field to Base.
virtual bool captionVisible()
Whether to hide the caption in the GUI.
This is an implementation of AdditiveCCD based on peridyno.