![]() |
VR-Forces 4.10 Class Documentation
|
Logic class for the DtElementEditorWidget. More...

Public Member Functions | |
| DtElementEditorLogic (DtElementDefinitionTypeManager::ElementDefinitionType type, DtDe &de, DtElementEditorInterface *iface, DtPersistenceControlsInterface *persistenceControls, DtPage *page=0) | |
| CTOR. More... | |
| virtual | ~DtElementEditorLogic () |
| DTOR. More... | |
| void | selectElement (const DtUnicode &elementName, bool valid) |
| Populate the visualizer definitions for a element definition. More... | |
| virtual void | setElementRemoveAllowed (const DtUnicode &elementName) |
| Check if this element entity definition is being used by other systems (i.e. More... | |
| virtual void | checkIfModified () |
| check if the element definitions have changed since the start up More... | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. More... | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. More... | |
Protected Member Functions | |
| void | selectVisualizerDefinition (int index) |
| void | selectAttribute (int index, const std::string &attrName) |
| void | deselectAttribute (int index, const std::string &attrName) |
| void | refreshElementDefinitions () |
| Populate the element definitions. More... | |
| void | refreshVisualizerDefinitionView () |
| void | clearElementSelection () |
| Called to clear the element. More... | |
| void | setupModifiedEntitiesDialog () |
| Create map of modified entities, and open a Message Box displaying the list of modified entities. More... | |
| void | runThroughChildren (DtElementDefinitionNew *elem, std::map< std::string, std::string > &names) |
| Runs recursively through incoming elem defs and checks if they have children If so, run again through each child. More... | |
| void | addVisualizerDefinition () |
| void | removeVisualizerDefinition (int index) |
| void | deselectVisualizerDefinition (int index) |
| void | addElement (const DtUnicode &name) |
| void | removeElement () |
| void | renameElement (const DtUnicode &oldName, const DtUnicode &newName) |
| void | addAttributeRequested (int index) |
| void | removeAttribute (int index, const std::string &name) |
| void | removeLocalAttribute (int index, const std::string &name) |
| void | refreshAttribute (const DtUnicode &origin, int index, const std::string &name) |
| void | refreshModelSets () |
| void | refreshFileSaveTo () |
| Fill the file location dropdown bar with all file name in directory. More... | |
| void | changeFileLocation () |
| Changes the file location of the currently selected element to the file location currently displayed on the dropdown box. More... | |
| void | updateAttributeEditorInterface (int index, const std::string &name, DtVisualizerAttributeEditorInterface *iface) |
| void | changeModelSet (int index) |
| void | changeFileSaveTo (int index) |
| Update file location dropdown box when new definition is selected. More... | |
| void | changeFileFilter () |
| Filters out all definitions whose file names don't match the file name in the dropdown box. More... | |
| virtual void | on_import () |
| imports settings More... | |
| virtual void | on_restoreFactory () |
| restores factory settings More... | |
| virtual void | on_restoreStartup () |
| restores startup settings More... | |
| virtual void | on_export () |
| Starts export procedure by allowing user to select export file. More... | |
| virtual void | on_exportHier () |
| Starts export element definition hierarchy procedure by allowing user to select export file. More... | |
| virtual void | on_exportAll () |
| exports both hier and all leaf files More... | |
| virtual void | on_exportLeaves () |
| Starts export element definition leaf procedure by allowing user to select export file leaf = entity element with no children (bottom elements) More... | |
| virtual void | on_exportSelectedLeaves () |
| Starts export selected element definition leaf procedure by allowing user to select export file leaf = entity element with no children (bottom elements) More... | |
| virtual void | on_reloadFiles () |
| Adjusts what and how many files will be reloaded. More... | |
| virtual void | on_merge () |
| Starts merge procedure by allowing user to select merge file. More... | |
| virtual void | on_exportSelected () |
| Starts export preselected items procedure by allowing user to select export file. More... | |
| virtual void | on_importFilePathChosen (const std::string &filePath) |
| Replaces hierarchy with contents of file. More... | |
| virtual void | on_exportFilePathChosen (const std::string &filePath) |
| Saves hierarchy to file. More... | |
| virtual void | on_mergeFilePathChosen (const std::string &filePath) |
| Merges hierarchy from file. More... | |
| virtual void | on_reloadLeafFiles (const std::string &filePath) |
| Reloads all hier and leaf files in editor. More... | |
| virtual void | on_exportSelectedFilePathChosen (const std::string &filePath) |
| Saves selected hierarchy to file. More... | |
| virtual void | on_exportHierFilePathChosen (const std::string &filePath) |
| Saves hierarchy (but not leaf elements) to file. More... | |
| virtual void | on_exportLeafFilePathChosen (const std::string &filePath) |
| Saves leaf element (but not hierarchy) to file. More... | |
| virtual void | on_exportSelectedLeafFilePathChosen (const std::string &filePath) |
| Saves Selected leaf element (but not hierarchy) to file. More... | |
| virtual void | on_saveDefaults () |
| Save the hierarchy and leaves to default location (usually appData/definitions/Entity/) More... | |
| virtual void | on_copyVisualizerDefinition () |
| Copies the currently selected visualizer def. More... | |
| virtual void | on_pasteAndReplaceVisualizerDefinition () |
| Pastes the currently saved visualizer def to the currently selected element, replacing a matching vis def if one exists. More... | |
| virtual void | on_pasteAndAddVisualizerDefinition () |
| Pastes the currently saved visualizer def to the currently selected element, localizing its attributes. More... | |
| virtual void | on_clearVisualizerDefinitions () |
| Clears vector of all Visualizer Definitions currently stored. More... | |
| virtual bool | shouldDisableSave () |
| Should we disable the save button. More... | |
| virtual void | mapTypeToDirectoryPath (DtElementDefinitionTypeManager::ElementDefinitionType type) |
| map the ElementDefinitionType type to the correct folder path More... | |
| virtual void | slot_managerAboutToBeDeleted () |
| Called when the element definition manager this class represents is deleted. More... | |
| virtual DtElementDefinitionManager & | elementDefinitionManager () |
| Returns the element definition manager for the given manager type of this dialog. More... | |
Protected Attributes | |
| DtUnicode | mySelectedElement |
| unsigned int | mySelectedModelSet |
| unsigned int | mySelectedFileSaveTo |
| DtPage * | myPage |
| DtDe & | myDe |
| DtSignalConnectionManager | myConnections |
| DtSignalConnectionManager | myManagerConnections |
| DtElementDefinitionManager * | myManager |
| int | myManagerType |
| DtElementEditorInterface * | myInterface |
| DtPersistenceControlsInterface * | myPersistenceControls |
| std::string | myDirectoryPath |
| std::string | pathofSelectedModel |
| std::vector< std::string > | myNewList |
| std::vector< std::string > | myVisualList |
| DtVisualizerDefinition * | myCopiedVisualizerDefinition |
| std::vector < DtVisualizerDefinition * > | myCopiedVisDefs |
| std::vector< std::string > | myListOfCopiedVisDefs |
| bool | myAdjustDropDown |
| int | myVisualizerIndex |
Private Member Functions | |
| DtElementEditorLogic () | |
| Default Constructor. More... | |
| DtElementEditorLogic (const DtElementEditorLogic ©) | |
| Copy Constructor Not implemented. More... | |
| DtElementEditorLogic & | operator= (const DtElementEditorLogic &) |
| Assignment Operator Not implemented. More... | |
Logic class for the DtElementEditorWidget.
| makVrv::DtElementEditorLogic::DtElementEditorLogic | ( | DtElementDefinitionTypeManager::ElementDefinitionType | type, |
| DtDe & | de, | ||
| DtElementEditorInterface * | iface, | ||
| DtPersistenceControlsInterface * | persistenceControls, | ||
| DtPage * | page = 0 |
||
| ) |
CTOR.
|
virtual |
DTOR.
|
private |
Default Constructor.
|
private |
Copy Constructor Not implemented.
|
private |
Assignment Operator Not implemented.
Populate the visualizer definitions for a element definition.
| elementName | The definition of the selected element. |
| valid | Whether the element is valid. |
|
virtual |
Check if this element entity definition is being used by other systems (i.e.
entity type maps)
|
virtual |
check if the element definitions have changed since the start up
|
protected |
|
protected |
|
protected |
|
protected |
Populate the element definitions.
|
protected |
|
protected |
Called to clear the element.
|
protected |
Create map of modified entities, and open a Message Box displaying the list of modified entities.
|
protected |
Runs recursively through incoming elem defs and checks if they have children If so, run again through each child.
If not, add child to modified names map
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Fill the file location dropdown bar with all file name in directory.
|
protected |
Changes the file location of the currently selected element to the file location currently displayed on the dropdown box.
|
protected |
|
protected |
|
protected |
Update file location dropdown box when new definition is selected.
|
protected |
Filters out all definitions whose file names don't match the file name in the dropdown box.
|
protectedvirtual |
imports settings
|
protectedvirtual |
restores factory settings
|
protectedvirtual |
restores startup settings
|
protectedvirtual |
Starts export procedure by allowing user to select export file.
|
protectedvirtual |
Starts export element definition hierarchy procedure by allowing user to select export file.
|
protectedvirtual |
exports both hier and all leaf files
|
protectedvirtual |
Starts export element definition leaf procedure by allowing user to select export file leaf = entity element with no children (bottom elements)
|
protectedvirtual |
Starts export selected element definition leaf procedure by allowing user to select export file leaf = entity element with no children (bottom elements)
|
protectedvirtual |
Adjusts what and how many files will be reloaded.
|
protectedvirtual |
Starts merge procedure by allowing user to select merge file.
|
protectedvirtual |
Starts export preselected items procedure by allowing user to select export file.
|
protectedvirtual |
Replaces hierarchy with contents of file.
|
protectedvirtual |
Saves hierarchy to file.
|
protectedvirtual |
Merges hierarchy from file.
|
protectedvirtual |
Reloads all hier and leaf files in editor.
|
protectedvirtual |
Saves selected hierarchy to file.
|
protectedvirtual |
Saves hierarchy (but not leaf elements) to file.
|
protectedvirtual |
Saves leaf element (but not hierarchy) to file.
|
protectedvirtual |
Saves Selected leaf element (but not hierarchy) to file.
|
protectedvirtual |
Save the hierarchy and leaves to default location (usually appData/definitions/Entity/)
|
protectedvirtual |
Copies the currently selected visualizer def.
|
protectedvirtual |
Pastes the currently saved visualizer def to the currently selected element, replacing a matching vis def if one exists.
|
protectedvirtual |
Pastes the currently saved visualizer def to the currently selected element, localizing its attributes.
|
protectedvirtual |
Clears vector of all Visualizer Definitions currently stored.
|
protectedvirtual |
Should we disable the save button.
|
protectedvirtual |
map the ElementDefinitionType type to the correct folder path
|
protectedvirtual |
Called when the element definition manager this class represents is deleted.
This will set the backup in the persistent controls to NULL as the backup is deleted when the manager is deleted
|
protectedvirtual |
Returns the element definition manager for the given manager type of this dialog.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |