This shell class will be passed into the opd editor plugin to add in new components.
More...
Public Member Functions |
| | DtEditorExtensionInterface () |
| virtual | ~DtEditorExtensionInterface () |
| virtual void | addController (const char *controllerName, const char *descriptorName, DtComponentDescriptorCreatorFcn fcn=NULL)=0 |
| | Use to add a new controller, sensor or actuator to the possible items that can be added to an .ope file.
|
| virtual void | addSensor (const char *sensorName, const char *descriptorName, DtComponentDescriptorCreatorFcn fcn=NULL)=0 |
| virtual void | addActuator (const char *actuatorName, const char *descriptorName, DtComponentDescriptorCreatorFcn fcn=NULL)=0 |
| virtual void | addParameterType (const char *parameter, const char *parameterLike, DtSimObjectParametersCreatorFcn fcn)=0 |
| | The parameterLike value is the parameter this parameter type most closely matches of the exising parameter types (i.e.
|
| virtual void | addUserExtentsion (const DtString &type, DtVrfSRUserExtensionCreatorFcn fcn)=0 |
| | Add a creator for user extension SR.
|
| virtual void | addUiElement (const char *elementContextBlock, const char *parameter, const char *placeNear, bool after=true)=0 |
| | Used only for the entity editor, adds the ui element after (or before) the specified readerWriterItem.
|
| virtual DtTMApplication * | app ()=0 |
| | Returns a pointer to the application object.
|
This shell class will be passed into the opd editor plugin to add in new components.
| virtual void DtEditorExtensionInterface::addUiElement |
( |
const char * |
elementContextBlock, |
|
|
const char * |
parameter, |
|
|
const char * |
placeNear, |
|
|
bool |
after = true |
|
) |
| |
|
pure virtual |
Used only for the entity editor, adds the ui element after (or before) the specified readerWriterItem.
Note the context block is as if it were put into the entityEditorUi.mtl file. For example:
(item-component (reader-writer-name "embarkation-controller") (component-type "embarkation-controller") (parameter-type "embarkation-descriptor") (category "controllers") (title "Can Embark") (automatically-add False) (tool-tip "Allow entity to embark onto other entities.") )
The parameter is the parameter block to put this context block into. If NULL (or empty string), puts it into all blocks. The paremeter block can also be a semi-colon list to place it into multiple blocks