VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Protected Types | Protected Slots | Protected Member Functions | Protected Attributes
DtScriptedObjectMovementEditor Class Reference

This class will allow for the adding, modifying or removing of scripted object files that will contain rules to move an object towards a target point. More...

Inheritance diagram for DtScriptedObjectMovementEditor:
Inheritance graph
[legend]

Public Member Functions

 DtScriptedObjectMovementEditor (makVrv::DtDe &de, bool precisionMode, QWidget *parent, const Qt::WindowFlags &flags=Qt::Tool)
 
virtual ~DtScriptedObjectMovementEditor ()
 

Public Attributes

QPushButtonmyOKButton
 
QPushButtonmyCancelButton
 
QLabelmyInstructions
 
QPushButtonmyAddScriptedObjectMovement
 
QPushButtonmyRemoveScriptedObjectMovement
 
QPushButtonmyRenameScriptedObjectMovement
 
QPushButtonmyAddNewMissile
 
QPushButtonmyAddNewFileConfiguration
 
QPushButtonmyAddNewMovementFile
 
QLabelmyScriptedMovementObjectsLabel
 
QComboBoxmyScriptedMovementObjects
 
QLabelmyDescriptionLabel
 
QLineEditmyDescription
 
QLabelmyCategoriesLabel
 
QPushButtonmyAddCategory
 
QPushButtonmyRemoveCategory
 
QListWidget * myCategories
 
QPushButtonmyAddPhase
 
QPushButtonmyRemovePhase
 
QLabelmyPhasesLabel
 
QComboBoxmyPhases
 
QGridLayout * myPhasesLayout
 
QWidget * myPhasesCanvas
 
QLabelmyMovementFileLabel
 
QComboBoxmyMovementFile
 
QLabelmyFormatLabel
 
QComboBoxmyFormat
 
QLabelmyMissileTypeLabel
 
QComboBoxmyMissileType
 
QLabelmyGroundClampTypeLabel
 
QComboBoxmyGroundClampType
 
QLabelmyCompletionRuleLabel
 
QComboBoxmyCompletionRule
 

Protected Types

typedef std::map< std::string,
DtScriptedMovementObject
ScriptedMovementObjectsMap
 

Protected Slots

virtual void onAddScriptedObjectMovement ()
 
virtual void onRemoveScriptedObjectMovement ()
 
virtual void onRenameScriptedObjectMovement ()
 
virtual void onSeletScriptedMovementObject ()
 
virtual void onGroundClampTypeChanged ()
 
virtual void onPhaseSelected ()
 
virtual void onDescriptionChanged ()
 
virtual void onAddCategory ()
 
virtual void onRemoveCategory ()
 
virtual void onCategorySelected ()
 
virtual void onCategoryChanged (QListWidgetItem *)
 
virtual void onAddNewMissile ()
 
virtual void onAddNewMovementFile ()
 
virtual void onAddNewFileConfiguration ()
 
virtual void onAddPhase ()
 Called to add a new phase to the configuration. More...
 
virtual void onRemovePhase ()
 Called to remove the selected phase from the configuration. More...
 
virtual void onPhaseChanged ()
 Called when the phase contents have changed. More...
 
virtual void onMissileTypeChanged ()
 Called when missile type is changed. More...
 
virtual std::string configurationThatMatches (const DtScriptedMovementFileConfiguration &, QString nameIfMissing)
 Return the configuration (from the configurations file) that matches the given configuration. More...
 

Protected Member Functions

virtual void accept ()
 Called when dialog is accepted. Write out all changes. More...
 
virtual void setupFiles ()
 Called from constructor. Sets up the files available. More...
 
virtual DtFilename defaultMovementFile () const
 Returns the default movement file to use. Simply the first file found. More...
 
virtual DtEntityType defaultMissileType () const
 Returns the default missile type. Simply the first one discovered. More...
 
std::vector< std::string > filesThatMatch (const std::string &ext) const
 Returns a list of files in the scripted movement directory that have the given extension. More...
 
virtual void setupDefaultTypesFor (const DtEntityType &)
 Sets up default types for the type given. Entity types must match the given type and have a script controller. More...
 
virtual DtComponentDescriptorfindFromSystem (const DtComponentSystemDescriptorList *) const
 Sees if the scripted movement controller exists in any system. More...
 
virtual DtComponentDescriptorfindFromComponents (const DtComponentDescriptorList *) const
 Sees if the scripted movement controller is in the components list. More...
 
virtual void addPhase (const DtScriptedMovementPhase &)
 Adds a new phase into the phase tree widget. More...
 
virtual void setFormatsFromMovementFile ()
 

Protected Attributes

bool myPrecisionMode
 
ScriptedMovementObjectsMap myScriptedMovementObjectsMap
 
ScriptedMovementObjectsMap myScriptedObjectMovementsToRemove
 
std::vector< std::string > myMovementFiles
 
std::vector< DtEntityType > myMissileTypes
 
makVrv::DtDemyDe
 

Detailed Description

This class will allow for the adding, modifying or removing of scripted object files that will contain rules to move an object towards a target point.

Only objects that have the scripted-movement-controller will be allowed to be used as objects that can be moved

Member Typedef Documentation

Constructor & Destructor Documentation

DtScriptedObjectMovementEditor::DtScriptedObjectMovementEditor ( makVrv::DtDe de,
bool  precisionMode,
QWidget *  parent,
const Qt::WindowFlags &  flags = Qt::Tool 
)
virtual DtScriptedObjectMovementEditor::~DtScriptedObjectMovementEditor ( )
virtual

Member Function Documentation

virtual void DtScriptedObjectMovementEditor::accept ( )
protectedvirtual

Called when dialog is accepted. Write out all changes.

virtual void DtScriptedObjectMovementEditor::setupFiles ( )
protectedvirtual

Called from constructor. Sets up the files available.

virtual DtFilename DtScriptedObjectMovementEditor::defaultMovementFile ( ) const
protectedvirtual

Returns the default movement file to use. Simply the first file found.

virtual DtEntityType DtScriptedObjectMovementEditor::defaultMissileType ( ) const
protectedvirtual

Returns the default missile type. Simply the first one discovered.

std::vector<std::string> DtScriptedObjectMovementEditor::filesThatMatch ( const std::string &  ext) const
protected

Returns a list of files in the scripted movement directory that have the given extension.

virtual void DtScriptedObjectMovementEditor::setupDefaultTypesFor ( const DtEntityType &  )
protectedvirtual

Sets up default types for the type given. Entity types must match the given type and have a script controller.

virtual DtComponentDescriptor* DtScriptedObjectMovementEditor::findFromSystem ( const DtComponentSystemDescriptorList ) const
protectedvirtual

Sees if the scripted movement controller exists in any system.

virtual DtComponentDescriptor* DtScriptedObjectMovementEditor::findFromComponents ( const DtComponentDescriptorList ) const
protectedvirtual

Sees if the scripted movement controller is in the components list.

virtual void DtScriptedObjectMovementEditor::addPhase ( const DtScriptedMovementPhase )
protectedvirtual

Adds a new phase into the phase tree widget.

virtual void DtScriptedObjectMovementEditor::setFormatsFromMovementFile ( )
protectedvirtual
virtual void DtScriptedObjectMovementEditor::onAddScriptedObjectMovement ( )
protectedvirtualslot
virtual void DtScriptedObjectMovementEditor::onRemoveScriptedObjectMovement ( )
protectedvirtualslot
virtual void DtScriptedObjectMovementEditor::onRenameScriptedObjectMovement ( )
protectedvirtualslot
virtual void DtScriptedObjectMovementEditor::onSeletScriptedMovementObject ( )
protectedvirtualslot
virtual void DtScriptedObjectMovementEditor::onGroundClampTypeChanged ( )
protectedvirtualslot
virtual void DtScriptedObjectMovementEditor::onPhaseSelected ( )
protectedvirtualslot
virtual void DtScriptedObjectMovementEditor::onDescriptionChanged ( )
protectedvirtualslot
virtual void DtScriptedObjectMovementEditor::onAddCategory ( )
protectedvirtualslot
virtual void DtScriptedObjectMovementEditor::onRemoveCategory ( )
protectedvirtualslot
virtual void DtScriptedObjectMovementEditor::onCategorySelected ( )
protectedvirtualslot
virtual void DtScriptedObjectMovementEditor::onCategoryChanged ( QListWidgetItem *  )
protectedvirtualslot
virtual void DtScriptedObjectMovementEditor::onAddNewMissile ( )
protectedvirtualslot
virtual void DtScriptedObjectMovementEditor::onAddNewMovementFile ( )
protectedvirtualslot
virtual void DtScriptedObjectMovementEditor::onAddNewFileConfiguration ( )
protectedvirtualslot
virtual void DtScriptedObjectMovementEditor::onAddPhase ( )
protectedvirtualslot

Called to add a new phase to the configuration.

virtual void DtScriptedObjectMovementEditor::onRemovePhase ( )
protectedvirtualslot

Called to remove the selected phase from the configuration.

virtual void DtScriptedObjectMovementEditor::onPhaseChanged ( )
protectedvirtualslot

Called when the phase contents have changed.

virtual void DtScriptedObjectMovementEditor::onMissileTypeChanged ( )
protectedvirtualslot

Called when missile type is changed.

If Add... is selected allows user to create a new missile type for scripted movement

virtual std::string DtScriptedObjectMovementEditor::configurationThatMatches ( const DtScriptedMovementFileConfiguration ,
QString  nameIfMissing 
)
protectedvirtualslot

Return the configuration (from the configurations file) that matches the given configuration.

If one does not exist create on

Member Data Documentation

QPushButton* DtScriptedObjectMovementEditor::myOKButton
QPushButton* DtScriptedObjectMovementEditor::myCancelButton
QLabel* DtScriptedObjectMovementEditor::myInstructions
QPushButton* DtScriptedObjectMovementEditor::myAddScriptedObjectMovement
QPushButton* DtScriptedObjectMovementEditor::myRemoveScriptedObjectMovement
QPushButton* DtScriptedObjectMovementEditor::myRenameScriptedObjectMovement
QPushButton* DtScriptedObjectMovementEditor::myAddNewMissile
QPushButton* DtScriptedObjectMovementEditor::myAddNewFileConfiguration
QPushButton* DtScriptedObjectMovementEditor::myAddNewMovementFile
QLabel* DtScriptedObjectMovementEditor::myScriptedMovementObjectsLabel
QComboBox* DtScriptedObjectMovementEditor::myScriptedMovementObjects
QLabel* DtScriptedObjectMovementEditor::myDescriptionLabel
QLineEdit* DtScriptedObjectMovementEditor::myDescription
QLabel* DtScriptedObjectMovementEditor::myCategoriesLabel
QPushButton* DtScriptedObjectMovementEditor::myAddCategory
QPushButton* DtScriptedObjectMovementEditor::myRemoveCategory
QListWidget* DtScriptedObjectMovementEditor::myCategories
QPushButton* DtScriptedObjectMovementEditor::myAddPhase
QPushButton* DtScriptedObjectMovementEditor::myRemovePhase
QLabel* DtScriptedObjectMovementEditor::myPhasesLabel
QComboBox* DtScriptedObjectMovementEditor::myPhases
QGridLayout* DtScriptedObjectMovementEditor::myPhasesLayout
QWidget* DtScriptedObjectMovementEditor::myPhasesCanvas
QLabel* DtScriptedObjectMovementEditor::myMovementFileLabel
QComboBox* DtScriptedObjectMovementEditor::myMovementFile
QLabel* DtScriptedObjectMovementEditor::myFormatLabel
QComboBox* DtScriptedObjectMovementEditor::myFormat
QLabel* DtScriptedObjectMovementEditor::myMissileTypeLabel
QComboBox* DtScriptedObjectMovementEditor::myMissileType
QLabel* DtScriptedObjectMovementEditor::myGroundClampTypeLabel
QComboBox* DtScriptedObjectMovementEditor::myGroundClampType
QLabel* DtScriptedObjectMovementEditor::myCompletionRuleLabel
QComboBox* DtScriptedObjectMovementEditor::myCompletionRule
bool DtScriptedObjectMovementEditor::myPrecisionMode
protected
ScriptedMovementObjectsMap DtScriptedObjectMovementEditor::myScriptedMovementObjectsMap
protected
ScriptedMovementObjectsMap DtScriptedObjectMovementEditor::myScriptedObjectMovementsToRemove
protected
std::vector<std::string> DtScriptedObjectMovementEditor::myMovementFiles
protected
std::vector<DtEntityType> DtScriptedObjectMovementEditor::myMissileTypes
protected
makVrv::DtDe& DtScriptedObjectMovementEditor::myDe
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)