![]() |
PeriDyno 1.2.1
|
#include <OBase.h>


Public Types | |
| typedef std::vector< FBase * > | FieldVector |
| typedef std::map< FieldID, FBase * > | FieldMap |
Public Member Functions | |
| 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) |
| FBase * | getField (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> | |
| T * | getField (FieldID name) |
| bool | isAllFieldsReady () |
| Check the completeness of all required fields. | |
| std::vector< FieldID > | getFieldAlias (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 | |
| std::vector< FBase * > | fields_input |
| std::vector< FBase * > | fields_output |
| std::vector< FBase * > | fields_param |
Private Attributes | |
| float | block_x = 0.0f |
| float | block_y = 0.0f |
| FieldVector | m_field |
| FieldMap | m_fieldAlias |
Additional Inherited Members | |
Static Public Member Functions inherited from dyno::Object | |
| static bool | registerClass (ClassInfo *ci) |
| static Object * | createObject (std::string name) |
| static std::map< std::string, ClassInfo * > * | getClassMap () |
| static ObjectId | baseId () |
| Base Id. | |
| typedef std::map<FieldID, FBase*> dyno::OBase::FieldMap |
| typedef std::vector<FBase*> dyno::OBase::FieldVector |
|
inline |
| bool dyno::OBase::addField | ( | FBase * | data | ) |
| bool dyno::OBase::addInputField | ( | FBase * | field | ) |
| bool dyno::OBase::addOutputField | ( | FBase * | field | ) |
| bool dyno::OBase::addParameter | ( | FBase * | field | ) |
| bool dyno::OBase::addToOutput | ( | FBase * | field | ) |
|
virtual |
Attach a field to Base.
| field | Field pointer |
| name | Field name |
| desc | Field description |
| autoDestroy | The field will be destroyed by Base if true, otherwise, the field should be explicitly destroyed by its creator. |
Reimplemented in dyno::Module, dyno::Node, Module, and Node.
Definition at line 250 of file OBase.cpp.

|
virtual |
Return the caption.
Reimplemented in dyno::Add, dyno::CapsuleModel< TDataType >, dyno::ConeModel< TDataType >, dyno::CubeModel< TDataType >, dyno::CylinderModel< TDataType >, dyno::Divide, dyno::EditableMesh< TDataType >, dyno::ExtractEdgeSetFromPolygonSet< TDataType >, dyno::ExtractQaudSetFromPolygonSet< TDataType >, dyno::ExtractTriangleSetFromPolygonSet< TDataType >, dyno::GLInstanceVisualModule, dyno::GLInstanceVisualNode< TDataType >, dyno::GLPhotorealisticInstanceRender, dyno::GLPhotorealisticRender, dyno::GLSurfaceVisualModule, dyno::GLSurfaceVisualNode< TDataType >, dyno::GLWireframeVisualModule, dyno::Merge< TDataType >, dyno::MergeTriangleSet< TDataType >, dyno::Multiply, dyno::Outputs, dyno::PlaneModel< TDataType >, dyno::PolygonSetToTriangleSetModule< TDataType >, dyno::PolygonSetToTriangleSetNode< TDataType >, dyno::SphereModel< TDataType >, dyno::States, dyno::Subdivide< TDataType >, dyno::Subtract, dyno::TextureMeshToTriangleSet< TDataType >, and dyno::TextureMeshToTriangleSetNode< TDataType >.
Definition at line 19 of file OBase.cpp.

|
virtual |
Whether to hide the caption in the GUI.
Reimplemented in dyno::DataSource.
Definition at line 24 of file OBase.cpp.

|
virtual |
| bool dyno::OBase::findField | ( | FBase * | data | ) |
| bool dyno::OBase::findFieldAlias | ( | const FieldID | name | ) |
| bool dyno::OBase::findInputField | ( | FBase * | field | ) |
| bool dyno::OBase::findOutputField | ( | FBase * | field | ) |
| bool dyno::OBase::findParameter | ( | FBase * | field | ) |
| std::vector< FBase * > & dyno::OBase::getAllFields | ( | ) |
| std::vector< std::string > dyno::OBase::getFieldAlias | ( | FBase * | data | ) |
| int dyno::OBase::getFieldAliasCount | ( | FBase * | data | ) |
|
inline |
|
virtual |
Reimplemented in dyno::Module, dyno::Node, Module, and Node.
Definition at line 40 of file OBase.cpp.

|
inline |
|
inline |
| bool dyno::OBase::isAllFieldsReady | ( | ) |
| bool dyno::OBase::removeField | ( | FBase * | data | ) |
| bool dyno::OBase::removeFieldAlias | ( | const FieldID | name | ) |
| bool dyno::OBase::removeFromOutput | ( | FBase * | field | ) |
| bool dyno::OBase::removeInputField | ( | FBase * | field | ) |
| bool dyno::OBase::removeOutputField | ( | FBase * | field | ) |
| bool dyno::OBase::removeParameter | ( | FBase * | field | ) |
|
inline |
|
private |