Skip to main content
#include <rocky_plugin_data.h> IRockyPluginData gathers custom module data entered manually through the Rocky UI. In order to appear on the Rocky UI, custom modules parameters must be specified in the Python file that defines the components of the module. An IRockyPluginData object is only available during the configuration step in ROCKY_PLUGIN_CONFIGURE.

Members

Public functions

Function get_model

Returns: An IRockyPluginDataEntry object that gives access to the values entered through the Rocky UI for all parameters in the model section of the module. These parameters are displayed in the [Data Editors] panel when the module is selected in the data tree. Return type: IRockyPluginDataEntry

Function has_material_interaction_data

Returns: True if there is custom material interaction data defined for the module, false otherwise. Return type: bool

Function get_number_material_interactions

Returns: The total number of material interactions that it is possible to define with the current materials defined in the Rocky project. Return type: int

Function get_material_interaction_data

Returns: An IRockyPluginDataEntry object that gives access to the values entered through the Rocky UI, if they exist, for all parameters defined in the material interactions section of the module. Parameters:
  • index: The index that uniquely identifies the specific material interaction whose data must be retrieved.
Parameters:
  • int index
Return type: IRockyPluginDataEntry

Function has_geometry_data

Returns: True if there is geometry data defined for the module, false otherwise. Return type: bool

Function get_number_geometries

Returns: The total number of geometries (boundaries) in the project. Return type: int

Function get_geometry_data

Returns: An IRockyPluginDataEntry object that gives access to the values entered through the Rocky UI, if they exist, for all parameters associated specifically to the module defined in the geometry (boundaries) section. Parameters:
  • index: The index that uniquely identifies the specific geometry whose data must be retrieved.
Parameters:
  • int index
Return type: IRockyPluginDataEntry

Function has_particle_group_data

Returns: True if there is particle group data defined for the module, false otherwise. Return type: bool

Function get_number_particle_groups

Returns: The total number of particle groups defined in the project. Return type: int

Function get_particle_group_data

Returns: An IRockyPluginDataEntry object that gives access to the values entered through the Rocky UI, if they exist, for all parameters associated specifically to the module defined in the particle group section. Parameters:
  • index: The index that uniquely identifies the specific particle group whose data must be retrieved.
Parameters:
  • int index
Return type: IRockyPluginDataEntry

Function has_material_data

Returns: True if there is any material property data defined for the module, false otherwise. Return type: bool

Function get_number_materials

Returns: The total number of materials defined in the project. Return type: int

Function get_material_data

Returns: An IRockyPluginDataEntry object that gives access to the values entered through the Rocky UI, if they exist, for all parameters associated specifically to the module defined in the material section. Parameters:
  • index: The index that uniquely identifies the specific material whose data must be retrieved.
Parameters:
  • int index
Return type: IRockyPluginDataEntry